Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater") translateModel(Modelica.Media.Examples.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009104/0.0009102, allocations: 177.2 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.293/1.293, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008356/0.000836, allocations: 88.92 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003637/0.0003641, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2514, allocations: 47.57 MB / 374.5 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.004884/0.2564, allocations: 3.973 MB / 378.5 MB, free: 42.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.2582, allocations: 1.677 MB / 380.2 MB, free: 40.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.2584, allocations: 1.125 kB / 380.2 MB, free: 40.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002298/0.2586, allocations: 27.97 kB / 380.2 MB, free: 40.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003533/0.259, allocations: 115.9 kB / 380.3 MB, free: 40.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006391/0.2596, allocations: 212.8 kB / 380.5 MB, free: 40.6 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004067/0.2601, allocations: 316 kB / 380.9 MB, free: 40.42 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.94e-05/0.2601, allocations: 20.62 kB / 380.9 MB, free: 40.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003207/0.2605, allocations: 127.1 kB / 381 MB, free: 40.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002109/0.2607, allocations: 76.84 kB / 381.1 MB, free: 40.3 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.347e-05/0.2607, allocations: 4.75 kB / 381.1 MB, free: 40.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003312/0.2611, allocations: 75.64 kB / 381.1 MB, free: 40.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.873e-05/0.2612, allocations: 37.78 kB / 381.2 MB, free: 40.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.832e-05/0.2612, allocations: 51.48 kB / 381.2 MB, free: 40.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002911/0.2615, allocations: 147.1 kB / 381.4 MB, free: 40.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.2616, allocations: 0 / 381.4 MB, free: 40.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2616, allocations: 0 / 381.4 MB, free: 40.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.647e-06/0.2616, allocations: 5.156 kB / 381.4 MB, free: 40.12 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.001056/0.2626, allocations: 453.7 kB / 381.8 MB, free: 39.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.2627, allocations: 12.25 kB / 381.8 MB, free: 39.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000225/0.2629, allocations: 28.55 kB / 381.9 MB, free: 39.67 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.2632, allocations: 205.4 kB / 382.1 MB, free: 39.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/0.2632, allocations: 13.81 kB / 382.1 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.224e-05/0.2632, allocations: 17.34 kB / 382.1 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004378/0.2637, allocations: 213.2 kB / 382.3 MB, free: 39.26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.2637, allocations: 1.219 kB / 382.3 MB, free: 39.26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.969e-05/0.2637, allocations: 6.438 kB / 382.3 MB, free: 39.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.637e-06/0.2638, allocations: 7.969 kB / 382.3 MB, free: 39.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003747/0.2641, allocations: 153.9 kB / 382.5 MB, free: 39.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.2654, allocations: 0.9397 MB / 383.4 MB, free: 38.27 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003832/0.2658, allocations: 151.1 kB / 383.6 MB, free: 38.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.2659, allocations: 50.05 kB / 383.6 MB, free: 38.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004783/0.2664, allocations: 0.5106 MB / 384.1 MB, free: 37.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.2665, allocations: 39.77 kB / 384.2 MB, free: 37.58 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.2665, allocations: 4 kB / 384.2 MB, free: 37.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.002501/0.269, allocations: 0.7609 MB / 384.9 MB, free: 37.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/0.269, allocations: 53.47 kB / 385 MB, free: 36.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.2691, allocations: 159.8 kB / 385.1 MB, free: 36.85 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.2692, allocations: 31.27 kB / 385.2 MB, free: 36.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.346e-05/0.2692, allocations: 135.7 kB / 385.3 MB, free: 36.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.518e-05/0.2693, allocations: 72.16 kB / 385.4 MB, free: 36.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.535e-05/0.2693, allocations: 5 kB / 385.4 MB, free: 36.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.926e-05/0.2694, allocations: 326 kB / 385.7 MB, free: 36.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002469/0.2696, allocations: 82.81 kB / 385.8 MB, free: 36.26 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.2699, allocations: 200.1 kB / 386 MB, free: 36.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002839/0.2702, allocations: 109.1 kB / 386.1 MB, free: 36.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.2702, allocations: 1.031 kB / 386.1 MB, free: 36.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007271/0.271, allocations: 316.7 kB / 386.4 MB, free: 35.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.271, allocations: 9.953 kB / 386.4 MB, free: 35.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.271, allocations: 3.656 kB / 386.4 MB, free: 35.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.271, allocations: 6 kB / 386.4 MB, free: 35.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003709/0.2714, allocations: 84.5 kB / 386.5 MB, free: 35.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.2714, allocations: 6.75 kB / 386.5 MB, free: 35.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002514/0.2717, allocations: 25.05 kB / 386.5 MB, free: 35.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.818e-05/0.2717, allocations: 11.91 kB / 386.5 MB, free: 35.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001159/0.2719, allocations: 130.2 kB / 386.7 MB, free: 35.67 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.613e-05/0.2719, allocations: 19.3 kB / 386.7 MB, free: 35.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006737/0.2726, allocations: 243.5 kB / 386.9 MB, free: 35.51 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.2726, allocations: 2.406 kB / 386.9 MB, free: 35.51 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.2726, allocations: 0 / 386.9 MB, free: 35.51 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.2726, allocations: 8.906 kB / 386.9 MB, free: 35.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001285/0.2739, allocations: 0.5972 MB / 387.5 MB, free: 34.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.274, allocations: 1.094 kB / 387.5 MB, free: 34.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003101/0.2743, allocations: 52.92 kB / 387.6 MB, free: 34.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.046e-06/0.2743, allocations: 6.562 kB / 387.6 MB, free: 34.96 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.53e-05/0.2743, allocations: 7.25 kB / 387.6 MB, free: 34.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.2744, allocations: 2.062 kB / 387.6 MB, free: 34.96 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2744, allocations: 1.125 kB / 387.6 MB, free: 34.96 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008592/0.2752, allocations: 414.8 kB / 388 MB, free: 34.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.654e-05/0.2753, allocations: 85.08 kB / 388.1 MB, free: 34.56 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.605e-05/0.2753, allocations: 4.062 kB / 388.1 MB, free: 34.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.2756, allocations: 22.77 kB / 388.1 MB, free: 34.55 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.225e-05/0.2756, allocations: 14.08 kB / 388.1 MB, free: 34.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.648e-05/0.2757, allocations: 15.14 kB / 388.1 MB, free: 34.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.118e-05/0.2757, allocations: 111.5 kB / 388.2 MB, free: 34.44 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2757, allocations: 1.562 kB / 388.2 MB, free: 34.44 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003817/0.2761, allocations: 66.09 kB / 388.3 MB, free: 34.42 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001841/0.2763, allocations: 122.4 kB / 388.4 MB, free: 34.32 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005779/0.2769, allocations: 216.7 kB / 388.6 MB, free: 34.19 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.2769, allocations: 0 / 388.6 MB, free: 34.19 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.2771, allocations: 95.81 kB / 388.7 MB, free: 34.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004445/0.2776, allocations: 42.66 kB / 388.8 MB, free: 34.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009853/0.2786, allocations: 0.5839 MB / 389.4 MB, free: 33.43 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001404/0.2787, allocations: 0.7167 MB / 390.1 MB, free: 32.69 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.2788, allocations: 31.42 kB / 390.1 MB, free: 32.66 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2788, allocations: 0 / 390.1 MB, free: 32.66 MB / 298.7 MB Notification: Performance of Templates: time 0.003931/0.2828, allocations: 2.591 MB / 392.7 MB, free: 30.06 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.SimpleLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches