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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 83.89 kB / 21.19 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9486/0.9486, allocations: 173.3 MB / 201.1 MB, free: 9.344 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.664e-06/1.664e-06, allocations: 0 / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.117e-05/2.283e-05, allocations: 6.312 kB / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002954/0.002977, allocations: 2.765 MB / 270.7 MB, free: 3.68 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.004099, allocations: 0.8216 MB / 271.6 MB, free: 2.852 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.004237, allocations: 0 / 271.6 MB, free: 2.852 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002324/0.004469, allocations: 83.34 kB / 271.6 MB, free: 2.77 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002232/0.004693, allocations: 138.8 kB / 271.8 MB, free: 2.633 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001908/0.004883, allocations: 91.8 kB / 271.9 MB, free: 2.543 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004242/0.005308, allocations: 465.2 kB / 272.3 MB, free: 2.09 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.005448, allocations: 67.95 kB / 272.4 MB, free: 2.02 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002162/0.005664, allocations: 239.5 kB / 272.6 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001546/0.005819, allocations: 131.6 kB / 272.7 MB, free: 1.656 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.264e-05/0.005861, allocations: 36 kB / 272.8 MB, free: 1.621 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.098e-05/0.005902, allocations: 36 kB / 272.8 MB, free: 1.586 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.876e-05/0.005951, allocations: 79.73 kB / 272.9 MB, free: 1.508 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001027/0.006054, allocations: 139.7 kB / 273 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000281/0.006335, allocations: 295 kB / 273.3 MB, free: 1.082 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.006338, allocations: 0 / 273.3 MB, free: 1.082 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.006339, allocations: 0 / 273.3 MB, free: 1.082 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.006345, allocations: 4 kB / 273.3 MB, free: 1.078 MB / 250.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.0007394/0.007084, allocations: 0.7117 MB / 274 MB, free: 332 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.007136, allocations: 8.031 kB / 274 MB, free: 324 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.606e-05/0.007232, allocations: 60.7 kB / 274.1 MB, free: 264 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002895/0.007522, allocations: 256.5 kB / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.194e-05/0.007614, allocations: 98.17 kB / 274.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.752e-05/0.007651, allocations: 28.38 kB / 274.5 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004282/0.008079, allocations: 0.651 MB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.008092, allocations: 192 / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.704e-05/0.008119, allocations: 16.12 kB / 275.1 MB, free: 15.03 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.008128, allocations: 4 kB / 275.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.008291, allocations: 106.9 kB / 275.3 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008335/0.009124, allocations: 0.6732 MB / 275.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002645/0.009389, allocations: 178.3 kB / 276.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.611e-05/0.009475, allocations: 71.69 kB / 276.2 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.0095, allocations: 7.984 kB / 276.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.009526, allocations: 45.33 kB / 276.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.663e-06/0.009528, allocations: 0 / 276.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005455/0.01007, allocations: 309.1 kB / 276.5 MB, free: 13.58 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.186e-05/0.01017, allocations: 312.4 kB / 276.8 MB, free: 13.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.01037, allocations: 338.2 kB / 277.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.0104, allocations: 33.7 kB / 277.2 MB, free: 12.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.831e-05/0.0105, allocations: 215.6 kB / 277.4 MB, free: 12.6 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003126/0.01082, allocations: 111 kB / 277.5 MB, free: 12.49 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.657e-05/0.01089, allocations: 71.36 kB / 277.6 MB, free: 12.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.01101, allocations: 0.5157 MB / 278.1 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.01112, allocations: 77.67 kB / 278.2 MB, free: 11.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.01133, allocations: 478.1 kB / 278.6 MB, free: 11.21 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000199/0.01153, allocations: 198 kB / 278.8 MB, free: 10.99 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.01153, allocations: 0 / 278.8 MB, free: 10.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003347/0.01187, allocations: 330.2 kB / 279.2 MB, free: 10.65 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.01189, allocations: 33.8 kB / 279.2 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.0119, allocations: 4 kB / 279.2 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001213/0.01202, allocations: 39.59 kB / 279.2 MB, free: 10.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004197/0.01244, allocations: 127.8 kB / 279.4 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001901/0.01434, allocations: 3.741 MB / 283.1 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001357/0.01448, allocations: 31.78 kB / 283.1 MB, free: 6.422 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.928e-05/0.0145, allocations: 15.98 kB / 283.1 MB, free: 6.406 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.0001089/0.0146, allocations: 176.5 kB / 283.3 MB, free: 6.223 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.755e-05/0.01465, allocations: 43.81 kB / 283.4 MB, free: 6.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.249e-05/0.01469, allocations: 39.02 kB / 283.4 MB, free: 6.137 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.0147, allocations: 8 kB / 283.4 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/0.0147, allocations: 192 / 283.4 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003434/0.01504, allocations: 0.5787 MB / 284 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/0.01527, allocations: 268.4 kB / 284.2 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.01527, allocations: 0 / 284.2 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000786/0.01606, allocations: 187.8 kB / 284.4 MB, free: 4.961 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.923e-05/0.01611, allocations: 15.73 kB / 284.4 MB, free: 4.941 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.01613, allocations: 11.97 kB / 284.5 MB, free: 4.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001536/0.01766, allocations: 3.627 MB / 288.1 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.01766, allocations: 3.938 kB / 288.1 MB, free: 1.051 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004122/0.01808, allocations: 440.8 kB / 288.5 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.515e-05/0.01816, allocations: 71.73 kB / 288.6 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.01819, allocations: 4 kB / 288.6 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.01831, allocations: 15.98 kB / 288.6 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.57e-05/0.01838, allocations: 27.89 kB / 288.6 MB, free: 492 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.01839, allocations: 12 kB / 288.6 MB, free: 480 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001208/0.01851, allocations: 223 kB / 288.9 MB, free: 260 kB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01851, allocations: 0 / 288.9 MB, free: 260 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002781/0.01879, allocations: 107.9 kB / 289 MB, free: 152 kB / 266.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 0.000107/0.0189, allocations: 111.2 kB / 289.1 MB, free: 32 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007617/0.01966, allocations: 0.5102 MB / 289.6 MB, free: 15.48 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.01966, allocations: 4 kB / 289.6 MB, free: 15.48 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000584/0.02025, allocations: 405.1 kB / 290 MB, free: 15.06 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003307/0.02058, allocations: 92.56 kB / 290.1 MB, free: 14.97 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001363/0.02194, allocations: 0.7638 MB / 290.8 MB, free: 14.18 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.929e-05/0.022, allocations: 93.3 kB / 290.9 MB, free: 14.07 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.519e-05/0.0221, allocations: 34.97 kB / 291 MB, free: 14.03 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.85e-05/0.02215, allocations: 32.48 kB / 291 MB, free: 14 MB / 282.7 MB Notification: Performance of SimCode: time 1.393e-06/0.02216, allocations: 0 / 291 MB, free: 14 MB / 282.7 MB Notification: Performance of Templates: time 0.008911/0.03107, allocations: 7.085 MB / 298.1 MB, free: 7.086 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] 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","",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.0040893158875406]