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: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 106.4 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.001707/0.001707, allocations: 187.1 kB / 18.66 MB, free: 4.441 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.416/1.416, 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.001382/0.001382, allocations: 55.91 kB / 328.5 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08395/0.08535, allocations: 46.62 MB / 375.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.1924/0.2778, allocations: 12.91 MB / 388 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01168/0.2895, allocations: 11.54 MB / 399.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.2897, allocations: 5.469 kB / 399.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000402/0.2902, allocations: 76.28 kB / 399.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003327/0.2906, allocations: 80.33 kB / 399.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01969/0.3103, allocations: 5.071 MB / 404.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006509/0.3109, allocations: 235 kB / 405 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.007e-05/0.311, allocations: 12.17 kB / 405 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000665/0.3117, allocations: 198.4 kB / 405.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001727/0.3119, allocations: 76.95 kB / 405.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.3119, allocations: 8.062 kB / 405.3 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01708/0.329, allocations: 6.983 MB / 412.3 MB, free: 7.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.494e-05/0.3291, allocations: 26.47 kB / 412.3 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000139/0.3293, allocations: 68.41 kB / 412.4 MB, free: 7.902 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009633/0.3389, allocations: 3.867 MB / 416.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.339, allocations: 0 / 416.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.339, allocations: 0 / 416.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.339, allocations: 0 / 416.3 MB, free: 5.43 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.005053/0.344, allocations: 1.144 MB / 417.4 MB, free: 4.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.3441, allocations: 8.594 kB / 417.4 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005226/0.3446, allocations: 51.73 kB / 417.5 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.345, allocations: 222.3 kB / 417.7 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/0.345, allocations: 9.969 kB / 417.7 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.293e-05/0.3451, allocations: 14.53 kB / 417.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001339/0.3464, allocations: 384.8 kB / 418.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.3464, allocations: 1.188 kB / 418.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.853e-05/0.3465, allocations: 11.02 kB / 418.1 MB, free: 4.074 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.3465, allocations: 4.031 kB / 418.1 MB, free: 4.074 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.348, allocations: 357.5 kB / 418.4 MB, free: 3.902 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.001388/0.3494, allocations: 1.192 MB / 419.6 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008629/0.3503, allocations: 281.8 kB / 419.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000286/0.3506, allocations: 113.3 kB / 420 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09812/0.4487, allocations: 47.65 MB / 467.7 MB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.4488, allocations: 34.56 kB / 467.7 MB, free: 13.22 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.174e-06/0.4488, allocations: 0 / 467.7 MB, free: 13.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.00693/0.4557, allocations: 1.581 MB / 469.3 MB, free: 11.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.601e-05/0.4558, allocations: 106.8 kB / 469.4 MB, free: 11.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.456, allocations: 121.7 kB / 469.5 MB, free: 11.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.206e-05/0.456, allocations: 33.7 kB / 469.5 MB, free: 11.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.58e-05/0.4561, allocations: 100.6 kB / 469.6 MB, free: 11.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.771e-05/0.4562, allocations: 118.3 kB / 469.8 MB, free: 11.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.4563, allocations: 65.69 kB / 469.8 MB, free: 11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.4564, allocations: 330.8 kB / 470.1 MB, free: 10.67 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003752/0.4568, allocations: 131.9 kB / 470.3 MB, free: 10.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004288/0.4573, allocations: 198.5 kB / 470.5 MB, free: 10.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008111/0.4581, allocations: 350.5 kB / 470.8 MB, free: 9.953 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.4581, allocations: 3.938 kB / 470.8 MB, free: 9.949 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001071/0.4592, allocations: 430.1 kB / 471.2 MB, free: 9.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.4592, allocations: 4 kB / 471.2 MB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.347e-05/0.4592, allocations: 4 kB / 471.2 MB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002652/0.4595, allocations: 36.83 kB / 471.3 MB, free: 9.473 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004747/0.46, allocations: 92.75 kB / 471.4 MB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003539/0.4603, allocations: 0.5484 MB / 471.9 MB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002824/0.4606, allocations: 19.97 kB / 471.9 MB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.71e-05/0.4607, allocations: 16 kB / 472 MB, free: 8.773 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.0001635/0.4609, allocations: 145.6 kB / 472.1 MB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.461, allocations: 23.8 kB / 472.1 MB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002073/0.463, allocations: 1.441 MB / 473.6 MB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-05/0.4631, allocations: 24.28 kB / 473.6 MB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.4631, allocations: 1.078 kB / 473.6 MB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.4631, allocations: 3.984 kB / 473.6 MB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002847/0.466, allocations: 1.983 MB / 475.6 MB, free: 5.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.466, allocations: 3.938 kB / 475.6 MB, free: 5.059 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004405/0.4664, allocations: 83.86 kB / 475.7 MB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003213/0.4668, allocations: 72.92 kB / 475.7 MB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.65e-05/0.4668, allocations: 11.98 kB / 475.7 MB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003916/0.4672, allocations: 0.5849 MB / 476.3 MB, free: 4.281 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.4672, allocations: 7.875 kB / 476.3 MB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002228/0.4695, allocations: 1.675 MB / 478 MB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.4696, allocations: 136.3 kB / 478.1 MB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.176e-05/0.4697, allocations: 12 kB / 478.2 MB, free: 2.402 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003962/0.4701, allocations: 19.98 kB / 478.2 MB, free: 2.383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.679e-05/0.4702, allocations: 40.25 kB / 478.2 MB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-05/0.4702, allocations: 19.98 kB / 478.2 MB, free: 2.324 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.39e-05/0.4703, allocations: 91.27 kB / 478.3 MB, free: 2.234 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4703, allocations: 0 / 478.3 MB, free: 2.234 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004132/0.4744, allocations: 0.9488 MB / 479.3 MB, free: 1.285 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.00562/0.4801, allocations: 1.144 MB / 480.4 MB, free: 132 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001487/0.4816, allocations: 0.6124 MB / 481 MB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4816, allocations: 0 / 481 MB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000822/0.4824, allocations: 0.5093 MB / 481.5 MB, free: 15.01 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008171/0.4832, allocations: 76.14 kB / 481.6 MB, free: 14.94 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002261/0.4855, allocations: 1.307 MB / 482.9 MB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003805/0.4859, allocations: 0.8178 MB / 483.7 MB, free: 12.74 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003587/0.4863, allocations: 133.8 kB / 483.9 MB, free: 12.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.4864, allocations: 35.42 kB / 483.9 MB, free: 12.58 MB / 414.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4864, allocations: 0 / 483.9 MB, free: 12.58 MB / 414.1 MB Notification: Performance of Templates: time 0.04715/0.5336, allocations: 36.25 MB / 0.508 GB, free: 8.258 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.makefile (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 & ./Modelica_3.2.3_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins/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