Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001685/0.001685, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002149/0.002149, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.516/1.516, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 51.92 kB / 373 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09794/0.09946, allocations: 53.33 MB / 426.3 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.2217/0.3211, allocations: 13.07 MB / 439.4 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01346/0.3346, allocations: 11.57 MB / 450.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001937/0.3348, allocations: 5.031 kB / 450.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004046/0.3352, allocations: 68.73 kB / 451 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003888/0.3356, allocations: 84.88 kB / 451.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01883/0.3544, allocations: 5.09 MB / 456.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004899/0.3549, allocations: 233.8 kB / 456.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.188e-05/0.355, allocations: 9.844 kB / 456.4 MB, free: 10.65 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005277/0.3555, allocations: 200.3 kB / 456.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.3556, allocations: 84.45 kB / 456.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.356e-05/0.3557, allocations: 7.312 kB / 456.7 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01761/0.3733, allocations: 7.005 MB / 463.7 MB, free: 6.801 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.3734, allocations: 22.52 kB / 463.7 MB, free: 6.785 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.3736, allocations: 68.42 kB / 463.8 MB, free: 6.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01263/0.3862, allocations: 3.883 MB / 467.7 MB, free: 4.266 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.828e-06/0.3862, allocations: 4 kB / 467.7 MB, free: 4.262 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3862, allocations: 0 / 467.7 MB, free: 4.262 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.745e-05/0.3862, allocations: 0 / 467.7 MB, free: 4.262 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.005942/0.3922, allocations: 1.17 MB / 468.9 MB, free: 3.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.3922, allocations: 16.94 kB / 468.9 MB, free: 3.422 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.828e-05/0.3923, allocations: 47.23 kB / 468.9 MB, free: 3.371 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005106/0.3928, allocations: 47.94 kB / 469 MB, free: 3.355 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003127/0.3931, allocations: 221.3 kB / 469.2 MB, free: 3.113 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/0.3932, allocations: 10.84 kB / 469.2 MB, free: 3.109 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.309e-05/0.3932, allocations: 17.44 kB / 469.2 MB, free: 3.102 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001355/0.3946, allocations: 388.8 kB / 469.6 MB, free: 2.824 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.3946, allocations: 6.312 kB / 469.6 MB, free: 2.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.687e-05/0.3946, allocations: 5.469 kB / 469.6 MB, free: 2.816 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.3946, allocations: 4.781 kB / 469.6 MB, free: 2.816 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001476/0.3961, allocations: 357.8 kB / 469.9 MB, free: 2.645 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.001597/0.3977, allocations: 1.179 MB / 471.1 MB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009144/0.3986, allocations: 275.8 kB / 471.4 MB, free: 1.293 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000289/0.3989, allocations: 112.6 kB / 471.5 MB, free: 1.223 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1101/0.509, allocations: 52.79 MB / 0.512 GB, free: 8.145 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.491e-05/0.5091, allocations: 38.56 kB / 0.512 GB, free: 8.098 MB / 430.1 MB Notification: Performance of pre-optimization done (n=23): time 2.755e-06/0.5091, allocations: 4 kB / 0.512 GB, free: 8.094 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.007282/0.5164, allocations: 1.589 MB / 0.5136 GB, free: 6.457 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.694e-05/0.5164, allocations: 110.8 kB / 0.5137 GB, free: 6.324 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.5166, allocations: 121.8 kB / 0.5138 GB, free: 6.195 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.632e-05/0.5166, allocations: 33.7 kB / 0.5139 GB, free: 6.156 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.509e-05/0.5167, allocations: 108.6 kB / 0.514 GB, free: 6.047 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.5168, allocations: 126.9 kB / 0.5141 GB, free: 5.922 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.5169, allocations: 65.69 kB / 0.5141 GB, free: 5.852 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.5171, allocations: 322.8 kB / 0.5144 GB, free: 5.527 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004111/0.5175, allocations: 143.7 kB / 0.5146 GB, free: 5.387 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004644/0.5179, allocations: 202.5 kB / 0.5148 GB, free: 5.164 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008771/0.5188, allocations: 358.4 kB / 0.5151 GB, free: 4.789 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.5188, allocations: 4 kB / 0.5151 GB, free: 4.785 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00119/0.52, allocations: 422 kB / 0.5155 GB, free: 4.363 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.52, allocations: 8 kB / 0.5155 GB, free: 4.355 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.52, allocations: 0 / 0.5155 GB, free: 4.355 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002675/0.5203, allocations: 36.83 kB / 0.5156 GB, free: 4.316 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004814/0.5208, allocations: 92.03 kB / 0.5157 GB, free: 4.227 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004385/0.5212, allocations: 0.5484 MB / 0.5162 GB, free: 3.652 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002948/0.5215, allocations: 24.02 kB / 0.5162 GB, free: 3.629 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.672e-05/0.5216, allocations: 12 kB / 0.5162 GB, free: 3.617 MB / 430.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.0001762/0.5217, allocations: 141.9 kB / 0.5164 GB, free: 3.469 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.5219, allocations: 15.91 kB / 0.5164 GB, free: 3.453 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002415/0.5243, allocations: 1.44 MB / 0.5178 GB, free: 2.004 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.426e-05/0.5243, allocations: 24 kB / 0.5178 GB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.5243, allocations: 0 / 0.5178 GB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.5243, allocations: 9.156 kB / 0.5178 GB, free: 1.973 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003207/0.5275, allocations: 1.972 MB / 0.5197 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.5275, allocations: 0 / 0.5197 GB, free: 15.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004599/0.528, allocations: 91.98 kB / 0.5198 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003368/0.5283, allocations: 65.17 kB / 0.5199 GB, free: 15.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.666e-05/0.5284, allocations: 15.92 kB / 0.5199 GB, free: 15.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004479/0.5288, allocations: 0.5961 MB / 0.5205 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.5288, allocations: 0 / 0.5205 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002477/0.5313, allocations: 1.696 MB / 0.5221 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.5314, allocations: 132.6 kB / 0.5223 GB, free: 13.26 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.768e-05/0.5315, allocations: 12 kB / 0.5223 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003668/0.5318, allocations: 19.92 kB / 0.5223 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.217e-05/0.5319, allocations: 35.89 kB / 0.5223 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.584e-05/0.5319, allocations: 17.67 kB / 0.5224 GB, free: 13.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.22e-05/0.532, allocations: 91.27 kB / 0.5224 GB, free: 13.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.532, allocations: 7.938 kB / 0.5224 GB, free: 13.08 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00361/0.5356, allocations: 0.9708 MB / 0.5234 GB, free: 12.11 MB / 446.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.008711/0.5443, allocations: 3.289 MB / 0.5266 GB, free: 8.789 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001602/0.5459, allocations: 0.5849 MB / 0.5272 GB, free: 8.207 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.5459, allocations: 0 / 0.5272 GB, free: 8.207 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008711/0.5468, allocations: 448.6 kB / 0.5276 GB, free: 7.766 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008165/0.5476, allocations: 80.58 kB / 0.5277 GB, free: 7.688 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008908/0.5565, allocations: 3.912 MB / 0.5315 GB, free: 3.621 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004913/0.557, allocations: 0.8177 MB / 0.5323 GB, free: 2.777 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004109/0.5574, allocations: 133.8 kB / 0.5324 GB, free: 2.645 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002504/0.5577, allocations: 131.4 kB / 0.5326 GB, free: 2.516 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5577, allocations: 3.938 kB / 0.5326 GB, free: 2.512 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08877/0.6465, allocations: 40.66 MB / 0.5723 GB, free: 9.938 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.15/14.79, allocations: 3.984 kB / 0.5723 GB, free: 9.934 MB / 494.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Media_Examples_WaterIF97.fmu > Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 17.673294339998392]