Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001517/0.001517, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.521/1.521, allocations: 221.3 MB / 235.5 MB, free: 2.902 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009112/0.0009115, allocations: 90.77 kB / 286.5 MB, free: 164 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.277e-05/2.29e-05, allocations: 4 kB / 343.8 MB, free: 4.293 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1034, allocations: 50.41 MB / 394.2 MB, free: 1.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.316/0.4195, allocations: 79.24 MB / 473.5 MB, free: 8.285 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/0.4198, allocations: 75.78 kB / 473.5 MB, free: 8.215 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0157/0.4355, allocations: 6.082 MB / 479.6 MB, free: 2.109 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4355, allocations: 0 / 479.6 MB, free: 2.109 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.754e-05/0.4356, allocations: 8 kB / 479.6 MB, free: 2.102 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008654/0.4365, allocations: 0.5667 MB / 480.2 MB, free: 1.484 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.4365, allocations: 8.031 kB / 480.2 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.539e-05/0.4366, allocations: 39.53 kB / 480.3 MB, free: 1.438 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004356/0.4371, allocations: 294.3 kB / 480.5 MB, free: 1.105 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.4372, allocations: 54.12 kB / 480.6 MB, free: 1.047 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.872e-05/0.4372, allocations: 24 kB / 480.6 MB, free: 1.023 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004999/0.4377, allocations: 294.2 kB / 480.9 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.4378, allocations: 7.938 kB / 480.9 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.4e-05/0.4378, allocations: 11.95 kB / 480.9 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.4378, allocations: 8 kB / 480.9 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003016/0.4381, allocations: 177.7 kB / 481.1 MB, free: 0.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.4396, allocations: 0.8026 MB / 481.9 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/0.4402, allocations: 268.7 kB / 482.2 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001992/0.4404, allocations: 104.8 kB / 482.3 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.766e-05/0.4405, allocations: 8.5 kB / 482.3 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.909e-05/0.4406, allocations: 42.52 kB / 482.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 3.937e-06/0.4406, allocations: 4 kB / 482.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007489/0.4413, allocations: 278.7 kB / 482.6 MB, free: 14.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002185/0.4415, allocations: 324.4 kB / 482.9 MB, free: 14.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003195/0.4419, allocations: 239.5 kB / 483.1 MB, free: 14.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/0.4419, allocations: 33.7 kB / 483.2 MB, free: 14.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.4421, allocations: 176.4 kB / 483.4 MB, free: 14.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.558e-05/0.4422, allocations: 98.5 kB / 483.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.603e-05/0.4422, allocations: 8 kB / 483.5 MB, free: 13.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.4424, allocations: 342.8 kB / 483.8 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.4425, allocations: 87.92 kB / 483.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002355/0.4428, allocations: 192.3 kB / 484.1 MB, free: 13.31 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002023/0.443, allocations: 135 kB / 484.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.443, allocations: 0 / 484.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006113/0.4436, allocations: 357.9 kB / 484.5 MB, free: 12.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.793e-05/0.4437, allocations: 33.8 kB / 484.6 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.4437, allocations: 11.88 kB / 484.6 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002121/0.4439, allocations: 40.84 kB / 484.6 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009899/0.4449, allocations: 203.9 kB / 484.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003189/0.4481, allocations: 2.942 MB / 487.8 MB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002956/0.4484, allocations: 39.81 kB / 487.8 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.782e-05/0.4485, allocations: 12 kB / 487.8 MB, free: 9.262 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001386/0.4486, allocations: 124.9 kB / 487.9 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.552e-05/0.4487, allocations: 35.58 kB / 488 MB, free: 9.098 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.53e-05/0.4488, allocations: 39.2 kB / 488 MB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.4488, allocations: 7.938 kB / 488 MB, free: 9.047 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.4488, allocations: 3.938 kB / 488 MB, free: 9.043 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006148/0.4494, allocations: 0.6387 MB / 488.7 MB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004381/0.4499, allocations: 393.1 kB / 489.1 MB, free: 7.863 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.4499, allocations: 4.188 kB / 489.1 MB, free: 7.859 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001301/0.4512, allocations: 255.7 kB / 489.3 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.167e-05/0.4513, allocations: 24.84 kB / 489.3 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.672e-05/0.4513, allocations: 4 kB / 489.3 MB, free: 7.578 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002518/0.4539, allocations: 2.778 MB / 492.1 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4539, allocations: 0 / 492.1 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006833/0.4546, allocations: 488.1 kB / 492.6 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.4547, allocations: 136.8 kB / 492.7 MB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.751e-05/0.4548, allocations: 4 kB / 492.7 MB, free: 3.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.455, allocations: 27.95 kB / 492.8 MB, free: 3.855 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.932e-05/0.4551, allocations: 23.97 kB / 492.8 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.4551, allocations: 4 kB / 492.8 MB, free: 3.828 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002396/0.4553, allocations: 199.1 kB / 493 MB, free: 3.629 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4553, allocations: 0 / 493 MB, free: 3.629 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004269/0.4558, allocations: 111.9 kB / 493.1 MB, free: 3.52 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002002/0.456, allocations: 131.1 kB / 493.2 MB, free: 3.383 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.4573, allocations: 0.5329 MB / 493.7 MB, free: 2.824 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.4573, allocations: 0 / 493.7 MB, free: 2.824 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.4586, allocations: 414.3 kB / 494.1 MB, free: 2.406 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004226/0.459, allocations: 82.75 kB / 494.2 MB, free: 2.328 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.4603, allocations: 0.6546 MB / 494.9 MB, free: 1.652 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.4607, allocations: 0.784 MB / 495.7 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001461/0.4608, allocations: 34.95 kB / 495.7 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.349e-05/0.4609, allocations: 27.44 kB / 495.7 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of SimCode: time 2.014e-06/0.4609, allocations: 0 / 495.7 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of Templates: time 0.01014/0.471, allocations: 5.496 MB / 0.4895 GB, free: 11.37 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches