Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009065/0.0009066, allocations: 179.4 kB / 18.04 MB, free: 3.656 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.37/1.37, allocations: 205.4 MB / 224.2 MB, free: 9.012 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.0008427/0.0008427, allocations: 82.36 kB / 272.5 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003536/0.0003538, allocations: 12 kB / 329.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2407/0.2411, allocations: 47.57 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1059/0.3471, allocations: 83.32 MB / 460.3 MB, free: 13.22 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/0.3474, allocations: 79.95 kB / 460.4 MB, free: 13.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02361/0.3711, allocations: 8.305 MB / 468.7 MB, free: 4.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.936e-06/0.3711, allocations: 3.938 kB / 468.7 MB, free: 4.797 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.573e-05/0.3711, allocations: 12 kB / 468.7 MB, free: 4.785 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.001126/0.3723, allocations: 0.6463 MB / 469.4 MB, free: 4.086 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.3723, allocations: 12.03 kB / 469.4 MB, free: 4.074 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001284/0.3725, allocations: 44.47 kB / 469.4 MB, free: 4.031 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000578/0.3731, allocations: 350.6 kB / 469.8 MB, free: 3.648 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.284e-05/0.3731, allocations: 20.8 kB / 469.8 MB, free: 3.629 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/0.3732, allocations: 20.31 kB / 469.8 MB, free: 3.609 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004891/0.3737, allocations: 290.3 kB / 470.1 MB, free: 3.285 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.3737, allocations: 192 / 470.1 MB, free: 3.285 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.3737, allocations: 15.94 kB / 470.1 MB, free: 3.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.3737, allocations: 7.984 kB / 470.1 MB, free: 3.262 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003229/0.3741, allocations: 157.7 kB / 470.3 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/0.3756, allocations: 0.7937 MB / 471.1 MB, free: 2.258 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004188/0.376, allocations: 191.1 kB / 471.3 MB, free: 2.062 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.3762, allocations: 83.28 kB / 471.3 MB, free: 1.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.914e-05/0.3763, allocations: 11.98 kB / 471.4 MB, free: 1.969 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.3766, allocations: 139.2 kB / 471.5 MB, free: 1.82 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 4.067e-06/0.3766, allocations: 4 kB / 471.5 MB, free: 1.816 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0011/0.3777, allocations: 411.5 kB / 471.9 MB, free: 1.387 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002985/0.378, allocations: 316.4 kB / 472.2 MB, free: 1.004 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005395/0.3785, allocations: 433.6 kB / 472.6 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.368e-05/0.3786, allocations: 33.7 kB / 472.7 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.3787, allocations: 196.2 kB / 472.9 MB, free: 344 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.418e-05/0.3788, allocations: 86.75 kB / 472.9 MB, free: 256 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.092e-05/0.3788, allocations: 4 kB / 472.9 MB, free: 252 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.379, allocations: 354.7 kB / 473.3 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000148/0.3792, allocations: 71.89 kB / 473.4 MB, free: 15.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002332/0.3794, allocations: 180.1 kB / 473.5 MB, free: 15.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003203/0.3798, allocations: 184.8 kB / 473.7 MB, free: 15.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.3798, allocations: 0 / 473.7 MB, free: 15.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004803/0.3803, allocations: 280.3 kB / 474 MB, free: 15.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.3803, allocations: 8 kB / 474 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.3803, allocations: 0 / 474 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001515/0.3805, allocations: 36.84 kB / 474 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000233/0.3807, allocations: 56 kB / 474.1 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001489/0.3822, allocations: 1.452 MB / 475.5 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/0.3824, allocations: 27.88 kB / 475.6 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.795e-05/0.3824, allocations: 8 kB / 475.6 MB, free: 13.4 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.0002173/0.3827, allocations: 165.8 kB / 475.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.05e-05/0.3827, allocations: 43.53 kB / 475.8 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005428/0.3833, allocations: 279.9 kB / 476.1 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.3833, allocations: 7.938 kB / 476.1 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.3833, allocations: 0 / 476.1 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005849/0.3839, allocations: 0.5947 MB / 476.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.385, allocations: 0.7508 MB / 477.4 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.3851, allocations: 3.938 kB / 477.4 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002161/0.3853, allocations: 48.06 kB / 477.5 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.3853, allocations: 3.938 kB / 477.5 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.3853, allocations: 8 kB / 477.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.3853, allocations: 3.938 kB / 477.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3853, allocations: 4 kB / 477.5 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006161/0.386, allocations: 422.9 kB / 477.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000183/0.3862, allocations: 156.5 kB / 478 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.277e-05/0.3862, allocations: 8 kB / 478 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.3864, allocations: 12 kB / 478.1 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.974e-05/0.3865, allocations: 16.2 kB / 478.1 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.176e-05/0.3865, allocations: 12.06 kB / 478.1 MB, free: 10.67 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003501/0.3869, allocations: 307.1 kB / 478.4 MB, free: 10.37 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3869, allocations: 0 / 478.4 MB, free: 10.37 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004489/0.3873, allocations: 119.7 kB / 478.5 MB, free: 10.25 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.00101/0.3883, allocations: 434.9 kB / 478.9 MB, free: 9.844 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006749/0.389, allocations: 327.2 kB / 479.2 MB, free: 9.512 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.389, allocations: 0 / 479.2 MB, free: 9.512 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001939/0.3892, allocations: 99.72 kB / 479.3 MB, free: 9.414 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006617/0.3899, allocations: 100.9 kB / 479.4 MB, free: 9.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.3915, allocations: 0.9332 MB / 480.4 MB, free: 8.363 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004325/0.3919, allocations: 0.7999 MB / 481.2 MB, free: 7.539 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001856/0.3921, allocations: 50.94 kB / 481.2 MB, free: 7.484 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.616e-05/0.3922, allocations: 35.44 kB / 481.3 MB, free: 7.449 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3922, allocations: 3.938 kB / 481.3 MB, free: 7.445 MB / 362.7 MB Notification: Performance of Templates: time 0.01265/0.4049, allocations: 5.868 MB / 487.1 MB, free: 1.57 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches