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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001622/0.001622, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.308/1.308, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009678/0.0009678, allocations: 110.5 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000763/0.000763, allocations: 39.94 kB / 350 MB, free: 72 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2076, allocations: 49.44 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.004101/0.2117, allocations: 4.492 MB / 404 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.213, allocations: 1.826 MB / 405.8 MB, free: 27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.085e-05/0.2131, allocations: 0 / 405.8 MB, free: 27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002244/0.2133, allocations: 31.75 kB / 405.8 MB, free: 26.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002409/0.2136, allocations: 119.4 kB / 405.9 MB, free: 26.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004977/0.2141, allocations: 224.4 kB / 406.1 MB, free: 26.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002551/0.2144, allocations: 366.8 kB / 406.5 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.936e-05/0.2144, allocations: 13.12 kB / 406.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001791/0.2146, allocations: 127.6 kB / 406.6 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.897e-05/0.2147, allocations: 83.62 kB / 406.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.378e-05/0.2147, allocations: 7.984 kB / 406.7 MB, free: 26.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001924/0.2149, allocations: 103.9 kB / 406.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.843e-05/0.215, allocations: 27.91 kB / 406.9 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.046e-05/0.2151, allocations: 79.64 kB / 406.9 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002657/0.2153, allocations: 213 kB / 407.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2153, allocations: 0 / 407.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.2153, allocations: 0 / 407.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.067e-06/0.2154, allocations: 0 / 407.1 MB, free: 25.64 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.0007341/0.2161, allocations: 483.4 kB / 407.6 MB, free: 25.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.2161, allocations: 12.03 kB / 407.6 MB, free: 25.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00016/0.2163, allocations: 28.69 kB / 407.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.2165, allocations: 204.1 kB / 407.9 MB, free: 24.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.2165, allocations: 12.66 kB / 407.9 MB, free: 24.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.933e-05/0.2165, allocations: 12.38 kB / 407.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003187/0.2168, allocations: 225.5 kB / 408.1 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.2169, allocations: 0 / 408.1 MB, free: 24.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.315e-05/0.2169, allocations: 15.98 kB / 408.1 MB, free: 24.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.2169, allocations: 0 / 408.1 MB, free: 24.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002968/0.2172, allocations: 151.8 kB / 408.3 MB, free: 24.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009621/0.2182, allocations: 0.944 MB / 409.2 MB, free: 23.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003304/0.2185, allocations: 154.7 kB / 409.4 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.2187, allocations: 57.53 kB / 409.4 MB, free: 23.17 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003674/0.219, allocations: 0.5109 MB / 409.9 MB, free: 22.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.305e-05/0.2191, allocations: 34.56 kB / 410 MB, free: 22.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.192e-06/0.2191, allocations: 0 / 410 MB, free: 22.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.002174/0.2212, allocations: 0.7583 MB / 410.7 MB, free: 21.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.055e-05/0.2213, allocations: 51.41 kB / 410.8 MB, free: 21.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.902e-05/0.2214, allocations: 158.4 kB / 410.9 MB, free: 21.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.2214, allocations: 29.7 kB / 411 MB, free: 21.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.422e-05/0.2214, allocations: 147.8 kB / 411.1 MB, free: 21.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.652e-05/0.2215, allocations: 67.02 kB / 411.2 MB, free: 21.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.451e-05/0.2216, allocations: 61.69 kB / 411.2 MB, free: 21.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.145e-05/0.2216, allocations: 330.7 kB / 411.5 MB, free: 20.87 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002164/0.2218, allocations: 83.94 kB / 411.6 MB, free: 20.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002405/0.2221, allocations: 190.9 kB / 411.8 MB, free: 20.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004536/0.2225, allocations: 295.7 kB / 412.1 MB, free: 20.22 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2226, allocations: 0 / 412.1 MB, free: 20.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005836/0.2231, allocations: 320.9 kB / 412.4 MB, free: 19.9 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.2232, allocations: 8 kB / 412.4 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2232, allocations: 4 kB / 412.4 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.2232, allocations: 4 kB / 412.4 MB, free: 19.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003221/0.2235, allocations: 84.36 kB / 412.5 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.2235, allocations: 15.92 kB / 412.5 MB, free: 19.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002064/0.2238, allocations: 19.92 kB / 412.6 MB, free: 19.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.2238, allocations: 16 kB / 412.6 MB, free: 19.75 MB / 298.7 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 7.495e-05/0.2239, allocations: 137.7 kB / 412.7 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.269e-05/0.2239, allocations: 15.81 kB / 412.7 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005602/0.2245, allocations: 237.6 kB / 412.9 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.2245, allocations: 4 kB / 413 MB, free: 19.35 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.2245, allocations: 4 kB / 413 MB, free: 19.35 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.2245, allocations: 0 / 413 MB, free: 19.35 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.2255, allocations: 0.6079 MB / 413.6 MB, free: 18.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2256, allocations: 128 / 413.6 MB, free: 18.67 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.2258, allocations: 51.97 kB / 413.6 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.2258, allocations: 0 / 413.6 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.2258, allocations: 11.98 kB / 413.6 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.634e-06/0.2259, allocations: 3.938 kB / 413.6 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2259, allocations: 7.938 kB / 413.6 MB, free: 18.6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001395/0.2273, allocations: 1.321 MB / 415 MB, free: 17.13 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.969e-05/0.2273, allocations: 92.89 kB / 415 MB, free: 17.02 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.2273, allocations: 8 kB / 415.1 MB, free: 17.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.2276, allocations: 20.11 kB / 415.1 MB, free: 16.99 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.051e-05/0.2276, allocations: 11.97 kB / 415.1 MB, free: 16.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.135e-05/0.2276, allocations: 15.98 kB / 415.1 MB, free: 16.96 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.716e-05/0.2277, allocations: 114.4 kB / 415.2 MB, free: 16.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2277, allocations: 4 kB / 415.2 MB, free: 16.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004134/0.2281, allocations: 75.88 kB / 415.3 MB, free: 16.78 MB / 298.7 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.0002408/0.2284, allocations: 135.1 kB / 415.4 MB, free: 16.63 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005083/0.2289, allocations: 216.2 kB / 415.6 MB, free: 16.42 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.2289, allocations: 0 / 415.6 MB, free: 16.42 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002133/0.2291, allocations: 99.05 kB / 415.7 MB, free: 16.33 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003537/0.2295, allocations: 32.61 kB / 415.8 MB, free: 16.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009022/0.2304, allocations: 0.6795 MB / 416.4 MB, free: 15.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001279/0.2305, allocations: 0.7284 MB / 417.2 MB, free: 14.81 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002507/0.2308, allocations: 41.89 kB / 417.2 MB, free: 14.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.72e-05/0.2309, allocations: 27.42 kB / 417.2 MB, free: 14.74 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2309, allocations: 0 / 417.2 MB, free: 14.74 MB / 298.7 MB Notification: Performance of Templates: time 0.004543/0.2354, allocations: 2.652 MB / 419.9 MB, free: 12.11 MB / 298.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.SimpleLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches