Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater") translateModel(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 110.3 kB / 17.06 MB, free: 6.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001844/0.001844, allocations: 191 kB / 18 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.337/1.337, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001044/0.001044, allocations: 47.92 kB / 351.3 MB, free: 3.301 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2563, allocations: 49.43 MB / 400.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.005444/0.2617, allocations: 4.475 MB / 405.2 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001897/0.2637, allocations: 1.818 MB / 407 MB, free: 2.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.799e-05/0.2637, allocations: 4 kB / 407 MB, free: 2.586 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002349/0.264, allocations: 39.75 kB / 407 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003236/0.2644, allocations: 127.2 kB / 407.2 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006032/0.265, allocations: 251.4 kB / 407.4 MB, free: 2.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003228/0.2653, allocations: 282.9 kB / 407.7 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.926e-05/0.2654, allocations: 9.125 kB / 407.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002433/0.2656, allocations: 143.5 kB / 407.8 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.2657, allocations: 75.73 kB / 407.9 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.2658, allocations: 8 kB / 407.9 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002275/0.266, allocations: 95.88 kB / 408 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.496e-05/0.2661, allocations: 35.89 kB / 408 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001075/0.2662, allocations: 79.66 kB / 408.1 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003292/0.2665, allocations: 208.6 kB / 408.3 MB, free: 1.266 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2666, allocations: 0 / 408.3 MB, free: 1.266 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2666, allocations: 0 / 408.3 MB, free: 1.266 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.2666, allocations: 0 / 408.3 MB, free: 1.266 MB / 318.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.000975/0.2676, allocations: 0.4914 MB / 408.8 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.2676, allocations: 8.031 kB / 408.8 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001835/0.2678, allocations: 20.75 kB / 408.8 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002437/0.268, allocations: 200.3 kB / 409 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.2681, allocations: 20.59 kB / 409.1 MB, free: 452 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.612e-05/0.2681, allocations: 12.38 kB / 409.1 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003881/0.2685, allocations: 213.7 kB / 409.3 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.2685, allocations: 3.906 kB / 409.3 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.833e-05/0.2686, allocations: 15.94 kB / 409.3 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.2686, allocations: 8 kB / 409.3 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003466/0.2689, allocations: 155.8 kB / 409.5 MB, free: 20 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.2702, allocations: 0.9401 MB / 410.4 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003873/0.2706, allocations: 150.8 kB / 410.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.2707, allocations: 48.83 kB / 410.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005036/0.2713, allocations: 0.5071 MB / 411.1 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.2713, allocations: 34.5 kB / 411.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.885e-06/0.2713, allocations: 4 kB / 411.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.002458/0.2738, allocations: 0.7745 MB / 411.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.2738, allocations: 55.41 kB / 412 MB, free: 13.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.2739, allocations: 155.8 kB / 412.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.274, allocations: 29.7 kB / 412.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.8e-05/0.2741, allocations: 139.8 kB / 412.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.228e-05/0.2741, allocations: 75.05 kB / 412.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.2742, allocations: 61.59 kB / 412.4 MB, free: 12.8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.2743, allocations: 326.8 kB / 412.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002382/0.2746, allocations: 83.94 kB / 412.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003105/0.2749, allocations: 198.4 kB / 413 MB, free: 12.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005362/0.2754, allocations: 299.4 kB / 413.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2755, allocations: 0 / 413.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000665/0.2761, allocations: 324.2 kB / 413.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.2762, allocations: 4 kB / 413.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.2762, allocations: 4 kB / 413.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.439e-05/0.2762, allocations: 4 kB / 413.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003691/0.2766, allocations: 79.89 kB / 413.7 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.2766, allocations: 11.92 kB / 413.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/0.2768, allocations: 20.28 kB / 413.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.227e-05/0.2769, allocations: 15.98 kB / 413.8 MB, free: 11.36 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.277, allocations: 133.7 kB / 413.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.119e-05/0.277, allocations: 15.81 kB / 413.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006363/0.2777, allocations: 242.7 kB / 414.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.2777, allocations: 3.938 kB / 414.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2777, allocations: 0 / 414.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.2777, allocations: 7.938 kB / 414.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.2789, allocations: 0.5989 MB / 414.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.279, allocations: 4 kB / 414.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002914/0.2793, allocations: 47.95 kB / 414.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.2793, allocations: 0 / 414.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.295e-05/0.2793, allocations: 15.92 kB / 414.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.2793, allocations: 16 kB / 414.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2793, allocations: 0 / 414.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007797/0.2801, allocations: 397.9 kB / 415.2 MB, free: 9.785 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.664e-05/0.2802, allocations: 92.94 kB / 415.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.2802, allocations: 7.938 kB / 415.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002365/0.2804, allocations: 19.98 kB / 415.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.132e-05/0.2805, allocations: 19.98 kB / 415.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.2805, allocations: 11.98 kB / 415.4 MB, free: 9.617 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.19e-05/0.2806, allocations: 103.3 kB / 415.5 MB, free: 9.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2806, allocations: 0 / 415.5 MB, free: 9.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003769/0.281, allocations: 60 kB / 415.5 MB, free: 9.457 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002241/0.2812, allocations: 139.1 kB / 415.7 MB, free: 9.312 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005703/0.2818, allocations: 223.2 kB / 415.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.2818, allocations: 4.062 kB / 415.9 MB, free: 9.094 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002247/0.282, allocations: 87.88 kB / 416 MB, free: 9.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003789/0.2824, allocations: 35.97 kB / 416 MB, free: 8.973 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001001/0.2834, allocations: 475.9 kB / 416.5 MB, free: 8.469 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.2837, allocations: 0.7168 MB / 417.2 MB, free: 7.723 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002031/0.2839, allocations: 45.88 kB / 417.2 MB, free: 7.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.616e-05/0.284, allocations: 23.42 kB / 417.3 MB, free: 7.656 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.284, allocations: 4 kB / 417.3 MB, free: 7.652 MB / 334.1 MB Notification: Performance of Templates: time 0.005762/0.2898, allocations: 2.719 MB / 420 MB, free: 4.945 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.sim & ./Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches