Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.00161/0.00161, allocations: 119 kB / 17.78 MB, free: 5.23 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.001909/0.001909, allocations: 197.2 kB / 20.73 MB, free: 2.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 47.92 kB / 365.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.106, allocations: 52.15 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01698/0.123, allocations: 12.95 MB / 430.7 MB, free: 15.63 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01528/0.1382, allocations: 11.59 MB / 442.3 MB, free: 4 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001544/0.1384, allocations: 0 / 442.3 MB, free: 4 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004792/0.1389, allocations: 71.56 kB / 442.4 MB, free: 3.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003377/0.1392, allocations: 87.42 kB / 442.5 MB, free: 3.844 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2052/0.3444, allocations: 5.065 MB / 447.5 MB, free: 9.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002989/0.3447, allocations: 236.4 kB / 447.8 MB, free: 9.09 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.488e-05/0.3448, allocations: 12.36 kB / 447.8 MB, free: 9.086 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003544/0.3452, allocations: 191.5 kB / 448 MB, free: 9.086 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.3453, allocations: 76.7 kB / 448 MB, free: 9.086 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.06e-05/0.3453, allocations: 8.219 kB / 448 MB, free: 9.086 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0115/0.3568, allocations: 6.995 MB / 455 MB, free: 9.082 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.007e-05/0.3569, allocations: 27.08 kB / 455.1 MB, free: 9.082 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.357, allocations: 72.2 kB / 455.1 MB, free: 9.082 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00913/0.3661, allocations: 3.868 MB / 459 MB, free: 8.977 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3661, allocations: 1.031 kB / 459 MB, free: 8.977 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.3661, allocations: 0 / 459 MB, free: 8.977 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.3661, allocations: 0 / 459 MB, free: 8.977 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.006282/0.3724, allocations: 1.17 MB / 460.2 MB, free: 8.363 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.3725, allocations: 10.69 kB / 460.2 MB, free: 8.363 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.664e-05/0.3725, allocations: 49.61 kB / 460.2 MB, free: 8.324 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004976/0.373, allocations: 51.7 kB / 460.3 MB, free: 8.316 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003107/0.3733, allocations: 221.2 kB / 460.5 MB, free: 8.117 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.884e-05/0.3734, allocations: 11.16 kB / 460.5 MB, free: 8.117 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.914e-05/0.3734, allocations: 20.39 kB / 460.5 MB, free: 8.113 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.3747, allocations: 397.2 kB / 460.9 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.3747, allocations: 0 / 460.9 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.605e-05/0.3747, allocations: 11.78 kB / 460.9 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.3747, allocations: 7.438 kB / 460.9 MB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001439/0.3762, allocations: 358.6 kB / 461.3 MB, free: 7.996 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.001163/0.3773, allocations: 1.191 MB / 462.5 MB, free: 7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008239/0.3781, allocations: 277.9 kB / 462.7 MB, free: 6.926 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000267/0.3784, allocations: 106.9 kB / 462.8 MB, free: 6.902 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09859/0.477, allocations: 47.66 MB / 0.4985 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.651e-05/0.477, allocations: 42.62 kB / 0.4986 GB, free: 12.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.826e-06/0.477, allocations: 0 / 0.4986 GB, free: 12.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.006926/0.484, allocations: 1.58 MB / 0.5001 GB, free: 11.56 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.611e-05/0.484, allocations: 110.4 kB / 0.5002 GB, free: 11.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.4842, allocations: 115.7 kB / 0.5003 GB, free: 11.31 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.739e-05/0.4842, allocations: 33.77 kB / 0.5004 GB, free: 11.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.893e-05/0.4843, allocations: 108.6 kB / 0.5005 GB, free: 11.16 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001096/0.4844, allocations: 128 kB / 0.5006 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.4845, allocations: 69.47 kB / 0.5007 GB, free: 10.97 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.4846, allocations: 322.8 kB / 0.501 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003992/0.485, allocations: 135.9 kB / 0.5011 GB, free: 10.51 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004626/0.4855, allocations: 204.6 kB / 0.5013 GB, free: 10.29 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008468/0.4863, allocations: 344.5 kB / 0.5016 GB, free: 9.938 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.4863, allocations: 4 kB / 0.5016 GB, free: 9.934 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001131/0.4875, allocations: 427.9 kB / 0.502 GB, free: 9.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.4875, allocations: 8 kB / 0.502 GB, free: 9.512 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.4875, allocations: 0 / 0.502 GB, free: 9.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002403/0.4877, allocations: 40.83 kB / 0.5021 GB, free: 9.469 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004749/0.4882, allocations: 91.75 kB / 0.5022 GB, free: 9.383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00041/0.4886, allocations: 0.5485 MB / 0.5027 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000285/0.4889, allocations: 24 kB / 0.5027 GB, free: 8.789 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.688e-05/0.4889, allocations: 16 kB / 0.5027 GB, free: 8.773 MB / 414.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.0001584/0.4891, allocations: 138.6 kB / 0.5029 GB, free: 8.633 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.4892, allocations: 16.47 kB / 0.5029 GB, free: 8.617 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00227/0.4915, allocations: 1.45 MB / 0.5043 GB, free: 7.176 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.396e-05/0.4915, allocations: 21.5 kB / 0.5043 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4915, allocations: 4.031 kB / 0.5043 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.4915, allocations: 4 kB / 0.5043 GB, free: 7.148 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003064/0.4946, allocations: 1.984 MB / 0.5063 GB, free: 5.109 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-06/0.4946, allocations: 4 kB / 0.5063 GB, free: 5.105 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004449/0.495, allocations: 86.62 kB / 0.5064 GB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003136/0.4954, allocations: 73.3 kB / 0.5064 GB, free: 4.953 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/0.4954, allocations: 12 kB / 0.5064 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004269/0.4958, allocations: 0.5875 MB / 0.507 GB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/0.4958, allocations: 9.641 kB / 0.507 GB, free: 4.324 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/0.4982, allocations: 1.692 MB / 0.5087 GB, free: 2.613 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.4983, allocations: 140.5 kB / 0.5088 GB, free: 2.461 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.822e-05/0.4984, allocations: 11.98 kB / 0.5088 GB, free: 2.449 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003609/0.4987, allocations: 19.92 kB / 0.5088 GB, free: 2.43 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.817e-05/0.4988, allocations: 31.95 kB / 0.5089 GB, free: 2.398 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.772e-05/0.4988, allocations: 19.98 kB / 0.5089 GB, free: 2.379 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.757e-05/0.4989, allocations: 87.28 kB / 0.509 GB, free: 2.293 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4989, allocations: 0 / 0.509 GB, free: 2.293 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003979/0.5029, allocations: 0.9747 MB / 0.5099 GB, free: 1.316 MB / 414.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.00916/0.5121, allocations: 3.266 MB / 0.5131 GB, free: 14.12 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.5136, allocations: 0.5948 MB / 0.5137 GB, free: 13.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.5136, allocations: 4.125 kB / 0.5137 GB, free: 13.53 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008039/0.5144, allocations: 450.5 kB / 0.5141 GB, free: 13.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008017/0.5152, allocations: 81.17 kB / 0.5142 GB, free: 13.03 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008881/0.5241, allocations: 3.92 MB / 0.518 GB, free: 9.008 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004519/0.5246, allocations: 0.8217 MB / 0.5188 GB, free: 8.156 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000374/0.5249, allocations: 133.6 kB / 0.519 GB, free: 8.035 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002433/0.5252, allocations: 131.4 kB / 0.5191 GB, free: 7.906 MB / 430.1 MB Notification: Performance of SimCode: time 8.31e-07/0.5252, allocations: 0 / 0.5191 GB, free: 7.906 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08513/0.6103, allocations: 40.58 MB / 0.5587 GB, free: 15.46 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.92/15.53, allocations: 19.88 kB / 0.5587 GB, free: 15.44 MB / 478.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 18.44780086306855]