Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.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.001257/0.001257, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.00131/0.00131, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.379/1.379, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 51.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09218/0.09392, allocations: 53.33 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.196/0.29, allocations: 13.06 MB / 439.4 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01221/0.3022, allocations: 11.58 MB / 450.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001562/0.3023, allocations: 1.281 kB / 450.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003428/0.3027, allocations: 76.52 kB / 451 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003219/0.303, allocations: 88.72 kB / 451.1 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01566/0.3186, allocations: 5.089 MB / 456.2 MB, free: 10.76 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004152/0.3191, allocations: 233.4 kB / 456.4 MB, free: 10.63 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.216e-05/0.3191, allocations: 10.11 kB / 456.4 MB, free: 10.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004698/0.3196, allocations: 196 kB / 456.6 MB, free: 10.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.3197, allocations: 80.34 kB / 456.7 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.208e-05/0.3198, allocations: 7.25 kB / 456.7 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01488/0.3346, allocations: 7 MB / 463.7 MB, free: 6.789 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.421e-05/0.3347, allocations: 35.69 kB / 463.7 MB, free: 6.762 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001543/0.3349, allocations: 67.02 kB / 463.8 MB, free: 6.727 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009979/0.3449, allocations: 3.88 MB / 467.7 MB, free: 4.246 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3449, allocations: 0 / 467.7 MB, free: 4.246 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3449, allocations: 0 / 467.7 MB, free: 4.246 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.559e-05/0.3449, allocations: 0 / 467.7 MB, free: 4.246 MB / 366.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.005837/0.3507, allocations: 1.173 MB / 468.8 MB, free: 3.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.3508, allocations: 9.625 kB / 468.9 MB, free: 3.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.73e-05/0.3508, allocations: 47.8 kB / 468.9 MB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005113/0.3514, allocations: 55.12 kB / 469 MB, free: 3.336 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003242/0.3517, allocations: 216.6 kB / 469.2 MB, free: 3.098 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/0.3517, allocations: 11.59 kB / 469.2 MB, free: 3.094 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.74e-05/0.3518, allocations: 22.75 kB / 469.2 MB, free: 3.082 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.3531, allocations: 389.8 kB / 469.6 MB, free: 2.805 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.3532, allocations: 4.906 kB / 469.6 MB, free: 2.801 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.631e-05/0.3532, allocations: 6.375 kB / 469.6 MB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.3532, allocations: 4.25 kB / 469.6 MB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001476/0.3547, allocations: 353 kB / 469.9 MB, free: 2.629 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.3562, allocations: 1.191 MB / 471.1 MB, free: 1.445 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009011/0.3571, allocations: 272.5 kB / 471.4 MB, free: 1.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002875/0.3574, allocations: 107.7 kB / 471.5 MB, free: 1.203 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1077/0.4651, allocations: 52.78 MB / 0.512 GB, free: 8.133 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.551e-05/0.4652, allocations: 50.48 kB / 0.5121 GB, free: 8.074 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 2.264e-06/0.4652, allocations: 3.938 kB / 0.5121 GB, free: 8.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.007132/0.4723, allocations: 1.577 MB / 0.5136 GB, free: 6.441 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.371e-05/0.4724, allocations: 110.8 kB / 0.5137 GB, free: 6.309 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.4725, allocations: 121.8 kB / 0.5138 GB, free: 6.18 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.901e-05/0.4725, allocations: 33.7 kB / 0.5138 GB, free: 6.141 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.759e-05/0.4726, allocations: 104.5 kB / 0.5139 GB, free: 6.035 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/0.4727, allocations: 130.9 kB / 0.5141 GB, free: 5.906 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.4729, allocations: 61.69 kB / 0.5141 GB, free: 5.84 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.473, allocations: 330.8 kB / 0.5144 GB, free: 5.508 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003999/0.4734, allocations: 139.6 kB / 0.5146 GB, free: 5.371 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004493/0.4738, allocations: 202.5 kB / 0.5148 GB, free: 5.148 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008575/0.4747, allocations: 354.4 kB / 0.5151 GB, free: 4.777 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.4747, allocations: 0 / 0.5151 GB, free: 4.777 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001154/0.4759, allocations: 426 kB / 0.5155 GB, free: 4.352 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.4759, allocations: 11.98 kB / 0.5155 GB, free: 4.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.4759, allocations: 4.219 kB / 0.5155 GB, free: 4.336 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002499/0.4761, allocations: 34.91 kB / 0.5156 GB, free: 4.301 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004743/0.4766, allocations: 87.88 kB / 0.5156 GB, free: 4.215 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004218/0.477, allocations: 0.5485 MB / 0.5162 GB, free: 3.641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/0.4773, allocations: 28.02 kB / 0.5162 GB, free: 3.613 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.023e-05/0.4774, allocations: 16.86 kB / 0.5162 GB, free: 3.598 MB / 430.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: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000163/0.4775, allocations: 133.8 kB / 0.5164 GB, free: 3.457 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.4776, allocations: 19.91 kB / 0.5164 GB, free: 3.438 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00235/0.48, allocations: 1.438 MB / 0.5178 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.779e-05/0.48, allocations: 24.34 kB / 0.5178 GB, free: 1.969 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.48, allocations: 0 / 0.5178 GB, free: 1.969 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.48, allocations: 3.984 kB / 0.5178 GB, free: 1.965 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003189/0.4832, allocations: 1.975 MB / 0.5197 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.4832, allocations: 3.938 kB / 0.5197 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004615/0.4837, allocations: 79.86 kB / 0.5198 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003258/0.484, allocations: 68.8 kB / 0.5199 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.118e-05/0.4841, allocations: 20.08 kB / 0.5199 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004221/0.4845, allocations: 0.5913 MB / 0.5205 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4845, allocations: 3.938 kB / 0.5205 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002403/0.4869, allocations: 1.7 MB / 0.5221 GB, free: 13.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.487, allocations: 124.6 kB / 0.5223 GB, free: 13.26 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.847e-05/0.487, allocations: 12 kB / 0.5223 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003896/0.4874, allocations: 27.95 kB / 0.5223 GB, free: 13.22 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.146e-05/0.4875, allocations: 27.97 kB / 0.5223 GB, free: 13.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.299e-05/0.4875, allocations: 15.98 kB / 0.5223 GB, free: 13.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.601e-05/0.4876, allocations: 99.14 kB / 0.5224 GB, free: 13.08 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4876, allocations: 0 / 0.5224 GB, free: 13.08 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003388/0.491, allocations: 0.9747 MB / 0.5234 GB, free: 12.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008889/0.4999, allocations: 3.283 MB / 0.5266 GB, free: 8.785 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.5014, allocations: 0.5926 MB / 0.5272 GB, free: 8.195 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.5014, allocations: 0 / 0.5272 GB, free: 8.195 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008413/0.5022, allocations: 453.1 kB / 0.5276 GB, free: 7.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008088/0.503, allocations: 74.98 kB / 0.5277 GB, free: 7.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008498/0.5115, allocations: 3.918 MB / 0.5315 GB, free: 3.605 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.512, allocations: 0.8217 MB / 0.5323 GB, free: 2.758 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003613/0.5124, allocations: 133.2 kB / 0.5324 GB, free: 2.629 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002436/0.5126, allocations: 135.3 kB / 0.5326 GB, free: 2.496 MB / 446.1 MB Notification: Performance of SimCode: time 7.91e-07/0.5126, allocations: 0 / 0.5326 GB, free: 2.496 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08505/0.5977, allocations: 40.65 MB / 0.5723 GB, free: 9.922 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/14.58, allocations: 3.984 kB / 0.5723 GB, free: 9.918 MB / 494.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.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: 17.314048998989165]