Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009516/0.0009516, allocations: 182 kB / 17.41 MB, free: 4.406 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.435/1.435, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.0007673/0.0007673, allocations: 101 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000303/0.000303, allocations: 15.98 kB / 328.2 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2098, allocations: 47.56 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09143/0.3012, allocations: 83.32 MB / 459 MB, free: 13.3 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/0.3016, allocations: 83.95 kB / 459.1 MB, free: 13.22 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02204/0.3236, allocations: 8.309 MB / 467.4 MB, free: 4.875 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3237, allocations: 3.938 kB / 467.4 MB, free: 4.871 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.492e-05/0.3237, allocations: 12 kB / 467.4 MB, free: 4.859 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0009219/0.3246, allocations: 0.6462 MB / 468.1 MB, free: 4.16 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3247, allocations: 12.03 kB / 468.1 MB, free: 4.148 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.817e-05/0.3248, allocations: 48.41 kB / 468.1 MB, free: 4.102 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004838/0.3253, allocations: 346.6 kB / 468.5 MB, free: 3.723 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.3253, allocations: 12.81 kB / 468.5 MB, free: 3.711 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.982e-05/0.3254, allocations: 20.38 kB / 468.5 MB, free: 3.691 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004338/0.3258, allocations: 294.3 kB / 468.8 MB, free: 3.363 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.3258, allocations: 4.188 kB / 468.8 MB, free: 3.359 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.3259, allocations: 15.94 kB / 468.8 MB, free: 3.344 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.3259, allocations: 8 kB / 468.8 MB, free: 3.336 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002887/0.3262, allocations: 153.7 kB / 469 MB, free: 3.188 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0013/0.3275, allocations: 0.7859 MB / 469.8 MB, free: 2.344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003797/0.3279, allocations: 199.1 kB / 470 MB, free: 2.141 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.328, allocations: 87.25 kB / 470 MB, free: 2.055 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.086e-05/0.3281, allocations: 4 kB / 470 MB, free: 2.051 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002634/0.3284, allocations: 147.1 kB / 470.2 MB, free: 1.895 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.254e-06/0.3284, allocations: 0 / 470.2 MB, free: 1.895 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008328/0.3292, allocations: 415.5 kB / 470.6 MB, free: 1.461 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.3294, allocations: 312.4 kB / 470.9 MB, free: 1.082 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004707/0.3298, allocations: 425.7 kB / 471.3 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.898e-05/0.3299, allocations: 33.7 kB / 471.4 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.33, allocations: 208.2 kB / 471.6 MB, free: 424 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.409e-05/0.3301, allocations: 82.75 kB / 471.6 MB, free: 340 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.227e-05/0.3301, allocations: 8 kB / 471.6 MB, free: 332 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.3303, allocations: 354.7 kB / 472 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.3304, allocations: 75.84 kB / 472.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002219/0.3307, allocations: 180.2 kB / 472.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.331, allocations: 176.8 kB / 472.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.331, allocations: 0 / 472.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004577/0.3314, allocations: 284.3 kB / 472.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.3315, allocations: 4 kB / 472.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.3315, allocations: 7.984 kB / 472.7 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001273/0.3316, allocations: 32.78 kB / 472.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002133/0.3318, allocations: 51.97 kB / 472.8 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001369/0.3332, allocations: 1.448 MB / 474.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.3334, allocations: 19.84 kB / 474.3 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.287e-05/0.3334, allocations: 20.02 kB / 474.3 MB, free: 13.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002204/0.3337, allocations: 169.8 kB / 474.4 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.45e-05/0.3337, allocations: 39.53 kB / 474.5 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005242/0.3343, allocations: 279.9 kB / 474.7 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.3343, allocations: 4.031 kB / 474.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.3343, allocations: 3.938 kB / 474.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005261/0.3348, allocations: 0.5988 MB / 475.4 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.3358, allocations: 0.7547 MB / 476.1 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.3358, allocations: 3.938 kB / 476.1 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002198/0.3361, allocations: 55.91 kB / 476.2 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3361, allocations: 0 / 476.2 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.817e-05/0.3361, allocations: 4 kB / 476.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3362, allocations: 4 kB / 476.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3362, allocations: 0 / 476.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005975/0.3368, allocations: 426.9 kB / 476.6 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001692/0.3369, allocations: 152.5 kB / 476.7 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.878e-05/0.337, allocations: 8 kB / 476.7 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.3372, allocations: 11.98 kB / 476.8 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.888e-05/0.3372, allocations: 15.98 kB / 476.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.966e-05/0.3373, allocations: 7.984 kB / 476.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003311/0.3376, allocations: 311.1 kB / 477.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3376, allocations: 0 / 477.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004294/0.338, allocations: 119.8 kB / 477.2 MB, free: 10.33 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009323/0.339, allocations: 434.4 kB / 477.6 MB, free: 9.926 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005941/0.3396, allocations: 315.2 kB / 477.9 MB, free: 9.605 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.3396, allocations: 4 kB / 477.9 MB, free: 9.602 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001791/0.3398, allocations: 104 kB / 478 MB, free: 9.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005946/0.3404, allocations: 91.88 kB / 478.1 MB, free: 9.414 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.3418, allocations: 0.9699 MB / 479.1 MB, free: 8.414 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.3422, allocations: 0.7999 MB / 479.9 MB, free: 7.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.243e-05/0.3423, allocations: 35.44 kB / 479.9 MB, free: 7.559 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.3423, allocations: 0 / 479.9 MB, free: 7.559 MB / 362.7 MB Notification: Performance of Templates: time 0.008534/0.3508, allocations: 5.891 MB / 485.8 MB, free: 1.66 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches