Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 176.4 kB / 17.4 MB, free: 4.422 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.259/1.259, allocations: 223.3 MB / 241.4 MB, free: 9.977 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.0007983/0.0007981, allocations: 98.58 kB / 292.6 MB, free: 10.59 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003039/0.0003042, allocations: 11.94 kB / 352.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2016/0.2019, allocations: 50.41 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0898/0.2918, allocations: 83.04 MB / 485.8 MB, free: 13.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/0.292, allocations: 75.97 kB / 485.9 MB, free: 13.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02122/0.3132, allocations: 8.374 MB / 494.2 MB, free: 4.809 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3133, allocations: 0 / 494.2 MB, free: 4.809 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.3133, allocations: 4 kB / 494.2 MB, free: 4.805 MB / 362.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.0008417/0.3142, allocations: 0.6503 MB / 494.9 MB, free: 4.102 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.3142, allocations: 8.031 kB / 494.9 MB, free: 4.094 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.547e-05/0.3143, allocations: 44.47 kB / 494.9 MB, free: 4.051 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004653/0.3148, allocations: 350.6 kB / 495.3 MB, free: 3.668 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.928e-05/0.3148, allocations: 20.75 kB / 495.3 MB, free: 3.648 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.665e-05/0.3149, allocations: 16.38 kB / 495.3 MB, free: 3.633 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004396/0.3153, allocations: 294.1 kB / 495.6 MB, free: 3.305 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/0.3153, allocations: 192 / 495.6 MB, free: 3.305 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.836e-05/0.3154, allocations: 15.94 kB / 495.6 MB, free: 3.289 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.3154, allocations: 8 kB / 495.6 MB, free: 3.281 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000284/0.3157, allocations: 149.7 kB / 495.8 MB, free: 3.137 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00126/0.3169, allocations: 0.8053 MB / 496.6 MB, free: 2.273 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003776/0.3173, allocations: 190.1 kB / 496.8 MB, free: 2.082 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.3175, allocations: 89.44 kB / 496.8 MB, free: 1.992 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.3175, allocations: 0 / 496.8 MB, free: 1.992 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002399/0.3178, allocations: 145 kB / 497 MB, free: 1.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 2.825e-06/0.3178, allocations: 3.984 kB / 497 MB, free: 1.836 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007798/0.3186, allocations: 418.5 kB / 497.4 MB, free: 1.402 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001341/0.3187, allocations: 320.4 kB / 497.7 MB, free: 1.016 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00045/0.3192, allocations: 425.7 kB / 498.1 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.752e-05/0.3192, allocations: 29.7 kB / 498.2 MB, free: 0.5586 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.3193, allocations: 208.2 kB / 498.4 MB, free: 356 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.904e-05/0.3194, allocations: 78.75 kB / 498.4 MB, free: 276 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.184e-05/0.3194, allocations: 8 kB / 498.4 MB, free: 268 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.3196, allocations: 350.7 kB / 498.8 MB, free: 15.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.3197, allocations: 63.97 kB / 498.9 MB, free: 15.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002139/0.3199, allocations: 180.7 kB / 499 MB, free: 15.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002935/0.3202, allocations: 187.3 kB / 499.2 MB, free: 15.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.3203, allocations: 0 / 499.2 MB, free: 15.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004459/0.3207, allocations: 280.3 kB / 499.5 MB, free: 15.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.3207, allocations: 4 kB / 499.5 MB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.3207, allocations: 0 / 499.5 MB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001141/0.3209, allocations: 36.83 kB / 499.5 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.3211, allocations: 56.02 kB / 499.6 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001284/0.3224, allocations: 1.452 MB / 0.4893 GB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/0.3225, allocations: 23.84 kB / 0.4893 GB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.3226, allocations: 12 kB / 0.4893 GB, free: 13.43 MB / 378.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.0001751/0.3228, allocations: 166.4 kB / 0.4895 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.337e-05/0.3228, allocations: 43.47 kB / 0.4895 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004944/0.3233, allocations: 274.4 kB / 0.4898 GB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.3233, allocations: 7.938 kB / 0.4898 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.3233, allocations: 4 kB / 0.4898 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005027/0.3239, allocations: 0.596 MB / 0.4904 GB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009603/0.3248, allocations: 0.7514 MB / 0.4911 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3248, allocations: 3.938 kB / 0.4911 GB, free: 11.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002152/0.3251, allocations: 47.91 kB / 0.4912 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.3251, allocations: 4 kB / 0.4912 GB, free: 11.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.3251, allocations: 7.984 kB / 0.4912 GB, free: 11.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.3251, allocations: 8 kB / 0.4912 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3251, allocations: 0 / 0.4912 GB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005709/0.3257, allocations: 418.9 kB / 0.4916 GB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.3259, allocations: 152.5 kB / 0.4917 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.627e-05/0.3259, allocations: 8 kB / 0.4917 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.3261, allocations: 15.98 kB / 0.4918 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.848e-05/0.3262, allocations: 19.98 kB / 0.4918 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.3262, allocations: 8 kB / 0.4918 GB, free: 10.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003222/0.3265, allocations: 311.1 kB / 0.4921 GB, free: 10.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3265, allocations: 0 / 0.4921 GB, free: 10.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003868/0.3269, allocations: 111.8 kB / 0.4922 GB, free: 10.29 MB / 378.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.0008576/0.3278, allocations: 448.6 kB / 0.4926 GB, free: 10.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005324/0.3283, allocations: 310.6 kB / 0.4929 GB, free: 9.691 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.3283, allocations: 4 kB / 0.4929 GB, free: 9.688 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001629/0.3285, allocations: 91.84 kB / 0.493 GB, free: 9.598 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005474/0.3291, allocations: 101.6 kB / 0.4931 GB, free: 9.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.3303, allocations: 0.9409 MB / 0.494 GB, free: 8.531 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.3306, allocations: 0.7959 MB / 0.4948 GB, free: 7.711 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001629/0.3308, allocations: 46.95 kB / 0.4948 GB, free: 7.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.659e-05/0.3309, allocations: 35.42 kB / 0.4949 GB, free: 7.625 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3309, allocations: 0 / 0.4949 GB, free: 7.625 MB / 378.7 MB Notification: Performance of Templates: time 0.009926/0.3408, allocations: 5.878 MB / 0.5006 GB, free: 1.844 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches