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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008944/0.0008945, allocations: 94.56 kB / 17.3 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 173 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.196/1.196, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB 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.0004269/0.0004269, allocations: 12 kB / 281.5 MB, free: 3.332 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07715/0.07759, allocations: 47.58 MB / 329.1 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01359/0.09122, allocations: 13.23 MB / 342.3 MB, free: 6.391 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01253/0.1038, allocations: 12.28 MB / 354.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.743e-05/0.1039, allocations: 0 / 354.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002724/0.1042, allocations: 63.67 kB / 354.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002257/0.1044, allocations: 83.48 kB / 354.7 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009459/0.1139, allocations: 4.004 MB / 358.7 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003068/0.1142, allocations: 270.9 kB / 359 MB, free: 5.652 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.247e-05/0.1143, allocations: 9.453 kB / 359 MB, free: 5.641 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003901/0.1147, allocations: 183.5 kB / 359.2 MB, free: 5.461 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.1148, allocations: 83.62 kB / 359.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.626e-05/0.1148, allocations: 4 kB / 359.2 MB, free: 5.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01018/0.125, allocations: 6.895 MB / 366.1 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.227e-05/0.1251, allocations: 23.92 kB / 366.2 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000104/0.1252, allocations: 93.42 kB / 366.3 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005373/0.1306, allocations: 3.863 MB / 370.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1306, allocations: 4 kB / 370.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1306, allocations: 0 / 370.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.758e-06/0.1306, allocations: 0 / 370.1 MB, free: 10.48 MB / 318.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.003928/0.1345, allocations: 1.104 MB / 371.2 MB, free: 9.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.1346, allocations: 8.031 kB / 371.2 MB, free: 9.316 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.082e-05/0.1347, allocations: 50.73 kB / 371.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004432/0.1351, allocations: 60.64 kB / 371.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002123/0.1353, allocations: 216.2 kB / 371.6 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.1354, allocations: 12.38 kB / 371.6 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.982e-05/0.1354, allocations: 27.97 kB / 371.6 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.1366, allocations: 380.2 kB / 372 MB, free: 8.508 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.1366, allocations: 3.938 kB / 372 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/0.1367, allocations: 8 kB / 372 MB, free: 8.496 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.1367, allocations: 7.938 kB / 372 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001329/0.138, allocations: 367.6 kB / 372.3 MB, free: 8.129 MB / 318.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.00124/0.1393, allocations: 1.199 MB / 373.5 MB, free: 6.828 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007804/0.14, allocations: 287.8 kB / 373.8 MB, free: 6.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002708/0.1403, allocations: 118.9 kB / 373.9 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2211/0.3614, allocations: 47.87 MB / 421.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.3615, allocations: 42.2 kB / 421.8 MB, free: 1.211 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.174e-06/0.3615, allocations: 4 kB / 421.8 MB, free: 1.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.006147/0.3676, allocations: 1.61 MB / 423.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.695e-05/0.3677, allocations: 110.9 kB / 423.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.946e-05/0.3678, allocations: 132 kB / 423.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.3678, allocations: 33.45 kB / 423.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.892e-05/0.3679, allocations: 100.8 kB / 423.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.358e-05/0.368, allocations: 114.6 kB / 423.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.133e-05/0.368, allocations: 36.95 kB / 424 MB, free: 15.38 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.382e-05/0.3681, allocations: 330.2 kB / 424.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003625/0.3685, allocations: 139.8 kB / 424.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003863/0.3689, allocations: 204.3 kB / 424.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007387/0.3696, allocations: 357.1 kB / 425 MB, free: 14.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.3696, allocations: 0 / 425 MB, free: 14.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001042/0.3707, allocations: 439.4 kB / 425.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.3707, allocations: 4 kB / 425.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3707, allocations: 4 kB / 425.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002438/0.371, allocations: 34.38 kB / 425.5 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004298/0.3714, allocations: 95.55 kB / 425.5 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003199/0.3718, allocations: 0.546 MB / 426.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.372, allocations: 36.89 kB / 426.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.763e-05/0.3721, allocations: 23.56 kB / 426.1 MB, free: 13.48 MB / 334.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.0001373/0.3722, allocations: 132.9 kB / 426.3 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.223e-05/0.3723, allocations: 17.95 kB / 426.3 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001918/0.3742, allocations: 1.474 MB / 427.8 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-05/0.3743, allocations: 23.47 kB / 427.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.3743, allocations: 0 / 427.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3743, allocations: 4 kB / 427.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002545/0.3769, allocations: 1.991 MB / 429.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.3769, allocations: 4 kB / 429.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000404/0.3773, allocations: 82.88 kB / 429.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003222/0.3776, allocations: 75.22 kB / 429.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.075e-05/0.3777, allocations: 14.73 kB / 430 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003153/0.378, allocations: 0.5916 MB / 430.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.378, allocations: 0 / 430.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.3799, allocations: 1.707 MB / 432.3 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.365e-05/0.38, allocations: 128.4 kB / 432.4 MB, free: 8.863 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.943e-05/0.3801, allocations: 7.625 kB / 432.4 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/0.3804, allocations: 22.66 kB / 432.4 MB, free: 8.844 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.17e-05/0.3805, allocations: 38.92 kB / 432.5 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.057e-05/0.3805, allocations: 19.17 kB / 432.5 MB, free: 8.797 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.807e-05/0.3806, allocations: 94.3 kB / 432.6 MB, free: 8.711 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3806, allocations: 1.859 kB / 432.6 MB, free: 8.711 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002358/0.3829, allocations: 0.9574 MB / 433.5 MB, free: 7.875 MB / 334.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.005541/0.3885, allocations: 3.278 MB / 436.8 MB, free: 5.309 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001059/0.3896, allocations: 0.6033 MB / 437.4 MB, free: 4.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.3896, allocations: 4.062 kB / 437.4 MB, free: 4.906 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006771/0.3903, allocations: 0.5123 MB / 437.9 MB, free: 4.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007591/0.391, allocations: 74.8 kB / 438 MB, free: 4.566 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005951/0.397, allocations: 4.184 MB / 442.2 MB, free: 400 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.3973, allocations: 0.8249 MB / 443 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000358/0.3977, allocations: 133.8 kB / 443.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001997/0.3979, allocations: 135.4 kB / 443.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3979, allocations: 0 / 443.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1829/0.5808, allocations: 39.93 MB / 483.2 MB, free: 7.383 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001651/0.581, allocations: 215.6 kB / 483.4 MB, free: 7.121 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.719/4.301, allocations: 0 / 483.4 MB, free: 7.121 MB / 382.1 MB (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 --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) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches