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.0009314/0.0009314, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0009031/0.0009031, allocations: 148.6 kB / 24.9 MB, free: 8.734 MB / 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.9516/0.9516, allocations: 173.3 MB / 201.5 MB, free: 9.156 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.332e-06/1.332e-06, allocations: 0 / 268.4 MB, free: 6.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.236e-05/1.37e-05, allocations: 2.312 kB / 268.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002455/0.002469, allocations: 2.752 MB / 271.2 MB, free: 3.441 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.003481, allocations: 0.8408 MB / 272 MB, free: 2.594 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.808e-05/0.003579, allocations: 7.938 kB / 272 MB, free: 2.586 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001905/0.00377, allocations: 67.41 kB / 272.1 MB, free: 2.52 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001998/0.00397, allocations: 146.9 kB / 272.2 MB, free: 2.375 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001525/0.004122, allocations: 87.8 kB / 272.3 MB, free: 2.289 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004628/0.004585, allocations: 457.6 kB / 272.8 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.004699, allocations: 66.58 kB / 272.8 MB, free: 1.773 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001867/0.004886, allocations: 251.4 kB / 273.1 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001475/0.005033, allocations: 127.7 kB / 273.2 MB, free: 1.402 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.869e-05/0.005072, allocations: 36 kB / 273.3 MB, free: 1.367 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.644e-05/0.005108, allocations: 36 kB / 273.3 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.308e-05/0.005161, allocations: 87.66 kB / 273.4 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.273e-05/0.005254, allocations: 131.8 kB / 273.5 MB, free: 1.117 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002364/0.005491, allocations: 298.9 kB / 273.8 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.005492, allocations: 0 / 273.8 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.005493, allocations: 0 / 273.8 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.005496, allocations: 0 / 273.8 MB, free: 0.8242 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.0005897/0.006086, allocations: 0.5909 MB / 274.4 MB, free: 208 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.655e-05/0.006113, allocations: 8.031 kB / 274.4 MB, free: 200 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.596e-05/0.006169, allocations: 44.89 kB / 274.4 MB, free: 156 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002084/0.006377, allocations: 209.8 kB / 274.6 MB, free: 15.92 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.743e-05/0.006444, allocations: 102.2 kB / 274.7 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/0.006479, allocations: 24.38 kB / 274.8 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003159/0.006795, allocations: 0.6128 MB / 275.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.006804, allocations: 192 / 275.4 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.837e-05/0.006822, allocations: 20.12 kB / 275.4 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.006828, allocations: 4 kB / 275.4 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.407e-05/0.006922, allocations: 71.39 kB / 275.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006144/0.007536, allocations: 478 kB / 275.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.007703, allocations: 137.5 kB / 276.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.217e-05/0.007755, allocations: 56.77 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.007778, allocations: 8 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.949e-05/0.007797, allocations: 38.56 kB / 276.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 9.01e-07/0.007798, allocations: 0 / 276.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0003521/0.00815, allocations: 222.4 kB / 276.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.324e-05/0.008233, allocations: 312.4 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.008368, allocations: 266.9 kB / 277 MB, free: 13.33 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.008389, allocations: 33.7 kB / 277 MB, free: 13.29 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.712e-05/0.008446, allocations: 141.4 kB / 277.1 MB, free: 13.15 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.798e-05/0.008494, allocations: 111 kB / 277.2 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.461e-05/0.008558, allocations: 69.66 kB / 277.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.305e-05/0.008632, allocations: 338.8 kB / 277.6 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.231e-05/0.008684, allocations: 57.69 kB / 277.7 MB, free: 12.56 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001612/0.008845, allocations: 430.7 kB / 278.1 MB, free: 12.03 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.008967, allocations: 154.6 kB / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.008969, allocations: 0 / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0001969/0.009166, allocations: 251.6 kB / 278.5 MB, free: 11.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.009186, allocations: 37.64 kB / 278.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.00919, allocations: 0 / 278.5 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.522e-05/0.009265, allocations: 28.83 kB / 278.6 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000343/0.009608, allocations: 139.9 kB / 278.7 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.01101, allocations: 2.53 MB / 281.2 MB, free: 8.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.01112, allocations: 27.88 kB / 281.3 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.01113, allocations: 11.94 kB / 281.3 MB, free: 8.641 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 8.661e-05/0.01122, allocations: 137.8 kB / 281.4 MB, free: 8.496 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.52e-05/0.01125, allocations: 31.97 kB / 281.4 MB, free: 8.465 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.623e-05/0.01129, allocations: 39.27 kB / 281.5 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.01129, allocations: 0 / 281.5 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-06/0.01129, allocations: 8 kB / 281.5 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002309/0.01152, allocations: 0.5251 MB / 282 MB, free: 7.781 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001779/0.0117, allocations: 197.5 kB / 282.2 MB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.0117, allocations: 0 / 282.2 MB, free: 7.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004535/0.01216, allocations: 187.8 kB / 282.4 MB, free: 7.387 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-05/0.01219, allocations: 12.86 kB / 282.4 MB, free: 7.371 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.01221, allocations: 11.98 kB / 282.4 MB, free: 7.359 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.01326, allocations: 2.44 MB / 284.9 MB, free: 4.746 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.01326, allocations: 7.984 kB / 284.9 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002362/0.0135, allocations: 317.4 kB / 285.2 MB, free: 4.41 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.199e-05/0.01356, allocations: 39.73 kB / 285.2 MB, free: 4.371 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.452e-05/0.01359, allocations: 15.94 kB / 285.2 MB, free: 4.355 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.01369, allocations: 15.98 kB / 285.2 MB, free: 4.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.263e-05/0.01374, allocations: 23.89 kB / 285.3 MB, free: 4.316 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.096e-06/0.01375, allocations: 4 kB / 285.3 MB, free: 4.312 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.199e-05/0.01381, allocations: 96.67 kB / 285.4 MB, free: 4.215 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01381, allocations: 0 / 285.4 MB, free: 4.215 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002221/0.01403, allocations: 104 kB / 285.5 MB, free: 4.113 MB / 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 7.864e-05/0.01411, allocations: 88.36 kB / 285.6 MB, free: 4.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005131/0.01462, allocations: 440.3 kB / 286 MB, free: 3.555 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.01463, allocations: 4 kB / 286 MB, free: 3.551 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004506/0.01508, allocations: 319.2 kB / 286.3 MB, free: 3.223 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002401/0.01532, allocations: 100.8 kB / 286.4 MB, free: 3.125 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.01645, allocations: 0.6801 MB / 287.1 MB, free: 2.414 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.028e-05/0.0165, allocations: 93.31 kB / 287.2 MB, free: 2.305 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.948e-05/0.01659, allocations: 38.95 kB / 287.2 MB, free: 2.262 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000218/0.01681, allocations: 177.2 kB / 287.4 MB, free: 2.09 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01681, allocations: 0 / 287.4 MB, free: 2.09 MB / 266.7 MB Notification: Performance of Templates: time 0.007987/0.0248, allocations: 7.22 MB / 294.6 MB, free: 11.05 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: 2.955234198831022]