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.001407/0.001407, allocations: 112.4 kB / 21.19 MB, free: 0.7148 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.001518/0.001518, allocations: 212.7 kB / 24.49 MB, free: 4.066 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.381/1.381, allocations: 207.6 MB / 235.3 MB, free: 10.02 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.002032/0.002032, allocations: 51.92 kB / 347.2 MB, free: 10.07 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2429/0.2449, allocations: 49.16 MB / 396.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01351/0.2585, allocations: 13.04 MB / 409.4 MB, free: 12 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01586/0.2743, allocations: 11.61 MB / 421 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002032/0.2745, allocations: 1.562 kB / 421 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000434/0.275, allocations: 76.53 kB / 421.1 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000356/0.2753, allocations: 88.08 kB / 421.1 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01811/0.2934, allocations: 5.064 MB / 426.2 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004858/0.2939, allocations: 245.2 kB / 426.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.463e-05/0.294, allocations: 6.391 kB / 426.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005515/0.2945, allocations: 196.2 kB / 426.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001431/0.2947, allocations: 72.62 kB / 426.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.182e-05/0.2947, allocations: 6.812 kB / 426.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01439/0.3091, allocations: 7.01 MB / 433.7 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.3092, allocations: 27.91 kB / 433.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001513/0.3093, allocations: 71.72 kB / 433.8 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009598/0.3189, allocations: 3.874 MB / 437.7 MB, free: 9.887 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3189, allocations: 3.938 kB / 437.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3189, allocations: 0 / 437.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.106e-06/0.319, allocations: 0 / 437.7 MB, free: 9.883 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.004895/0.3238, allocations: 1.091 MB / 438.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.191e-05/0.3239, allocations: 11.98 kB / 438.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.748e-05/0.324, allocations: 46.73 kB / 438.9 MB, free: 8.691 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005141/0.3245, allocations: 60.8 kB / 438.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004307/0.3249, allocations: 162.3 kB / 439.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.325, allocations: 12.38 kB / 439.1 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.173e-05/0.325, allocations: 20.06 kB / 439.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001294/0.3263, allocations: 380 kB / 439.5 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.3263, allocations: 4 kB / 439.5 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.201e-05/0.3263, allocations: 4 kB / 439.5 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.729e-06/0.3264, allocations: 8 kB / 439.5 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001371/0.3277, allocations: 359.5 kB / 439.8 MB, free: 7.648 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.001496/0.3292, allocations: 1.148 MB / 441 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008368/0.3301, allocations: 279.8 kB / 441.3 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000274/0.3303, allocations: 110.9 kB / 441.4 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08462/0.415, allocations: 25.05 MB / 466.4 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/0.415, allocations: 42.56 kB / 466.5 MB, free: 12.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.753e-06/0.415, allocations: 0 / 466.5 MB, free: 12.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.006798/0.4218, allocations: 1.502 MB / 468 MB, free: 11.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.14e-05/0.4219, allocations: 118.8 kB / 468.1 MB, free: 11.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.422, allocations: 117.8 kB / 468.2 MB, free: 11.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/0.422, allocations: 33.7 kB / 468.2 MB, free: 11.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.559e-05/0.4221, allocations: 104.6 kB / 468.3 MB, free: 10.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.4222, allocations: 122.9 kB / 468.5 MB, free: 10.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.4223, allocations: 65.69 kB / 468.5 MB, free: 10.72 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.4225, allocations: 330.8 kB / 468.8 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003743/0.4229, allocations: 135.9 kB / 469 MB, free: 10.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000431/0.4233, allocations: 198.5 kB / 469.2 MB, free: 10.04 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008162/0.4241, allocations: 346.6 kB / 469.5 MB, free: 9.672 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4241, allocations: 0 / 469.5 MB, free: 9.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0011/0.4252, allocations: 430 kB / 469.9 MB, free: 9.242 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.4252, allocations: 7.938 kB / 469.9 MB, free: 9.234 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.4252, allocations: 4.219 kB / 469.9 MB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002351/0.4255, allocations: 40.83 kB / 470 MB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004642/0.4259, allocations: 83.88 kB / 470.1 MB, free: 9.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004347/0.4264, allocations: 0.5484 MB / 470.6 MB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002728/0.4266, allocations: 28.09 kB / 470.6 MB, free: 8.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.618e-05/0.4267, allocations: 16 kB / 470.7 MB, free: 8.488 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.0001639/0.4268, allocations: 137.7 kB / 470.8 MB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.564e-05/0.4269, allocations: 15.91 kB / 470.8 MB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002281/0.4292, allocations: 1.498 MB / 472.3 MB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.526e-05/0.4292, allocations: 23.97 kB / 472.3 MB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4292, allocations: 0 / 472.3 MB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.4292, allocations: 0 / 472.3 MB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003132/0.4324, allocations: 2.01 MB / 474.3 MB, free: 4.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.4324, allocations: 8.031 kB / 474.3 MB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004522/0.4328, allocations: 79.92 kB / 474.4 MB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003159/0.4332, allocations: 76.69 kB / 474.5 MB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.276e-05/0.4332, allocations: 11.98 kB / 474.5 MB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004184/0.4336, allocations: 0.5953 MB / 475.1 MB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4336, allocations: 0 / 475.1 MB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002355/0.436, allocations: 1.737 MB / 476.8 MB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.012e-05/0.436, allocations: 55.84 kB / 476.9 MB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.836e-05/0.4361, allocations: 12 kB / 476.9 MB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004109/0.4365, allocations: 27.95 kB / 476.9 MB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.492e-05/0.4366, allocations: 27.89 kB / 477 MB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.383e-05/0.4366, allocations: 27.92 kB / 477 MB, free: 2.008 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.213e-05/0.4367, allocations: 91.27 kB / 477.1 MB, free: 1.918 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4367, allocations: 0 / 477.1 MB, free: 1.918 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002718/0.4394, allocations: 0.963 MB / 478 MB, free: 0.9531 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.007194/0.4466, allocations: 3.324 MB / 481.4 MB, free: 13.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.448, allocations: 0.6005 MB / 482 MB, free: 12.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/0.448, allocations: 4 kB / 482 MB, free: 12.97 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008115/0.4488, allocations: 473 kB / 482.4 MB, free: 12.51 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007958/0.4496, allocations: 85.31 kB / 482.5 MB, free: 12.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007822/0.4575, allocations: 3.947 MB / 486.5 MB, free: 8.316 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004948/0.4579, allocations: 0.8177 MB / 487.3 MB, free: 7.473 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003822/0.4583, allocations: 133.8 kB / 487.4 MB, free: 7.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002437/0.4586, allocations: 131.4 kB / 487.5 MB, free: 7.211 MB / 398.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4586, allocations: 0 / 487.5 MB, free: 7.211 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08983/0.5484, allocations: 41.29 MB / 0.5164 GB, free: 13.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.93/15.48, allocations: 8.016 kB / 0.5164 GB, free: 13.79 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.WaterIF97_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_WaterIF97_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 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.mat","/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.235596128972247]