Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 120 kB / 18.45 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 190.9 kB / 21.39 MB, free: 1.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 207.6 MB / 231.8 MB, free: 4.203 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 51.92 kB / 342.2 MB, free: 10.06 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08948/0.09116, allocations: 49.12 MB / 391.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01676/0.1079, allocations: 12.98 MB / 404.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0145/0.1224, allocations: 11.58 MB / 415.9 MB, free: 128 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001531/0.1226, allocations: 0 / 415.9 MB, free: 128 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003929/0.123, allocations: 79.53 kB / 416 MB, free: 48 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003551/0.1233, allocations: 83.42 kB / 416.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01397/0.1373, allocations: 5.069 MB / 421.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000407/0.1377, allocations: 227 kB / 421.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.162e-05/0.1377, allocations: 5.453 kB / 421.4 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004298/0.1382, allocations: 199.3 kB / 421.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.1383, allocations: 75.69 kB / 421.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.012e-05/0.1383, allocations: 8 kB / 421.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01274/0.1511, allocations: 6.993 MB / 428.6 MB, free: 3.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.953e-05/0.1512, allocations: 35.89 kB / 428.7 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.1513, allocations: 63.73 kB / 428.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009781/0.1611, allocations: 3.874 MB / 432.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.147e-06/0.1611, allocations: 0 / 432.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1611, allocations: 0 / 432.6 MB, free: 15.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.72e-05/0.1611, allocations: 0 / 432.6 MB, free: 15.39 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.004978/0.1661, allocations: 1.166 MB / 433.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.1661, allocations: 12.03 kB / 433.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.979e-05/0.1662, allocations: 46.73 kB / 433.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004635/0.1666, allocations: 56.8 kB / 433.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003163/0.167, allocations: 216.2 kB / 434.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.849e-05/0.167, allocations: 12.31 kB / 434.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.461e-05/0.167, allocations: 20.12 kB / 434.1 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/0.1683, allocations: 388.1 kB / 434.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.1683, allocations: 0 / 434.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.1683, allocations: 8 kB / 434.5 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.1683, allocations: 4 kB / 434.5 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.1697, allocations: 355.5 kB / 434.9 MB, free: 13 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.001521/0.1712, allocations: 1.191 MB / 436.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008469/0.1721, allocations: 271.8 kB / 436.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002879/0.1724, allocations: 114.8 kB / 436.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2575/0.4298, allocations: 47.64 MB / 484.1 MB, free: 52.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.4299, allocations: 43.09 kB / 484.1 MB, free: 52.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.993e-06/0.4299, allocations: 0 / 484.1 MB, free: 52.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.00601/0.4359, allocations: 1.575 MB / 485.7 MB, free: 51.49 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.4359, allocations: 110.8 kB / 485.8 MB, free: 51.36 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.22e-05/0.436, allocations: 121.5 kB / 485.9 MB, free: 51.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.396e-05/0.436, allocations: 29.7 kB / 485.9 MB, free: 51.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.052e-05/0.436, allocations: 113.8 kB / 486.1 MB, free: 51.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.868e-05/0.4361, allocations: 126.1 kB / 486.2 MB, free: 51.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.839e-05/0.4362, allocations: 60.94 kB / 486.2 MB, free: 50.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.154e-05/0.4362, allocations: 326.6 kB / 486.6 MB, free: 50.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003049/0.4365, allocations: 137.9 kB / 486.7 MB, free: 50.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000337/0.4369, allocations: 199.6 kB / 486.9 MB, free: 50.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006513/0.4375, allocations: 355.9 kB / 487.2 MB, free: 50.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4375, allocations: 1.156 kB / 487.2 MB, free: 50.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008782/0.4384, allocations: 424.6 kB / 487.7 MB, free: 50 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.4384, allocations: 7.5 kB / 487.7 MB, free: 50 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.4384, allocations: 3.938 kB / 487.7 MB, free: 50 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002197/0.4386, allocations: 49.2 kB / 487.7 MB, free: 49.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004087/0.439, allocations: 91.12 kB / 487.8 MB, free: 49.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002377/0.4393, allocations: 0.5407 MB / 488.3 MB, free: 49.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002564/0.4395, allocations: 24.08 kB / 488.4 MB, free: 49.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.907e-05/0.4396, allocations: 15.98 kB / 488.4 MB, free: 49.33 MB / 382.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.0001108/0.4397, allocations: 147.5 kB / 488.5 MB, free: 49.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.209e-05/0.4398, allocations: 16.78 kB / 488.5 MB, free: 49.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001576/0.4413, allocations: 1.448 MB / 490 MB, free: 47.72 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.567e-05/0.4414, allocations: 23.91 kB / 490 MB, free: 47.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4414, allocations: 0 / 490 MB, free: 47.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.4414, allocations: 0 / 490 MB, free: 47.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002176/0.4435, allocations: 1.973 MB / 492 MB, free: 45.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.4436, allocations: 8.109 kB / 492 MB, free: 45.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003932/0.4439, allocations: 79.88 kB / 492.1 MB, free: 45.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002829/0.4442, allocations: 64.8 kB / 492.1 MB, free: 45.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/0.4443, allocations: 15.98 kB / 492.1 MB, free: 45.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002256/0.4445, allocations: 0.5924 MB / 492.7 MB, free: 44.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.4445, allocations: 7.562 kB / 492.7 MB, free: 44.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001614/0.4461, allocations: 1.702 MB / 494.4 MB, free: 43.15 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.563e-05/0.4462, allocations: 126.6 kB / 494.6 MB, free: 43.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.508e-05/0.4462, allocations: 16.03 kB / 494.6 MB, free: 43.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003385/0.4465, allocations: 19.98 kB / 494.6 MB, free: 42.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.648e-05/0.4466, allocations: 36.97 kB / 494.6 MB, free: 42.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.649e-05/0.4466, allocations: 16 kB / 494.7 MB, free: 42.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.774e-05/0.4467, allocations: 94.27 kB / 494.8 MB, free: 42.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4467, allocations: 3.719 kB / 494.8 MB, free: 42.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002262/0.4489, allocations: 0.9636 MB / 495.7 MB, free: 41.96 MB / 382.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.005317/0.4543, allocations: 3.274 MB / 499 MB, free: 38.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001144/0.4554, allocations: 0.5892 MB / 499.6 MB, free: 38.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.4554, allocations: 0 / 499.6 MB, free: 38.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005762/0.456, allocations: 448.6 kB / 0.4883 GB, free: 37.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007157/0.4567, allocations: 85.75 kB / 0.4884 GB, free: 37.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005675/0.4624, allocations: 3.91 MB / 0.4922 GB, free: 33.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/0.4626, allocations: 0.8139 MB / 0.493 GB, free: 32.76 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000322/0.4629, allocations: 141.5 kB / 0.4931 GB, free: 32.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/0.4631, allocations: 127.4 kB / 0.4933 GB, free: 32.5 MB / 382.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4631, allocations: 4 kB / 0.4933 GB, free: 32.49 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09537/0.5584, allocations: 40.57 MB / 0.5329 GB, free: 7.832 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.92/14.47, allocations: 7.844 kB / 0.5329 GB, free: 7.824 MB / 398.1 MB " [Timeout remaining time 645] (rm -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.198896983172745]