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.001368/0.001368, allocations: 96.03 kB / 21.18 MB, free: 0.5312 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.002269/0.002269, allocations: 187 kB / 24.46 MB, free: 3.863 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.45/1.45, allocations: 225.7 MB / 253.3 MB, free: 12.84 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: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.WaterIF97") translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.WaterIF97") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 55.92 kB / 371.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.2449, allocations: 52.16 MB / 423.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01701/0.2619, allocations: 11.84 MB / 435.6 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01395/0.2758, allocations: 10.12 MB / 445.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.276, allocations: 8 kB / 445.8 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003348/0.2763, allocations: 71.56 kB / 445.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003241/0.2766, allocations: 75.44 kB / 445.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01348/0.2901, allocations: 5.038 MB / 450.9 MB, free: 3.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004141/0.2905, allocations: 231 kB / 451.2 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.698e-05/0.2906, allocations: 5.641 kB / 451.2 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004824/0.2911, allocations: 187.4 kB / 451.4 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.2912, allocations: 75.62 kB / 451.4 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/0.2912, allocations: 8 kB / 451.4 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01316/0.3044, allocations: 6.673 MB / 458.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.3045, allocations: 27.91 kB / 458.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.3046, allocations: 55.8 kB / 458.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009089/0.3137, allocations: 3.871 MB / 462.1 MB, free: 8.109 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.3137, allocations: 0 / 462.1 MB, free: 8.109 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3137, allocations: 4 kB / 462.1 MB, free: 8.105 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.3137, allocations: 0 / 462.1 MB, free: 8.105 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.005088/0.3188, allocations: 1.08 MB / 463.1 MB, free: 6.992 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3189, allocations: 12.03 kB / 463.2 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005068/0.3194, allocations: 60.73 kB / 463.2 MB, free: 6.922 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.3197, allocations: 162.3 kB / 463.4 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.154e-05/0.3198, allocations: 12.66 kB / 463.4 MB, free: 6.727 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.678e-05/0.3198, allocations: 20.33 kB / 463.4 MB, free: 6.707 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.3212, allocations: 448.1 kB / 463.8 MB, free: 6.227 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.197e-05/0.3212, allocations: 7.938 kB / 463.9 MB, free: 6.219 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.409e-05/0.3213, allocations: 4 kB / 463.9 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.3213, allocations: 4 kB / 463.9 MB, free: 6.211 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001491/0.3228, allocations: 347.6 kB / 464.2 MB, free: 5.871 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.001441/0.3242, allocations: 1.005 MB / 465.2 MB, free: 4.809 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009187/0.3251, allocations: 271.8 kB / 465.5 MB, free: 4.516 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002917/0.3254, allocations: 106.5 kB / 465.6 MB, free: 4.402 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09376/0.4192, allocations: 25.15 MB / 490.7 MB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/0.4192, allocations: 38.5 kB / 490.8 MB, free: 11.17 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.505e-06/0.4192, allocations: 4 kB / 490.8 MB, free: 11.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.007155/0.4264, allocations: 1.508 MB / 492.3 MB, free: 9.625 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.992e-05/0.4265, allocations: 106.8 kB / 492.4 MB, free: 9.496 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.4266, allocations: 121.7 kB / 492.5 MB, free: 9.367 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.347e-05/0.4266, allocations: 33.7 kB / 492.5 MB, free: 9.328 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.299e-05/0.4267, allocations: 100.7 kB / 492.6 MB, free: 9.227 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.4268, allocations: 130.8 kB / 492.8 MB, free: 9.098 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.4269, allocations: 69.47 kB / 492.8 MB, free: 9.023 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.4271, allocations: 330.9 kB / 493.1 MB, free: 8.691 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004089/0.4275, allocations: 131.9 kB / 493.3 MB, free: 8.562 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004513/0.4279, allocations: 194.8 kB / 493.5 MB, free: 8.348 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00089/0.4288, allocations: 354.5 kB / 493.8 MB, free: 7.977 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.4288, allocations: 0 / 493.8 MB, free: 7.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001166/0.43, allocations: 430 kB / 494.2 MB, free: 7.547 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.43, allocations: 4.375 kB / 494.2 MB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.43, allocations: 4 kB / 494.2 MB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002521/0.4303, allocations: 40.83 kB / 494.3 MB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004857/0.4308, allocations: 87.88 kB / 494.4 MB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004297/0.4312, allocations: 0.5447 MB / 494.9 MB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/0.4315, allocations: 32.06 kB / 494.9 MB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.936e-05/0.4315, allocations: 19.94 kB / 495 MB, free: 6.789 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.0001764/0.4317, allocations: 137.7 kB / 495.1 MB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.4318, allocations: 19.89 kB / 495.1 MB, free: 6.625 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002382/0.4342, allocations: 1.494 MB / 496.6 MB, free: 5.125 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.757e-05/0.4342, allocations: 23.91 kB / 496.6 MB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.4342, allocations: 0 / 496.6 MB, free: 5.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.4342, allocations: 7.984 kB / 496.6 MB, free: 5.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00312/0.4374, allocations: 1.904 MB / 498.5 MB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.277e-06/0.4374, allocations: 4 kB / 498.6 MB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004501/0.4378, allocations: 83.86 kB / 498.6 MB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003264/0.4382, allocations: 72.92 kB / 498.7 MB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.81e-05/0.4382, allocations: 11.98 kB / 498.7 MB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000418/0.4386, allocations: 0.5913 MB / 499.3 MB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.4386, allocations: 4.031 kB / 499.3 MB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002446/0.4411, allocations: 1.737 MB / 0.4893 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.075e-05/0.4411, allocations: 55.47 kB / 0.4894 GB, free: 0.5195 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.537e-05/0.4412, allocations: 12 kB / 0.4894 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003783/0.4416, allocations: 24.03 kB / 0.4894 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.855e-05/0.4417, allocations: 35.88 kB / 0.4894 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.006e-05/0.4417, allocations: 23.98 kB / 0.4895 GB, free: 436 kB / 398.1 MB Notification: Performance of sorting global known variables: time 7.362e-05/0.4418, allocations: 95.2 kB / 0.4895 GB, free: 340 kB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4418, allocations: 0 / 0.4895 GB, free: 340 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.00272/0.4445, allocations: 0.9669 MB / 0.4905 GB, free: 15.36 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.004622/0.4491, allocations: 1.137 MB / 0.4916 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001539/0.4507, allocations: 0.6047 MB / 0.4922 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.4507, allocations: 0 / 0.4922 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008341/0.4515, allocations: 474.5 kB / 0.4926 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000824/0.4523, allocations: 84.12 kB / 0.4927 GB, free: 13.06 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.4549, allocations: 1.36 MB / 0.494 GB, free: 11.65 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002172/0.4551, allocations: 212.3 kB / 0.4943 GB, free: 11.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/0.4553, allocations: 43.41 kB / 0.4943 GB, free: 11.38 MB / 414.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4553, allocations: 0 / 0.4943 GB, free: 11.38 MB / 414.1 MB Notification: Performance of Templates: time 0.03421/0.4895, allocations: 21.93 MB / 0.5157 GB, free: 5.434 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat","/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: 9.829971215687692]