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.001252/0.001252, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001418/0.001418, allocations: 147.5 kB / 24.89 MB, free: 8.793 MB / 18.57 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 0.9435/0.9435, allocations: 173.4 MB / 201.5 MB, free: 8.773 MB / 186.7 MB " [Timeout remaining time 179] 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 1.613e-06/1.613e-06, allocations: 0 / 268.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.514e-05/2.675e-05, allocations: 2.312 kB / 268.5 MB, free: 6.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.WaterIF97): time 0.01546/0.01549, allocations: 12.95 MB / 281.4 MB, free: 9.023 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1233/0.1388, allocations: 11.23 MB / 292.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.1389, allocations: 1.406 kB / 292.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002765/0.1392, allocations: 66.62 kB / 292.7 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000245/0.1394, allocations: 92.08 kB / 292.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009113/0.1485, allocations: 4.605 MB / 297.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000273/0.1488, allocations: 242.5 kB / 297.6 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.179e-05/0.1489, allocations: 7.734 kB / 297.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003449/0.1492, allocations: 219 kB / 297.9 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.745e-05/0.1493, allocations: 60.17 kB / 297.9 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.1493, allocations: 7.938 kB / 297.9 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01011/0.1594, allocations: 7.17 MB / 305.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.153e-05/0.1595, allocations: 29.5 kB / 305.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.197e-05/0.1596, allocations: 51.8 kB / 305.2 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005896/0.1655, allocations: 4.954 MB / 310.1 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1655, allocations: 0 / 310.1 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1655, allocations: 0 / 310.1 MB, free: 9.859 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.1655, allocations: 3.062 kB / 310.1 MB, free: 9.859 MB / 266.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.002323/0.1678, allocations: 0.9776 MB / 311.1 MB, free: 9.215 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.1679, allocations: 13.92 kB / 311.1 MB, free: 9.211 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003173/0.1682, allocations: 83.12 kB / 311.2 MB, free: 9.176 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001528/0.1683, allocations: 146.2 kB / 311.4 MB, free: 9.027 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.1683, allocations: 10.62 kB / 311.4 MB, free: 9.023 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.098e-05/0.1684, allocations: 17.67 kB / 311.4 MB, free: 9.016 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005139/0.1689, allocations: 408.6 kB / 311.8 MB, free: 8.707 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1689, allocations: 4.375 kB / 311.8 MB, free: 8.703 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.108e-05/0.1689, allocations: 11.28 kB / 311.8 MB, free: 8.695 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.1689, allocations: 3.219 kB / 311.8 MB, free: 8.695 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003933/0.1693, allocations: 210.7 kB / 312 MB, free: 8.629 MB / 266.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.0005574/0.1699, allocations: 0.9053 MB / 312.9 MB, free: 7.812 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003572/0.1702, allocations: 235.6 kB / 313.1 MB, free: 7.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.789e-05/0.1703, allocations: 58.58 kB / 313.2 MB, free: 7.648 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.118/0.2883, allocations: 67.22 MB / 380.4 MB, free: 5.012 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.459e-05/0.2883, allocations: 38.56 kB / 380.5 MB, free: 4.965 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.314e-06/0.2883, allocations: 0 / 380.5 MB, free: 4.965 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.003915/0.2922, allocations: 1.21 MB / 381.7 MB, free: 3.754 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.2923, allocations: 106.8 kB / 381.8 MB, free: 3.625 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.436e-05/0.2923, allocations: 130.2 kB / 381.9 MB, free: 3.492 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.627e-05/0.2924, allocations: 29.7 kB / 381.9 MB, free: 3.457 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.647e-05/0.2924, allocations: 102 kB / 382 MB, free: 3.355 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.573e-05/0.2925, allocations: 123.6 kB / 382.1 MB, free: 3.242 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.825e-05/0.2926, allocations: 73.17 kB / 382.2 MB, free: 3.172 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.12e-05/0.2927, allocations: 328 kB / 382.5 MB, free: 2.852 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.2928, allocations: 59.97 kB / 382.6 MB, free: 2.793 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.2929, allocations: 131.1 kB / 382.7 MB, free: 2.648 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.2932, allocations: 220.5 kB / 382.9 MB, free: 2.422 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.2932, allocations: 0 / 382.9 MB, free: 2.422 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003814/0.2936, allocations: 247.6 kB / 383.2 MB, free: 2.184 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.2936, allocations: 8 kB / 383.2 MB, free: 2.176 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/0.2936, allocations: 3.938 kB / 383.2 MB, free: 2.172 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001651/0.2938, allocations: 28.83 kB / 383.2 MB, free: 2.141 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003067/0.2941, allocations: 91.72 kB / 383.3 MB, free: 2.055 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002875/0.2944, allocations: 0.522 MB / 383.8 MB, free: 1.512 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.2945, allocations: 11.98 kB / 383.8 MB, free: 1.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.951e-05/0.2945, allocations: 15.98 kB / 383.9 MB, free: 1.484 MB / 330.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 0.0001174/0.2946, allocations: 141.4 kB / 384 MB, free: 1.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.333e-05/0.2947, allocations: 22.61 kB / 384 MB, free: 1.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009884/0.2957, allocations: 0.8803 MB / 384.9 MB, free: 468 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-05/0.2957, allocations: 20 kB / 384.9 MB, free: 448 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-06/0.2957, allocations: 4 kB / 384.9 MB, free: 444 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.2957, allocations: 3.984 kB / 384.9 MB, free: 440 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.2971, allocations: 1.067 MB / 386 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.2971, allocations: 0 / 386 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002757/0.2974, allocations: 83.25 kB / 386.1 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002051/0.2976, allocations: 47.62 kB / 386.1 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.351e-05/0.2977, allocations: 19.27 kB / 386.1 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002348/0.2979, allocations: 0.5241 MB / 386.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.2979, allocations: 4 kB / 386.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000896/0.2988, allocations: 1.015 MB / 387.7 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.301e-05/0.2988, allocations: 51.47 kB / 387.7 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.668e-05/0.2989, allocations: 15.98 kB / 387.8 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.2991, allocations: 12 kB / 387.8 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.208e-05/0.2991, allocations: 35.92 kB / 387.8 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/0.2992, allocations: 15.98 kB / 387.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.092e-05/0.2992, allocations: 15.39 kB / 387.8 MB, free: 13.5 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2992, allocations: 4 kB / 387.8 MB, free: 13.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002636/0.3018, allocations: 0.9708 MB / 388.8 MB, free: 12.52 MB / 346.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.00395/0.3058, allocations: 1.354 MB / 390.2 MB, free: 11.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006031/0.3064, allocations: 315.8 kB / 390.5 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/0.3064, allocations: 4.438 kB / 390.5 MB, free: 10.97 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003058/0.3067, allocations: 237.2 kB / 390.7 MB, free: 10.76 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005873/0.3073, allocations: 85.88 kB / 390.8 MB, free: 10.68 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001772/0.3091, allocations: 1.021 MB / 391.8 MB, free: 9.641 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001128/0.3092, allocations: 131.8 kB / 391.9 MB, free: 9.488 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002755/0.3095, allocations: 137.6 kB / 392.1 MB, free: 9.359 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002603/0.3097, allocations: 123.3 kB / 392.2 MB, free: 9.238 MB / 346.7 MB Notification: Performance of SimCode: time 1.653e-06/0.3097, allocations: 0 / 392.2 MB, free: 9.238 MB / 346.7 MB Notification: Performance of Templates: time 0.1423/0.452, allocations: 41.44 MB / 433.6 MB, free: 123.8 MB / 378.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.WaterIF97.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.3412646939978]