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.000943/0.000943, allocations: 80.31 kB / 22.21 MB, free: 2.281 MB / 18.57 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.0009496/0.0009496, allocations: 167 kB / 25.61 MB, free: 8.574 MB / 18.57 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 0.8731/0.8731, allocations: 177.1 MB / 206 MB, free: 4.484 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Media.Examples.WaterIF97") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.253e-05/1.388e-05, allocations: 6.25 kB / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01038/0.01039, allocations: 12.88 MB / 287 MB, free: 7.512 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009207/0.0196, allocations: 11.09 MB / 298.1 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.79e-05/0.0197, allocations: 0 / 298.1 MB, free: 12.38 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002896/0.01998, allocations: 59.59 kB / 298.2 MB, free: 12.32 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002776/0.02026, allocations: 99.3 kB / 298.3 MB, free: 12.23 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009492/0.02975, allocations: 5.094 MB / 303.4 MB, free: 7.113 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003036/0.03006, allocations: 238.8 kB / 303.6 MB, free: 6.879 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.02e-05/0.03011, allocations: 9.625 kB / 303.6 MB, free: 6.863 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003785/0.03049, allocations: 227.3 kB / 303.8 MB, free: 6.641 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.506e-05/0.03058, allocations: 63.8 kB / 303.9 MB, free: 6.578 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.0306, allocations: 8 kB / 303.9 MB, free: 6.57 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00863/0.03923, allocations: 6.684 MB / 310.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.798e-05/0.0393, allocations: 27.91 kB / 310.6 MB, free: 15.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.969e-05/0.03939, allocations: 51.91 kB / 310.7 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007553/0.04694, allocations: 4.97 MB / 315.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.04695, allocations: 0 / 315.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.04695, allocations: 0 / 315.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.04695, allocations: 0 / 315.6 MB, free: 10.82 MB / 298.7 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.002511/0.04946, allocations: 1.113 MB / 316.8 MB, free: 9.668 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.0495, allocations: 8.031 kB / 316.8 MB, free: 9.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003166/0.04981, allocations: 80.56 kB / 316.8 MB, free: 9.582 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.05, allocations: 168.4 kB / 317 MB, free: 9.391 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.576e-05/0.05002, allocations: 8.656 kB / 317 MB, free: 9.383 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.05005, allocations: 16.38 kB / 317 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005976/0.05065, allocations: 415.4 kB / 317.4 MB, free: 8.906 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.05066, allocations: 8.125 kB / 317.4 MB, free: 8.898 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.635e-05/0.05069, allocations: 7.938 kB / 317.5 MB, free: 8.891 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.0507, allocations: 4 kB / 317.5 MB, free: 8.887 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004476/0.05114, allocations: 237 kB / 317.7 MB, free: 8.656 MB / 298.7 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.0008099/0.05195, allocations: 1.332 MB / 319 MB, free: 7.262 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000395/0.05235, allocations: 261.2 kB / 319.3 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.069e-05/0.05242, allocations: 79.03 kB / 319.4 MB, free: 6.879 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04214/0.09456, allocations: 22.61 MB / 342 MB, free: 252 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.459e-05/0.0946, allocations: 37.39 kB / 342 MB, free: 204 kB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.526e-06/0.0946, allocations: 4 kB / 342 MB, free: 200 kB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.1295/0.2241, allocations: 1.148 MB / 343.1 MB, free: 54.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.2242, allocations: 109.2 kB / 343.3 MB, free: 54.05 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.918e-05/0.2243, allocations: 178.8 kB / 343.4 MB, free: 53.89 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.2243, allocations: 34.86 kB / 343.5 MB, free: 53.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.775e-05/0.2243, allocations: 152.1 kB / 343.6 MB, free: 53.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.594e-05/0.2244, allocations: 127 kB / 343.7 MB, free: 53.65 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.2245, allocations: 80.42 kB / 343.8 MB, free: 53.63 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.2246, allocations: 0.5017 MB / 344.3 MB, free: 53.13 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.2248, allocations: 76.53 kB / 344.4 MB, free: 53.13 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001567/0.2249, allocations: 163.3 kB / 344.6 MB, free: 53.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.2252, allocations: 253.1 kB / 344.8 MB, free: 52.94 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2252, allocations: 0 / 344.8 MB, free: 52.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004922/0.2257, allocations: 318.8 kB / 345.1 MB, free: 52.89 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.2257, allocations: 5.766 kB / 345.1 MB, free: 52.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.2257, allocations: 2.438 kB / 345.1 MB, free: 52.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00016/0.2259, allocations: 37.47 kB / 345.2 MB, free: 52.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002721/0.2262, allocations: 84.92 kB / 345.2 MB, free: 52.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002655/0.2264, allocations: 0.7962 MB / 346 MB, free: 52.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.2265, allocations: 15.11 kB / 346 MB, free: 52.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.259e-05/0.2266, allocations: 13.64 kB / 346.1 MB, free: 52.08 MB / 314.7 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,state2.phase,state.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 9.211e-05/0.2267, allocations: 175.6 kB / 346.2 MB, free: 51.92 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.999e-05/0.2267, allocations: 27.16 kB / 346.3 MB, free: 51.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009379/0.2277, allocations: 0.8685 MB / 347.1 MB, free: 51.76 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.06e-05/0.2277, allocations: 20.09 kB / 347.1 MB, free: 51.76 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.2277, allocations: 1.75 kB / 347.1 MB, free: 51.76 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.2277, allocations: 6.812 kB / 347.2 MB, free: 51.76 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.2289, allocations: 1.212 MB / 348.4 MB, free: 51.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.2289, allocations: 4.734 kB / 348.4 MB, free: 51.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002159/0.2291, allocations: 69.41 kB / 348.4 MB, free: 51.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001795/0.2293, allocations: 55.59 kB / 348.5 MB, free: 51.37 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.2293, allocations: 14.48 kB / 348.5 MB, free: 51.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001627/0.2295, allocations: 0.8003 MB / 349.3 MB, free: 50.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.2295, allocations: 7.094 kB / 349.3 MB, free: 50.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000816/0.2303, allocations: 1.14 MB / 350.5 MB, free: 50.04 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.574e-05/0.2303, allocations: 47.17 kB / 350.5 MB, free: 50.02 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.159e-05/0.2304, allocations: 14.12 kB / 350.5 MB, free: 50.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/0.2305, allocations: 14.92 kB / 350.5 MB, free: 50.02 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.709e-05/0.2306, allocations: 38.27 kB / 350.6 MB, free: 50.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.2306, allocations: 18.33 kB / 350.6 MB, free: 50.02 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.93e-05/0.2306, allocations: 131.1 kB / 350.7 MB, free: 49.9 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2306, allocations: 0 / 350.7 MB, free: 49.9 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00213/0.2328, allocations: 0.9743 MB / 351.7 MB, free: 49.9 MB / 314.7 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.002923/0.2357, allocations: 1.313 MB / 353 MB, free: 49.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005807/0.2363, allocations: 361.7 kB / 353.4 MB, free: 49.72 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.2363, allocations: 0 / 353.4 MB, free: 49.72 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002531/0.2365, allocations: 264 kB / 353.6 MB, free: 49.7 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004896/0.237, allocations: 86.84 kB / 353.7 MB, free: 49.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.2384, allocations: 1.063 MB / 354.8 MB, free: 49.22 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.128e-05/0.2385, allocations: 130.9 kB / 354.9 MB, free: 49.14 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002203/0.2387, allocations: 138.1 kB / 355 MB, free: 49.12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/0.2389, allocations: 159.2 kB / 355.2 MB, free: 49.05 MB / 314.7 MB Notification: Performance of SimCode: time 1.052e-06/0.2389, allocations: 2.625 kB / 355.2 MB, free: 49.05 MB / 314.7 MB Notification: Performance of Templates: time 0.0301/0.269, allocations: 42.47 MB / 397.7 MB, free: 12.97 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Media.Examples.WaterIF97 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/WaterIF97/WaterIF97.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.817289904225618]