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.00188/0.00188, allocations: 111.6 kB / 20.43 MB, free: 1.473 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.002371/0.002371, allocations: 210.7 kB / 23.74 MB, free: 4.691 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.422/1.422, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.001533/0.001533, allocations: 43.92 kB / 377.7 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2655, allocations: 53.37 MB / 431.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01681/0.2823, allocations: 13.13 MB / 444.3 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01378/0.2961, allocations: 11.62 MB / 455.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.2962, allocations: 4 kB / 455.9 MB, free: 14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000334/0.2965, allocations: 71.55 kB / 455.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003091/0.2968, allocations: 87.42 kB / 456 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01304/0.3099, allocations: 5.09 MB / 461.1 MB, free: 8.762 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004065/0.3103, allocations: 238.9 kB / 461.3 MB, free: 8.527 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.273e-05/0.3103, allocations: 9.625 kB / 461.4 MB, free: 8.512 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004507/0.3108, allocations: 199.3 kB / 461.6 MB, free: 8.316 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.3109, allocations: 79.69 kB / 461.6 MB, free: 8.238 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.087e-05/0.3109, allocations: 8 kB / 461.6 MB, free: 8.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01274/0.3237, allocations: 7.009 MB / 468.6 MB, free: 1.215 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.668e-05/0.3238, allocations: 35.89 kB / 468.7 MB, free: 1.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.3239, allocations: 67.73 kB / 468.7 MB, free: 1.113 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008415/0.3323, allocations: 3.878 MB / 472.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3323, allocations: 0 / 472.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3323, allocations: 0 / 472.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.313e-06/0.3323, allocations: 4 kB / 472.6 MB, free: 13.22 MB / 382.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.004905/0.3372, allocations: 1.103 MB / 473.7 MB, free: 12.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.3373, allocations: 12.03 kB / 473.7 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.38e-05/0.3373, allocations: 46.73 kB / 473.8 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004467/0.3378, allocations: 44.84 kB / 473.8 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.3381, allocations: 170.3 kB / 474 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.3381, allocations: 12.59 kB / 474 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.267e-05/0.3382, allocations: 24.12 kB / 474 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/0.3394, allocations: 384.8 kB / 474.4 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.3394, allocations: 0 / 474.4 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.26e-05/0.3395, allocations: 8 kB / 474.4 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.3395, allocations: 8 kB / 474.4 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001377/0.3409, allocations: 355.5 kB / 474.8 MB, free: 10.98 MB / 382.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.001516/0.3424, allocations: 1.163 MB / 475.9 MB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008166/0.3432, allocations: 271.8 kB / 476.2 MB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00027/0.3435, allocations: 106.9 kB / 476.3 MB, free: 9.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08729/0.4307, allocations: 26.01 MB / 0.4905 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.441e-05/0.4308, allocations: 38.56 kB / 0.4906 GB, free: 15.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.843e-06/0.4308, allocations: 0 / 0.4906 GB, free: 15.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.00662/0.4374, allocations: 1.502 MB / 0.4921 GB, free: 13.69 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.946e-05/0.4375, allocations: 110.8 kB / 0.4922 GB, free: 13.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.4376, allocations: 121.7 kB / 0.4923 GB, free: 13.43 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.4376, allocations: 29.7 kB / 0.4923 GB, free: 13.39 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.174e-05/0.4377, allocations: 112.6 kB / 0.4924 GB, free: 13.28 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.4378, allocations: 123 kB / 0.4925 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.4379, allocations: 69.62 kB / 0.4926 GB, free: 13.08 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.4381, allocations: 326.8 kB / 0.4929 GB, free: 12.75 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003845/0.4384, allocations: 143.7 kB / 0.493 GB, free: 12.61 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004226/0.4389, allocations: 198.8 kB / 0.4932 GB, free: 12.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007956/0.4397, allocations: 338.6 kB / 0.4936 GB, free: 12.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.4397, allocations: 4 kB / 0.4936 GB, free: 12.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001063/0.4407, allocations: 426 kB / 0.494 GB, free: 11.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.4408, allocations: 8 kB / 0.494 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.4408, allocations: 4.219 kB / 0.494 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002365/0.441, allocations: 36.83 kB / 0.494 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004633/0.4415, allocations: 87.88 kB / 0.4941 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004098/0.4419, allocations: 0.5484 MB / 0.4946 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002784/0.4421, allocations: 28.09 kB / 0.4947 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.553e-05/0.4422, allocations: 16 kB / 0.4947 GB, free: 10.86 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.0001435/0.4423, allocations: 130.3 kB / 0.4948 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.664e-05/0.4424, allocations: 15.91 kB / 0.4948 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002218/0.4446, allocations: 1.509 MB / 0.4963 GB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.498e-05/0.4447, allocations: 23.97 kB / 0.4963 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.4447, allocations: 0 / 0.4963 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.4447, allocations: 0 / 0.4963 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/0.4477, allocations: 2.002 MB / 0.4983 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.4477, allocations: 4 kB / 0.4983 GB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004354/0.4481, allocations: 83.86 kB / 0.4983 GB, free: 7.008 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003069/0.4484, allocations: 68.73 kB / 0.4984 GB, free: 6.938 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.35e-05/0.4485, allocations: 20.08 kB / 0.4984 GB, free: 6.918 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003913/0.4489, allocations: 0.5913 MB / 0.499 GB, free: 6.301 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4489, allocations: 4.031 kB / 0.499 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002285/0.4512, allocations: 1.741 MB / 0.5007 GB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.461e-05/0.4512, allocations: 51.53 kB / 0.5008 GB, free: 4.477 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.529e-05/0.4513, allocations: 8 kB / 0.5008 GB, free: 4.469 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003606/0.4516, allocations: 27.95 kB / 0.5008 GB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.591e-05/0.4517, allocations: 43.77 kB / 0.5008 GB, free: 4.398 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.204e-05/0.4517, allocations: 16.08 kB / 0.5009 GB, free: 4.383 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.248e-05/0.4518, allocations: 91.27 kB / 0.5009 GB, free: 4.293 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4518, allocations: 0 / 0.5009 GB, free: 4.293 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002525/0.4543, allocations: 0.9747 MB / 0.5019 GB, free: 3.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.006398/0.4607, allocations: 3.337 MB / 0.5052 GB, free: 15.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001386/0.4621, allocations: 0.6008 MB / 0.5057 GB, free: 15.33 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4621, allocations: 0 / 0.5057 GB, free: 15.33 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007689/0.4629, allocations: 473.1 kB / 0.5062 GB, free: 14.87 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007449/0.4636, allocations: 84.08 kB / 0.5063 GB, free: 14.79 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006729/0.4703, allocations: 3.956 MB / 0.5101 GB, free: 10.68 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.4708, allocations: 0.8255 MB / 0.5109 GB, free: 9.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003319/0.4711, allocations: 129.8 kB / 0.5111 GB, free: 9.695 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002242/0.4713, allocations: 127.4 kB / 0.5112 GB, free: 9.57 MB / 430.1 MB Notification: Performance of SimCode: time 5.92e-07/0.4713, allocations: 0 / 0.5112 GB, free: 9.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2734/0.7448, allocations: 41.38 MB / 0.5516 GB, free: 83.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.38/16.12, allocations: 8.062 kB / 0.5516 GB, free: 83.69 MB / 446.1 MB " [Timeout remaining time 644] (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: 18.942414406999887]