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.001544/0.001544, allocations: 106.6 kB / 17.73 MB, free: 5.367 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.001838/0.001838, allocations: 187.1 kB / 18.66 MB, free: 4.445 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.45/1.45, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001419/0.001419, allocations: 55.92 kB / 328 MB, free: 3.836 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0833/0.08473, allocations: 46.62 MB / 374.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.1835/0.2682, allocations: 12.91 MB / 387.5 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.279, allocations: 11.53 MB / 399.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.2792, allocations: 1.656 kB / 399.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003329/0.2795, allocations: 78.94 kB / 399.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002926/0.2798, allocations: 81.91 kB / 399.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01535/0.2952, allocations: 5.067 MB / 404.3 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004689/0.2957, allocations: 236.8 kB / 404.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.554e-05/0.2958, allocations: 8.297 kB / 404.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004161/0.2962, allocations: 195.6 kB / 404.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.2963, allocations: 71.62 kB / 404.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.905e-05/0.2963, allocations: 6.5 kB / 404.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01462/0.311, allocations: 6.985 MB / 411.8 MB, free: 8.129 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.041e-05/0.3111, allocations: 30.73 kB / 411.8 MB, free: 8.105 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001501/0.3113, allocations: 74.72 kB / 411.9 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01171/0.323, allocations: 3.867 MB / 415.8 MB, free: 5.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.323, allocations: 0 / 415.8 MB, free: 5.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.323, allocations: 2.094 kB / 415.8 MB, free: 5.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.323, allocations: 0 / 415.8 MB, free: 5.59 MB / 334.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.006133/0.3292, allocations: 1.143 MB / 416.9 MB, free: 4.785 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.3292, allocations: 9.625 kB / 416.9 MB, free: 4.785 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.338e-05/0.3293, allocations: 46.86 kB / 417 MB, free: 4.734 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004885/0.3298, allocations: 50.95 kB / 417 MB, free: 4.715 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.3302, allocations: 216.6 kB / 417.2 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.109e-05/0.3302, allocations: 15.25 kB / 417.2 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.859e-05/0.3303, allocations: 14 kB / 417.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.3316, allocations: 388.6 kB / 417.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.3316, allocations: 5.25 kB / 417.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.382e-05/0.3317, allocations: 7.219 kB / 417.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.3317, allocations: 3.031 kB / 417.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001584/0.3333, allocations: 349.6 kB / 418 MB, free: 4.016 MB / 334.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.00148/0.3348, allocations: 1.202 MB / 419.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008949/0.3357, allocations: 278.2 kB / 419.5 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002798/0.336, allocations: 115 kB / 419.6 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1014/0.4374, allocations: 47.64 MB / 467.2 MB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.87e-05/0.4375, allocations: 42.5 kB / 467.3 MB, free: 13.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.355e-06/0.4375, allocations: 0 / 467.3 MB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.007172/0.4447, allocations: 1.584 MB / 468.8 MB, free: 11.87 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.4447, allocations: 106.8 kB / 468.9 MB, free: 11.74 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.4448, allocations: 121.7 kB / 469.1 MB, free: 11.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.4449, allocations: 33.64 kB / 469.1 MB, free: 11.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.34e-05/0.445, allocations: 105 kB / 469.2 MB, free: 11.46 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.4451, allocations: 118.3 kB / 469.3 MB, free: 11.35 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.4452, allocations: 73.69 kB / 469.4 MB, free: 11.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.4453, allocations: 322.8 kB / 469.7 MB, free: 10.95 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003977/0.4457, allocations: 139.8 kB / 469.8 MB, free: 10.81 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004298/0.4462, allocations: 202.5 kB / 470 MB, free: 10.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008349/0.447, allocations: 350.5 kB / 470.4 MB, free: 10.22 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.447, allocations: 4 kB / 470.4 MB, free: 10.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001096/0.4481, allocations: 426 kB / 470.8 MB, free: 9.789 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.4481, allocations: 7.938 kB / 470.8 MB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.4482, allocations: 0 / 470.8 MB, free: 9.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002374/0.4484, allocations: 36.83 kB / 470.8 MB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004604/0.4489, allocations: 87.88 kB / 470.9 MB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003893/0.4493, allocations: 0.5447 MB / 471.5 MB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002911/0.4496, allocations: 28 kB / 471.5 MB, free: 9.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.489e-05/0.4496, allocations: 12 kB / 471.5 MB, free: 9.047 MB / 398.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.000138/0.4498, allocations: 141.7 kB / 471.6 MB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.921e-05/0.4499, allocations: 15.91 kB / 471.7 MB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002135/0.452, allocations: 1.451 MB / 473.1 MB, free: 7.426 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.351e-05/0.4521, allocations: 19.97 kB / 473.1 MB, free: 7.406 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.4521, allocations: 4 kB / 473.1 MB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.4521, allocations: 0 / 473.1 MB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00298/0.4551, allocations: 1.983 MB / 475.1 MB, free: 5.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.4551, allocations: 4 kB / 475.1 MB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004319/0.4555, allocations: 79.88 kB / 475.2 MB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003112/0.4559, allocations: 72.91 kB / 475.3 MB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.757e-05/0.4559, allocations: 12 kB / 475.3 MB, free: 5.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003516/0.4563, allocations: 0.5912 MB / 475.9 MB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.4563, allocations: 5.219 kB / 475.9 MB, free: 4.551 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002221/0.4585, allocations: 1.69 MB / 477.6 MB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.389e-05/0.4586, allocations: 128.4 kB / 477.7 MB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.299e-05/0.4586, allocations: 12.03 kB / 477.7 MB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003595/0.459, allocations: 23.92 kB / 477.7 MB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.127e-05/0.4591, allocations: 31.95 kB / 477.8 MB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.443e-05/0.4591, allocations: 19.98 kB / 477.8 MB, free: 2.605 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.389e-05/0.4592, allocations: 91.22 kB / 477.9 MB, free: 2.516 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.154e-06/0.4592, allocations: 0 / 477.9 MB, free: 2.516 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003363/0.4626, allocations: 0.9604 MB / 478.8 MB, free: 1.555 MB / 398.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.008089/0.4707, allocations: 3.259 MB / 482.1 MB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001487/0.4722, allocations: 0.6125 MB / 482.7 MB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.4722, allocations: 0 / 482.7 MB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008546/0.4731, allocations: 0.517 MB / 483.2 MB, free: 13.12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000802/0.4739, allocations: 67.92 kB / 483.3 MB, free: 13.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00829/0.4822, allocations: 3.896 MB / 487.2 MB, free: 9.004 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.4826, allocations: 0.8139 MB / 488 MB, free: 8.164 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003412/0.483, allocations: 145.7 kB / 488.1 MB, free: 8.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002059/0.4832, allocations: 135.4 kB / 488.3 MB, free: 7.887 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4832, allocations: 0 / 488.3 MB, free: 7.887 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08872/0.5719, allocations: 40.69 MB / 0.5166 GB, free: 15.07 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/14.53, allocations: 0 / 0.5166 GB, free: 15.07 MB / 462.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches