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.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.001936/0.001936, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.002593/0.002593, allocations: 216.1 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] 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.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_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001986/0.001986, allocations: 50.58 kB / 347.2 MB, free: 9.902 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2446, allocations: 49.16 MB / 396.3 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.0137/0.2583, allocations: 11.84 MB / 408.2 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01371/0.272, allocations: 10.13 MB / 418.3 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002067/0.2722, allocations: 3.844 kB / 418.3 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003326/0.2726, allocations: 58.06 kB / 418.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003107/0.2729, allocations: 89.66 kB / 418.4 MB, free: 9.676 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02075/0.2936, allocations: 5.017 MB / 423.5 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006787/0.2943, allocations: 245.2 kB / 423.7 MB, free: 6.031 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.04e-05/0.2944, allocations: 6.141 kB / 423.7 MB, free: 6.027 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006907/0.2951, allocations: 175.7 kB / 423.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001695/0.2952, allocations: 84.08 kB / 424 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.936e-05/0.2953, allocations: 8.75 kB / 424 MB, free: 5.875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01981/0.3151, allocations: 6.67 MB / 430.6 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001765/0.3153, allocations: 23.92 kB / 430.7 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.3154, allocations: 63.78 kB / 430.7 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01225/0.3277, allocations: 3.867 MB / 434.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.896e-06/0.3277, allocations: 4 kB / 434.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3277, allocations: 3.938 kB / 434.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.3277, allocations: 0 / 434.6 MB, free: 12.79 MB / 350.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.004921/0.3326, allocations: 1.087 MB / 435.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.3327, allocations: 11.98 kB / 435.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.213e-05/0.3327, allocations: 46.73 kB / 435.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004781/0.3332, allocations: 52.8 kB / 435.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/0.3337, allocations: 162.3 kB / 436 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.259e-05/0.3337, allocations: 12.38 kB / 436 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.065e-05/0.3337, allocations: 20.12 kB / 436 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.3351, allocations: 447.4 kB / 436.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.3351, allocations: 0 / 436.4 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.306e-05/0.3351, allocations: 8 kB / 436.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.3352, allocations: 4 kB / 436.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001414/0.3366, allocations: 355.5 kB / 436.8 MB, free: 10.5 MB / 350.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.00155/0.3381, allocations: 1.028 MB / 437.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008999/0.339, allocations: 271.8 kB / 438.1 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002853/0.3393, allocations: 110.9 kB / 438.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09426/0.4336, allocations: 25.15 MB / 463.3 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.79e-05/0.4336, allocations: 38.55 kB / 463.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.934e-06/0.4336, allocations: 0 / 463.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.007039/0.4407, allocations: 1.498 MB / 464.9 MB, free: 14.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.387e-05/0.4407, allocations: 114.7 kB / 465 MB, free: 14.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.4409, allocations: 125.9 kB / 465.1 MB, free: 13.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.4409, allocations: 29.7 kB / 465.1 MB, free: 13.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.427e-05/0.441, allocations: 104.6 kB / 465.2 MB, free: 13.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.4411, allocations: 123 kB / 465.4 MB, free: 13.69 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/0.4412, allocations: 66.06 kB / 465.4 MB, free: 13.62 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.4414, allocations: 334.8 kB / 465.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000392/0.4418, allocations: 127.9 kB / 465.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004634/0.4422, allocations: 202.5 kB / 466.1 MB, free: 12.94 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008769/0.4431, allocations: 350.5 kB / 466.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.4431, allocations: 0 / 466.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001153/0.4443, allocations: 430 kB / 466.8 MB, free: 12.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.4443, allocations: 8 kB / 466.8 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.4443, allocations: 0 / 466.8 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002282/0.4445, allocations: 32.84 kB / 466.9 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004904/0.445, allocations: 92.09 kB / 467 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004379/0.4454, allocations: 0.5601 MB / 467.5 MB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003106/0.4458, allocations: 19.92 kB / 467.5 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.974e-05/0.4458, allocations: 19.98 kB / 467.6 MB, free: 11.38 MB / 382.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.0001846/0.446, allocations: 129.8 kB / 467.7 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.4461, allocations: 24 kB / 467.7 MB, free: 11.22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002456/0.4485, allocations: 1.49 MB / 469.2 MB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.578e-05/0.4486, allocations: 23.97 kB / 469.2 MB, free: 9.695 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4486, allocations: 3.938 kB / 469.2 MB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.4486, allocations: 3.984 kB / 469.2 MB, free: 9.688 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003352/0.4519, allocations: 1.974 MB / 471.2 MB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.4519, allocations: 8.062 kB / 471.2 MB, free: 7.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000454/0.4524, allocations: 75.94 kB / 471.3 MB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003058/0.4527, allocations: 76.67 kB / 471.4 MB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.567e-05/0.4527, allocations: 16 kB / 471.4 MB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004482/0.4532, allocations: 0.5953 MB / 472 MB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.4532, allocations: 0 / 472 MB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002612/0.4558, allocations: 1.749 MB / 473.7 MB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.113e-05/0.4559, allocations: 47.58 kB / 473.8 MB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.019e-05/0.4559, allocations: 16.03 kB / 473.8 MB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003666/0.4563, allocations: 19.92 kB / 473.8 MB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.08e-05/0.4563, allocations: 39.88 kB / 473.8 MB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.234e-05/0.4564, allocations: 12 kB / 473.9 MB, free: 4.941 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.843e-05/0.4565, allocations: 95.2 kB / 474 MB, free: 4.848 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4565, allocations: 0 / 474 MB, free: 4.848 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002799/0.4592, allocations: 0.9669 MB / 474.9 MB, free: 3.879 MB / 382.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.007617/0.4669, allocations: 3.328 MB / 478.2 MB, free: 0.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.4684, allocations: 0.5966 MB / 478.8 MB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.4684, allocations: 4.125 kB / 478.8 MB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000866/0.4693, allocations: 472.6 kB / 479.3 MB, free: 15.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007871/0.4701, allocations: 80.28 kB / 479.4 MB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008241/0.4783, allocations: 3.954 MB / 483.3 MB, free: 11.24 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.4786, allocations: 212.6 kB / 483.6 MB, free: 11.01 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004058/0.479, allocations: 141.7 kB / 483.7 MB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002525/0.4793, allocations: 127.4 kB / 483.8 MB, free: 10.75 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4793, allocations: 0 / 483.8 MB, free: 10.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08769/0.5669, allocations: 41.25 MB / 0.5128 GB, free: 1.363 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.9/15.47, allocations: 4.062 kB / 0.5128 GB, free: 1.359 MB / 430.1 MB " [Timeout remaining time 644] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Media_Examples_WaterIF97.fmu > Modelica_3.2.3_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.326927419751883]