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.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.001654/0.001654, allocations: 114 kB / 18.45 MB, free: 4.59 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.001948/0.001948, allocations: 219.2 kB / 21.42 MB, free: 1.625 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.43/1.43, allocations: 207.6 MB / 231.8 MB, free: 4.047 MB / 174.1 MB " [Timeout remaining time 178] 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.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_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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 55.92 kB / 342.3 MB, free: 9.996 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0938/0.09546, allocations: 49.13 MB / 391.4 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01709/0.1126, allocations: 12.97 MB / 404.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01411/0.1267, allocations: 11.58 MB / 416 MB, free: 60 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.1268, allocations: 0 / 416 MB, free: 60 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003377/0.1271, allocations: 71.55 kB / 416 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002959/0.1274, allocations: 91.42 kB / 416.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01363/0.141, allocations: 5.069 MB / 421.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004211/0.1415, allocations: 235 kB / 421.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.063e-05/0.1415, allocations: 9.453 kB / 421.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000444/0.142, allocations: 195.3 kB / 421.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.1421, allocations: 71.69 kB / 421.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.032e-05/0.1421, allocations: 8 kB / 421.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0127/0.1548, allocations: 7.004 MB / 428.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.446e-05/0.1549, allocations: 23.92 kB / 428.7 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.155, allocations: 71.72 kB / 428.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008211/0.1632, allocations: 3.874 MB / 432.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1632, allocations: 0 / 432.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1632, allocations: 0 / 432.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.1632, allocations: 0 / 432.7 MB, free: 15.31 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.004951/0.1682, allocations: 1.166 MB / 433.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.1682, allocations: 12.03 kB / 433.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.332e-05/0.1683, allocations: 46.73 kB / 433.9 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000491/0.1688, allocations: 52.8 kB / 433.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003652/0.1692, allocations: 216.2 kB / 434.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.68e-05/0.1692, allocations: 16.38 kB / 434.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.578e-05/0.1693, allocations: 16.12 kB / 434.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.1706, allocations: 380.1 kB / 434.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.1706, allocations: 0 / 434.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.498e-05/0.1707, allocations: 4 kB / 434.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.1707, allocations: 4 kB / 434.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001518/0.1722, allocations: 363.5 kB / 434.9 MB, free: 12.93 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.001575/0.1738, allocations: 1.191 MB / 436.1 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008886/0.1746, allocations: 271.8 kB / 436.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002976/0.1749, allocations: 110.8 kB / 436.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2737/0.4486, allocations: 47.65 MB / 484.1 MB, free: 52.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.4487, allocations: 37.75 kB / 484.2 MB, free: 52.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 2.595e-06/0.4487, allocations: 0 / 484.2 MB, free: 52.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.006559/0.4552, allocations: 1.577 MB / 485.7 MB, free: 51.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/0.4553, allocations: 114.8 kB / 485.8 MB, free: 51.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.431e-05/0.4553, allocations: 122.8 kB / 486 MB, free: 51.15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.617e-05/0.4554, allocations: 29.7 kB / 486 MB, free: 51.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.251e-05/0.4554, allocations: 116 kB / 486.1 MB, free: 51.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.605e-05/0.4555, allocations: 120.9 kB / 486.2 MB, free: 50.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.4556, allocations: 64.88 kB / 486.3 MB, free: 50.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.028e-05/0.4556, allocations: 325.9 kB / 486.6 MB, free: 50.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003592/0.456, allocations: 135.7 kB / 486.7 MB, free: 50.49 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004119/0.4564, allocations: 204.7 kB / 486.9 MB, free: 50.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007106/0.4571, allocations: 353.5 kB / 487.3 MB, free: 50.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.4571, allocations: 3.75 kB / 487.3 MB, free: 50.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001022/0.4581, allocations: 418.3 kB / 487.7 MB, free: 49.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.4582, allocations: 7.531 kB / 487.7 MB, free: 49.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.4582, allocations: 3.219 kB / 487.7 MB, free: 49.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002444/0.4584, allocations: 47.95 kB / 487.8 MB, free: 49.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000445/0.4589, allocations: 88.25 kB / 487.8 MB, free: 49.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002441/0.4591, allocations: 0.5406 MB / 488.4 MB, free: 49.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002642/0.4594, allocations: 30.48 kB / 488.4 MB, free: 49.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.104e-05/0.4594, allocations: 16 kB / 488.4 MB, free: 49.21 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.0001086/0.4595, allocations: 139.6 kB / 488.6 MB, free: 49.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.4596, allocations: 23.61 kB / 488.6 MB, free: 49.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001691/0.4613, allocations: 1.456 MB / 490 MB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.602e-05/0.4613, allocations: 19.97 kB / 490.1 MB, free: 47.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4613, allocations: 0 / 490.1 MB, free: 47.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.4613, allocations: 7.984 kB / 490.1 MB, free: 47.58 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002261/0.4636, allocations: 1.969 MB / 492 MB, free: 45.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.4636, allocations: 4 kB / 492 MB, free: 45.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000412/0.464, allocations: 83.86 kB / 492.1 MB, free: 45.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002884/0.4643, allocations: 60.8 kB / 492.2 MB, free: 45.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.219e-05/0.4643, allocations: 19.98 kB / 492.2 MB, free: 45.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002157/0.4645, allocations: 0.5914 MB / 492.8 MB, free: 44.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.4645, allocations: 4 kB / 492.8 MB, free: 44.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/0.4663, allocations: 1.694 MB / 494.5 MB, free: 43.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.525e-05/0.4664, allocations: 132.2 kB / 494.6 MB, free: 42.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.076e-05/0.4664, allocations: 12 kB / 494.6 MB, free: 42.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003493/0.4667, allocations: 19.92 kB / 494.7 MB, free: 42.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.855e-05/0.4668, allocations: 35.95 kB / 494.7 MB, free: 42.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.943e-05/0.4668, allocations: 19.98 kB / 494.7 MB, free: 42.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.792e-05/0.4669, allocations: 95.11 kB / 494.8 MB, free: 42.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4669, allocations: 0 / 494.8 MB, free: 42.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00261/0.4695, allocations: 0.963 MB / 495.8 MB, free: 41.83 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.005888/0.4754, allocations: 3.281 MB / 499 MB, free: 38.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001232/0.4766, allocations: 0.5892 MB / 499.6 MB, free: 38.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.4766, allocations: 0 / 499.6 MB, free: 38.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006332/0.4773, allocations: 453.1 kB / 0.4884 GB, free: 37.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000733/0.478, allocations: 73.64 kB / 0.4884 GB, free: 37.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005585/0.4836, allocations: 3.911 MB / 0.4922 GB, free: 33.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/0.4838, allocations: 0.8217 MB / 0.493 GB, free: 32.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002848/0.484, allocations: 129.7 kB / 0.4932 GB, free: 32.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001866/0.4842, allocations: 131.4 kB / 0.4933 GB, free: 32.36 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4842, allocations: 0 / 0.4933 GB, free: 32.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07184/0.5561, allocations: 40.57 MB / 0.5329 GB, free: 7.691 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.4/14.95, allocations: 7.922 kB / 0.5329 GB, free: 7.684 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 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.csv","/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.72496939401026]