Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 123 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002449/0.002449, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.424/1.424, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09736/0.09882, allocations: 53.34 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003118/0.1019, allocations: 1.892 MB / 428.2 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.1031, allocations: 0.6583 MB / 428.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.001e-05/0.1032, allocations: 3.938 kB / 428.9 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.1033, allocations: 27.72 kB / 428.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000143/0.1035, allocations: 35.66 kB / 428.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002758/0.1037, allocations: 79.78 kB / 429 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002367/0.104, allocations: 167.4 kB / 429.2 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.1041, allocations: 52.3 kB / 429.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001584/0.1043, allocations: 79.62 kB / 429.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001488/0.1045, allocations: 87.55 kB / 429.4 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.897e-05/0.1045, allocations: 12 kB / 429.4 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.274e-05/0.1046, allocations: 27.98 kB / 429.4 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.812e-05/0.1046, allocations: 39.84 kB / 429.5 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.672e-05/0.1047, allocations: 79.48 kB / 429.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000281/0.105, allocations: 203 kB / 429.7 MB, free: 1.348 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.105, allocations: 4 kB / 429.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.105, allocations: 0 / 429.7 MB, free: 1.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.105, allocations: 0 / 429.7 MB, free: 1.344 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008943/0.1059, allocations: 0.5103 MB / 430.3 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.1059, allocations: 12.03 kB / 430.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.461e-05/0.106, allocations: 54.73 kB / 430.3 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/0.1062, allocations: 36.78 kB / 430.4 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002874/0.1064, allocations: 236 kB / 430.6 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.809e-05/0.1065, allocations: 8.656 kB / 430.6 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.801e-05/0.1065, allocations: 24.3 kB / 430.6 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003637/0.1069, allocations: 199.1 kB / 430.8 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.1069, allocations: 7.938 kB / 430.8 MB, free: 156 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.743e-05/0.1069, allocations: 4 kB / 430.8 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/0.1069, allocations: 4 kB / 430.8 MB, free: 148 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003225/0.1072, allocations: 147.8 kB / 431 MB, free: 0 / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1889/0.2961, allocations: 0.7628 MB / 431.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003061/0.2964, allocations: 150.9 kB / 431.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001393/0.2965, allocations: 77.33 kB / 432 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.406e-05/0.2966, allocations: 6.875 kB / 432 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002486/0.2968, allocations: 152.8 kB / 432.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.853e-06/0.2968, allocations: 1.781 kB / 432.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005541/0.2974, allocations: 255.2 kB / 432.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.2974, allocations: 81.48 kB / 432.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001618/0.2976, allocations: 204.1 kB / 432.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.2976, allocations: 35.3 kB / 432.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.152e-05/0.2977, allocations: 148.6 kB / 432.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.14e-05/0.2977, allocations: 36.42 kB / 432.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.875e-05/0.2978, allocations: 46.64 kB / 432.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.064e-05/0.2978, allocations: 335.9 kB / 433.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.298, allocations: 69.28 kB / 433.3 MB, free: 9.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.2981, allocations: 123.7 kB / 433.4 MB, free: 9.734 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002758/0.2984, allocations: 201.2 kB / 433.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2984, allocations: 3.438 kB / 433.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003715/0.2988, allocations: 242.2 kB / 433.9 MB, free: 9.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.2988, allocations: 9.5 kB / 433.9 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.2988, allocations: 5.312 kB / 433.9 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.2988, allocations: 2.25 kB / 433.9 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.299, allocations: 39.05 kB / 433.9 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.299, allocations: 4.297 kB / 433.9 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001467/0.2991, allocations: 32 kB / 433.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.2992, allocations: 7.625 kB / 434 MB, free: 9.625 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.756e-05/0.2992, allocations: 142.5 kB / 434.1 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.803e-05/0.2993, allocations: 27.33 kB / 434.1 MB, free: 9.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003871/0.2997, allocations: 215.4 kB / 434.3 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.2997, allocations: 5.719 kB / 434.3 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.2997, allocations: 0 / 434.3 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2997, allocations: 0.6875 kB / 434.3 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000195/0.2999, allocations: 268.9 kB / 434.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.2999, allocations: 2.188 kB / 434.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001079/0.3, allocations: 26.95 kB / 434.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.3, allocations: 7.453 kB / 434.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.3, allocations: 5.562 kB / 434.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3, allocations: 0 / 434.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3, allocations: 2.062 kB / 434.6 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003299/0.3003, allocations: 225.4 kB / 434.9 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.145e-05/0.3004, allocations: 101.2 kB / 435 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.454e-05/0.3004, allocations: 4.469 kB / 435 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.3005, allocations: 24.89 kB / 435 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.93e-05/0.3006, allocations: 15.08 kB / 435 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.3006, allocations: 7.312 kB / 435 MB, free: 9.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.075e-05/0.3007, allocations: 144.2 kB / 435.2 MB, free: 8.992 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3007, allocations: 3.938 kB / 435.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002502/0.3009, allocations: 39.09 kB / 435.2 MB, free: 8.988 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00052/0.3014, allocations: 0.7685 MB / 436 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003566/0.3018, allocations: 170 kB / 436.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3018, allocations: 2.594 kB / 436.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001576/0.302, allocations: 76.89 kB / 436.2 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.3023, allocations: 35.97 kB / 436.2 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002126/0.3044, allocations: 2.178 MB / 438.4 MB, free: 6.879 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001621/0.3046, allocations: 0.7406 MB / 439.2 MB, free: 6.176 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.3047, allocations: 34.03 kB / 439.2 MB, free: 6.172 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.376e-05/0.3047, allocations: 58.64 kB / 439.3 MB, free: 6.129 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3047, allocations: 2.844 kB / 439.3 MB, free: 6.129 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02771/0.3325, allocations: 4.172 MB / 443.4 MB, free: 5.582 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.915/8.247, allocations: 9.766 kB / 443.4 MB, free: 5.578 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.617614413844422]