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.001001/0.001001, allocations: 80.31 kB / 22.21 MB, free: 2.289 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.0009986/0.0009986, allocations: 172.9 kB / 25.61 MB, free: 8.449 MB / 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.8805/0.8805, allocations: 177.1 MB / 206 MB, free: 4.445 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.262e-06/1.262e-06, allocations: 0 / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.964e-05/2.09e-05, allocations: 6.969 kB / 274.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002797/0.002818, allocations: 2.751 MB / 276.9 MB, free: 1.676 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.003847, allocations: 0.8271 MB / 277.7 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.00396, allocations: 7.938 kB / 277.7 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002037/0.004164, allocations: 75.41 kB / 277.8 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002004/0.004364, allocations: 147.4 kB / 278 MB, free: 0.625 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001521/0.004517, allocations: 91.73 kB / 278.1 MB, free: 0.5352 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003391/0.004856, allocations: 454.2 kB / 278.5 MB, free: 92 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.004975, allocations: 63.92 kB / 278.6 MB, free: 28 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002052/0.00518, allocations: 247.5 kB / 278.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001508/0.005331, allocations: 131.7 kB / 278.9 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.993e-05/0.00537, allocations: 36 kB / 279 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.888e-05/0.005409, allocations: 39.94 kB / 279 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.332e-05/0.005463, allocations: 83.66 kB / 279.1 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.492e-05/0.005558, allocations: 131.8 kB / 279.2 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002505/0.005808, allocations: 299 kB / 279.5 MB, free: 15.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.00581, allocations: 0 / 279.5 MB, free: 15.08 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.005811, allocations: 0 / 279.5 MB, free: 15.08 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.005815, allocations: 0 / 279.5 MB, free: 15.08 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.0007694/0.006584, allocations: 0.7195 MB / 280.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.848e-05/0.006613, allocations: 15.97 kB / 280.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.832e-05/0.006691, allocations: 60.7 kB / 280.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002477/0.006939, allocations: 240.5 kB / 280.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.523e-05/0.007014, allocations: 98.17 kB / 280.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.469e-05/0.007049, allocations: 28.38 kB / 280.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004573/0.007506, allocations: 0.6428 MB / 281.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.007515, allocations: 192 / 281.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.026e-05/0.007536, allocations: 20.05 kB / 281.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.007541, allocations: 4 kB / 281.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001178/0.007658, allocations: 91.34 kB / 281.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007227/0.008381, allocations: 0.6386 MB / 282.1 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001989/0.00858, allocations: 157.8 kB / 282.2 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.538e-05/0.008645, allocations: 59.66 kB / 282.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.008671, allocations: 12 kB / 282.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/0.008693, allocations: 45.38 kB / 282.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.213e-06/0.008694, allocations: 0 / 282.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0004291/0.009124, allocations: 281.8 kB / 282.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001737/0.009297, allocations: 312.4 kB / 282.9 MB, free: 11.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/0.009462, allocations: 326.2 kB / 283.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.009484, allocations: 33.7 kB / 283.3 MB, free: 10.95 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.069e-05/0.009575, allocations: 219.5 kB / 283.5 MB, free: 10.73 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.097e-05/0.009636, allocations: 107 kB / 283.6 MB, free: 10.62 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.183e-05/0.009708, allocations: 75.33 kB / 283.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.009818, allocations: 0.5157 MB / 284.2 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.173e-05/0.00988, allocations: 65.66 kB / 284.2 MB, free: 9.945 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.01006, allocations: 470.9 kB / 284.7 MB, free: 9.355 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001393/0.0102, allocations: 174 kB / 284.9 MB, free: 9.164 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.0102, allocations: 0 / 284.9 MB, free: 9.164 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002626/0.01047, allocations: 291.7 kB / 285.1 MB, free: 8.859 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.01049, allocations: 41.64 kB / 285.2 MB, free: 8.812 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.01049, allocations: 0 / 285.2 MB, free: 8.812 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.359e-05/0.01058, allocations: 31.61 kB / 285.2 MB, free: 8.777 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004004/0.01098, allocations: 136 kB / 285.3 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001992/0.01297, allocations: 3.691 MB / 289 MB, free: 4.727 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000195/0.01317, allocations: 31.94 kB / 289.1 MB, free: 4.695 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.01318, allocations: 11.98 kB / 289.1 MB, free: 4.684 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.0001029/0.01329, allocations: 176.5 kB / 289.3 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.023e-05/0.01334, allocations: 43.81 kB / 289.3 MB, free: 4.457 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.182e-05/0.01338, allocations: 39.08 kB / 289.3 MB, free: 4.418 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.01338, allocations: 4 kB / 289.3 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.01338, allocations: 7.875 kB / 289.3 MB, free: 4.406 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002891/0.01367, allocations: 0.563 MB / 289.9 MB, free: 3.734 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.01388, allocations: 229 kB / 290.1 MB, free: 3.484 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.01388, allocations: 4 kB / 290.1 MB, free: 3.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005343/0.01441, allocations: 175.8 kB / 290.3 MB, free: 3.309 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.306e-05/0.01446, allocations: 19.67 kB / 290.3 MB, free: 3.285 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.01447, allocations: 8 kB / 290.3 MB, free: 3.277 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001684/0.01615, allocations: 3.594 MB / 293.9 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.01615, allocations: 0 / 293.9 MB, free: 15.45 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003182/0.01647, allocations: 416.7 kB / 294.3 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.661e-05/0.01656, allocations: 67.66 kB / 294.4 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.649e-05/0.01658, allocations: 4 kB / 294.4 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.01671, allocations: 20.08 kB / 294.4 MB, free: 14.93 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.068e-05/0.01676, allocations: 27.89 kB / 294.5 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.01677, allocations: 8 kB / 294.5 MB, free: 14.9 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.25e-05/0.01687, allocations: 214.9 kB / 294.7 MB, free: 14.69 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01687, allocations: 0 / 294.7 MB, free: 14.69 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002567/0.01712, allocations: 104 kB / 294.8 MB, free: 14.59 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.189e-05/0.01722, allocations: 99.25 kB / 294.9 MB, free: 14.48 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006316/0.01785, allocations: 0.4991 MB / 295.4 MB, free: 13.94 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.01785, allocations: 0 / 295.4 MB, free: 13.94 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005518/0.0184, allocations: 393.4 kB / 295.7 MB, free: 13.54 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.01871, allocations: 96.5 kB / 295.8 MB, free: 13.44 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.01998, allocations: 0.7559 MB / 296.6 MB, free: 12.66 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.409e-05/0.02006, allocations: 97.3 kB / 296.7 MB, free: 12.54 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001164/0.02017, allocations: 38.95 kB / 296.7 MB, free: 12.5 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002472/0.02042, allocations: 218.1 kB / 296.9 MB, free: 12.28 MB / 282.7 MB Notification: Performance of SimCode: time 6.11e-07/0.02042, allocations: 0 / 296.9 MB, free: 12.28 MB / 282.7 MB Notification: Performance of Templates: time 0.008393/0.02881, allocations: 7.343 MB / 304.3 MB, free: 5.133 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: 2.8857372938655317]