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.001803/0.001803, allocations: 103.5 kB / 20.43 MB, free: 1.328 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.002105/0.002105, allocations: 180.1 kB / 23.7 MB, free: 4.52 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.405/1.405, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.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.001675/0.001675, allocations: 51.92 kB / 370.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2472, allocations: 52.17 MB / 422.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01703/0.2642, allocations: 11.84 MB / 434.4 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01336/0.2775, allocations: 10.13 MB / 444.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.52e-05/0.2776, allocations: 0 / 444.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000323/0.278, allocations: 67.59 kB / 444.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003039/0.2783, allocations: 83.42 kB / 444.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01249/0.2908, allocations: 5.036 MB / 449.7 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003691/0.2911, allocations: 227 kB / 449.9 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.23e-05/0.2912, allocations: 5.641 kB / 449.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004566/0.2916, allocations: 187.4 kB / 450.1 MB, free: 2.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.2918, allocations: 79.61 kB / 450.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.179e-05/0.2918, allocations: 8 kB / 450.2 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01226/0.3041, allocations: 6.669 MB / 456.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.245e-05/0.3041, allocations: 23.92 kB / 456.9 MB, free: 12 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000107/0.3042, allocations: 59.78 kB / 456.9 MB, free: 11.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007656/0.3119, allocations: 3.874 MB / 460.8 MB, free: 8.055 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3119, allocations: 4 kB / 460.8 MB, free: 8.051 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3119, allocations: 0 / 460.8 MB, free: 8.051 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.3119, allocations: 0 / 460.8 MB, free: 8.051 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.004355/0.3163, allocations: 1.076 MB / 461.9 MB, free: 6.941 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.3163, allocations: 16.03 kB / 461.9 MB, free: 6.926 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.178e-05/0.3164, allocations: 50.67 kB / 462 MB, free: 6.867 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000454/0.3168, allocations: 52.8 kB / 462 MB, free: 6.816 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003278/0.3171, allocations: 174.3 kB / 462.2 MB, free: 6.621 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/0.3172, allocations: 12.59 kB / 462.2 MB, free: 6.609 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.507e-05/0.3172, allocations: 24.08 kB / 462.2 MB, free: 6.586 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.3185, allocations: 444.2 kB / 462.7 MB, free: 6.109 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.3185, allocations: 0 / 462.7 MB, free: 6.109 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.378e-05/0.3186, allocations: 8 kB / 462.7 MB, free: 6.102 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3186, allocations: 0 / 462.7 MB, free: 6.102 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001428/0.32, allocations: 359.5 kB / 463 MB, free: 5.75 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.001378/0.3214, allocations: 1.024 MB / 464 MB, free: 4.656 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008509/0.3222, allocations: 267.8 kB / 464.3 MB, free: 4.367 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002873/0.3225, allocations: 110.9 kB / 464.4 MB, free: 4.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09107/0.4136, allocations: 25.15 MB / 489.6 MB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.876e-05/0.4136, allocations: 42.56 kB / 489.6 MB, free: 11.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.855e-06/0.4136, allocations: 0 / 489.6 MB, free: 11.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.006837/0.4205, allocations: 1.508 MB / 491.1 MB, free: 9.477 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.184e-05/0.4206, allocations: 106.8 kB / 491.2 MB, free: 9.348 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.4207, allocations: 125.7 kB / 491.3 MB, free: 9.215 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.4207, allocations: 29.7 kB / 491.4 MB, free: 9.18 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.697e-05/0.4208, allocations: 104.6 kB / 491.5 MB, free: 9.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.4209, allocations: 131 kB / 491.6 MB, free: 8.945 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.421, allocations: 69.47 kB / 491.7 MB, free: 8.871 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.4211, allocations: 326.8 kB / 492 MB, free: 8.543 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003887/0.4215, allocations: 135.9 kB / 492.1 MB, free: 8.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000433/0.4219, allocations: 194.8 kB / 492.3 MB, free: 8.195 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008108/0.4228, allocations: 346.6 kB / 492.6 MB, free: 7.832 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4228, allocations: 0 / 492.6 MB, free: 7.832 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001114/0.4239, allocations: 430 kB / 493.1 MB, free: 7.402 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.4239, allocations: 11.94 kB / 493.1 MB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.4239, allocations: 384 / 493.1 MB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002328/0.4241, allocations: 36.83 kB / 493.1 MB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004603/0.4246, allocations: 87.88 kB / 493.2 MB, free: 7.266 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000408/0.425, allocations: 0.5525 MB / 493.7 MB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002731/0.4253, allocations: 27.86 kB / 493.8 MB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.603e-05/0.4253, allocations: 15.98 kB / 493.8 MB, free: 6.645 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.0001525/0.4255, allocations: 137.8 kB / 493.9 MB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.926e-05/0.4256, allocations: 19.91 kB / 493.9 MB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002244/0.4278, allocations: 1.502 MB / 495.4 MB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-05/0.4278, allocations: 15.97 kB / 495.5 MB, free: 4.957 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.4278, allocations: 4 kB / 495.5 MB, free: 4.953 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.4278, allocations: 3.984 kB / 495.5 MB, free: 4.949 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003091/0.4309, allocations: 1.986 MB / 497.5 MB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.4309, allocations: 0 / 497.5 MB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004432/0.4314, allocations: 87.98 kB / 497.5 MB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003076/0.4317, allocations: 68.8 kB / 497.6 MB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.631e-05/0.4317, allocations: 15.98 kB / 497.6 MB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004117/0.4321, allocations: 0.5991 MB / 498.2 MB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4321, allocations: 0 / 498.2 MB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002334/0.4345, allocations: 1.737 MB / 500 MB, free: 340 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.886e-05/0.4345, allocations: 55.53 kB / 0.4883 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.613e-05/0.4346, allocations: 8 kB / 0.4883 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003672/0.4349, allocations: 23.92 kB / 0.4883 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.737e-05/0.435, allocations: 35.94 kB / 0.4884 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.049e-05/0.4351, allocations: 11.98 kB / 0.4884 GB, free: 204 kB / 398.1 MB Notification: Performance of sorting global known variables: time 6.505e-05/0.4351, allocations: 95.2 kB / 0.4885 GB, free: 108 kB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4351, allocations: 0 / 0.4885 GB, free: 108 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.002531/0.4376, allocations: 0.9631 MB / 0.4894 GB, free: 15.14 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.006687/0.4443, allocations: 3.337 MB / 0.4927 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001465/0.4458, allocations: 0.6041 MB / 0.4933 GB, free: 11.15 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4458, allocations: 0 / 0.4933 GB, free: 11.15 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008211/0.4466, allocations: 470.8 kB / 0.4937 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007808/0.4474, allocations: 83.86 kB / 0.4938 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006884/0.4543, allocations: 3.925 MB / 0.4976 GB, free: 6.531 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002082/0.4545, allocations: 216.3 kB / 0.4978 GB, free: 6.297 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003735/0.4549, allocations: 137.9 kB / 0.498 GB, free: 6.164 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.4551, allocations: 131.4 kB / 0.4981 GB, free: 6.035 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4551, allocations: 0 / 0.4981 GB, free: 6.035 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2709/0.726, allocations: 41.26 MB / 0.5384 GB, free: 115.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.04/15.77, allocations: 8.953 kB / 0.5384 GB, free: 115.9 MB / 446.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.494623822160065]