Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009193/0.0009193, allocations: 75.59 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009242/0.0009242, allocations: 161.4 kB / 24.56 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9209/0.9209, allocations: 177.2 MB / 205 MB, free: 5.289 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 272.9 MB, free: 1.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.844e-05/2.005e-05, allocations: 2.312 kB / 273 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.006225/0.006245, allocations: 2.803 MB / 275.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004147/0.01039, allocations: 0.845 MB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.01052, allocations: 7.938 kB / 276.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002406/0.01076, allocations: 75.41 kB / 276.7 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002418/0.011, allocations: 138.9 kB / 276.8 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001825/0.01118, allocations: 91.75 kB / 276.9 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004188/0.0116, allocations: 450.1 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.01175, allocations: 64.02 kB / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002214/0.01197, allocations: 243.5 kB / 277.6 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.01216, allocations: 131.7 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.693e-05/0.01222, allocations: 39.94 kB / 277.8 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.336e-05/0.01227, allocations: 32 kB / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.247e-05/0.01235, allocations: 87.67 kB / 277.9 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.01248, allocations: 135.7 kB / 278.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003193/0.0128, allocations: 299 kB / 278.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.0128, allocations: 0 / 278.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.0128, allocations: 0 / 278.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.01281, allocations: 0 / 278.4 MB, free: 11.98 MB / 266.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.003924/0.01673, allocations: 0.7156 MB / 279.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.01677, allocations: 12.03 kB / 279.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.01689, allocations: 60.7 kB / 279.1 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003653/0.01725, allocations: 240.5 kB / 279.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001136/0.01737, allocations: 102.2 kB / 279.5 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.84e-05/0.01743, allocations: 28.38 kB / 279.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005748/0.018, allocations: 0.6432 MB / 280.1 MB, free: 9.965 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.01802, allocations: 192 / 280.1 MB, free: 9.965 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.01805, allocations: 20.12 kB / 280.2 MB, free: 9.945 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.01806, allocations: 4 kB / 280.2 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000275/0.01833, allocations: 118.8 kB / 280.3 MB, free: 9.828 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001867/0.0202, allocations: 0.6771 MB / 281 MB, free: 9.113 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003955/0.02059, allocations: 175.5 kB / 281.1 MB, free: 8.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.02073, allocations: 67.66 kB / 281.2 MB, free: 8.859 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.648e-05/0.02077, allocations: 12 kB / 281.2 MB, free: 8.848 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.0208, allocations: 45.33 kB / 281.3 MB, free: 8.793 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 3.196e-06/0.0208, allocations: 3.984 kB / 281.3 MB, free: 8.789 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009615/0.02177, allocations: 313.8 kB / 281.6 MB, free: 8.473 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/0.02188, allocations: 312.4 kB / 281.9 MB, free: 8.094 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003099/0.02219, allocations: 330.3 kB / 282.2 MB, free: 7.754 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.94e-05/0.02222, allocations: 33.7 kB / 282.2 MB, free: 7.715 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.02236, allocations: 223.5 kB / 282.4 MB, free: 7.492 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.158e-05/0.02244, allocations: 103.1 kB / 282.5 MB, free: 7.391 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.02256, allocations: 79.3 kB / 282.6 MB, free: 7.305 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.02272, allocations: 0.5118 MB / 283.1 MB, free: 6.781 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.02287, allocations: 73.67 kB / 283.2 MB, free: 6.703 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003267/0.02319, allocations: 478.3 kB / 283.7 MB, free: 6.105 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003099/0.0235, allocations: 202 kB / 283.9 MB, free: 5.887 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.02351, allocations: 0 / 283.9 MB, free: 5.887 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005036/0.02401, allocations: 318.3 kB / 284.2 MB, free: 5.555 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.633e-05/0.02405, allocations: 40.19 kB / 284.2 MB, free: 5.512 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.02405, allocations: 3.938 kB / 284.2 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001493/0.0242, allocations: 31.67 kB / 284.3 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006912/0.02489, allocations: 131.9 kB / 284.4 MB, free: 5.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002797/0.02769, allocations: 3.741 MB / 288.1 MB, free: 1.363 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002256/0.02791, allocations: 31.83 kB / 288.2 MB, free: 1.332 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/0.02794, allocations: 12 kB / 288.2 MB, free: 1.32 MB / 266.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 () * Number of clocked 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of prepare postOptimizeDAE: time 0.000295/0.02824, allocations: 176.6 kB / 288.3 MB, free: 1.137 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.207e-05/0.02832, allocations: 43.81 kB / 288.4 MB, free: 1.094 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.39e-05/0.02838, allocations: 43.02 kB / 288.4 MB, free: 1.051 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.02839, allocations: 7.938 kB / 288.4 MB, free: 1.043 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.02839, allocations: 0 / 288.4 MB, free: 1.043 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005093/0.0289, allocations: 0.5826 MB / 289 MB, free: 360 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003636/0.02926, allocations: 272.4 kB / 289.3 MB, free: 52 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.02927, allocations: 0 / 289.3 MB, free: 52 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009673/0.03023, allocations: 179.8 kB / 289.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.506e-05/0.03031, allocations: 27.7 kB / 289.5 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/0.03033, allocations: 4 kB / 289.5 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00264/0.03297, allocations: 3.628 MB / 293.1 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.03297, allocations: 3.938 kB / 293.1 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004056/0.03338, allocations: 451.6 kB / 293.6 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.214e-05/0.03346, allocations: 59.66 kB / 293.6 MB, free: 11.44 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.697e-05/0.03349, allocations: 11.98 kB / 293.6 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001347/0.03362, allocations: 12 kB / 293.6 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.81e-05/0.03368, allocations: 31.83 kB / 293.7 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.0337, allocations: 15.98 kB / 293.7 MB, free: 11.37 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001252/0.03382, allocations: 223 kB / 293.9 MB, free: 11.15 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03382, allocations: 0 / 293.9 MB, free: 11.15 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002494/0.03407, allocations: 104 kB / 294 MB, free: 11.05 MB / 282.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 () * Number of clocked 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 9.142e-05/0.03416, allocations: 103.2 kB / 294.1 MB, free: 10.94 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007626/0.03492, allocations: 0.5147 MB / 294.6 MB, free: 10.38 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.03493, allocations: 4 kB / 294.6 MB, free: 10.38 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005776/0.0355, allocations: 393.3 kB / 295 MB, free: 9.973 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003208/0.03583, allocations: 92.62 kB / 295.1 MB, free: 9.883 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/0.03709, allocations: 0.7635 MB / 295.9 MB, free: 9.094 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.358e-05/0.03714, allocations: 97.3 kB / 296 MB, free: 8.977 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.081e-05/0.03722, allocations: 38.95 kB / 296 MB, free: 8.934 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.368e-05/0.03728, allocations: 32.44 kB / 296 MB, free: 8.902 MB / 282.7 MB Notification: Performance of SimCode: time 4.71e-07/0.03728, allocations: 0 / 296 MB, free: 8.902 MB / 282.7 MB Notification: Performance of Templates: time 0.007656/0.04493, allocations: 6.725 MB / 302.8 MB, free: 2.352 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.098948867060244]