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.001023/0.001023, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.001136/0.001136, allocations: 150.1 kB / 24.81 MB, free: 9.285 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.9354/0.9354, allocations: 173.3 MB / 201.4 MB, free: 9.191 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.503e-06/1.503e-06, allocations: 0 / 268.4 MB, free: 6.199 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.618e-05/1.768e-05, allocations: 6.25 kB / 268.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003949/0.003967, allocations: 2.737 MB / 271.1 MB, free: 3.441 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.005421, allocations: 0.8215 MB / 271.9 MB, free: 2.613 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00017/0.005591, allocations: 3.938 kB / 271.9 MB, free: 2.609 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002805/0.005871, allocations: 67.44 kB / 272 MB, free: 2.543 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003223/0.006193, allocations: 146.8 kB / 272.2 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002319/0.006425, allocations: 91.8 kB / 272.2 MB, free: 2.309 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005206/0.006946, allocations: 460.8 kB / 272.7 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.007115, allocations: 63.95 kB / 272.8 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002926/0.007408, allocations: 243.5 kB / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.007636, allocations: 139.6 kB / 273.1 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.135e-05/0.007697, allocations: 36 kB / 273.2 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.559e-05/0.007763, allocations: 36 kB / 273.2 MB, free: 1.348 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.669e-05/0.007829, allocations: 71.75 kB / 273.3 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.00798, allocations: 143.7 kB / 273.4 MB, free: 1.137 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003594/0.008339, allocations: 295 kB / 273.7 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.008341, allocations: 0 / 273.7 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.008342, allocations: 0 / 273.7 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.008347, allocations: 0 / 273.7 MB, free: 0.8477 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.0009458/0.009293, allocations: 0.7233 MB / 274.4 MB, free: 84 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.009331, allocations: 8.031 kB / 274.4 MB, free: 76 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.501e-05/0.009426, allocations: 60.7 kB / 274.5 MB, free: 16 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003166/0.009743, allocations: 240.5 kB / 274.7 MB, free: 15.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.42e-05/0.009837, allocations: 98.17 kB / 274.8 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.149e-05/0.009889, allocations: 40.34 kB / 274.9 MB, free: 15.6 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005012/0.01039, allocations: 0.6276 MB / 275.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.0104, allocations: 192 / 275.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.826e-05/0.01043, allocations: 16.12 kB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.118e-06/0.01044, allocations: 4 kB / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.01062, allocations: 87.41 kB / 275.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.01175, allocations: 0.6386 MB / 276.2 MB, free: 14.06 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003117/0.01206, allocations: 162 kB / 276.4 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.01216, allocations: 55.78 kB / 276.4 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.943e-05/0.0122, allocations: 16 kB / 276.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.01224, allocations: 41.39 kB / 276.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.923e-06/0.01224, allocations: 0 / 276.5 MB, free: 13.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.000917/0.01315, allocations: 277.1 kB / 276.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001153/0.01327, allocations: 312.4 kB / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/0.01354, allocations: 330.1 kB / 277.4 MB, free: 12.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/0.01357, allocations: 33.7 kB / 277.4 MB, free: 12.73 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.0137, allocations: 219.6 kB / 277.6 MB, free: 12.51 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.188e-05/0.01379, allocations: 107 kB / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.01389, allocations: 79.31 kB / 277.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.01401, allocations: 0.5117 MB / 278.3 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.041e-05/0.01408, allocations: 69.66 kB / 278.4 MB, free: 11.72 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.01427, allocations: 470.2 kB / 278.9 MB, free: 11.13 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.01442, allocations: 166 kB / 279 MB, free: 10.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.01442, allocations: 3.938 kB / 279 MB, free: 10.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002665/0.01468, allocations: 306.2 kB / 279.3 MB, free: 10.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.01471, allocations: 33.64 kB / 279.4 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.01471, allocations: 4.094 kB / 279.4 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.57e-05/0.0148, allocations: 35.66 kB / 279.4 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003997/0.0152, allocations: 135.8 kB / 279.5 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/0.0169, allocations: 3.691 MB / 283.2 MB, free: 6.492 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/0.01703, allocations: 39.77 kB / 283.3 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.301e-05/0.01704, allocations: 4 kB / 283.3 MB, free: 6.449 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 9.97e-05/0.01714, allocations: 180.5 kB / 283.4 MB, free: 6.262 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.433e-05/0.01719, allocations: 39.81 kB / 283.5 MB, free: 6.223 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.889e-05/0.01723, allocations: 39.08 kB / 283.5 MB, free: 6.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.01723, allocations: 4 kB / 283.5 MB, free: 6.176 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-06/0.01723, allocations: 4 kB / 283.5 MB, free: 6.172 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005197/0.01775, allocations: 0.5629 MB / 284.1 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002082/0.01796, allocations: 225 kB / 284.3 MB, free: 5.254 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.01796, allocations: 0 / 284.3 MB, free: 5.254 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005109/0.01847, allocations: 183.8 kB / 284.5 MB, free: 5.074 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.257e-05/0.01851, allocations: 23.61 kB / 284.5 MB, free: 5.047 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.01853, allocations: 7.984 kB / 284.5 MB, free: 5.039 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001421/0.01995, allocations: 3.586 MB / 288.1 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.01995, allocations: 0 / 288.1 MB, free: 1.223 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003145/0.02026, allocations: 412.5 kB / 288.5 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.866e-05/0.02034, allocations: 67.73 kB / 288.6 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.403e-05/0.02037, allocations: 12 kB / 288.6 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.02049, allocations: 15.98 kB / 288.6 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.122e-05/0.02054, allocations: 23.95 kB / 288.6 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.098e-05/0.02055, allocations: 8 kB / 288.6 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.695e-05/0.02065, allocations: 210.9 kB / 288.8 MB, free: 480 kB / 266.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.02065, allocations: 0 / 288.8 MB, free: 480 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002714/0.02092, allocations: 107.9 kB / 289 MB, free: 372 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 9.338e-05/0.02102, allocations: 115.2 kB / 289.1 MB, free: 248 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006137/0.02163, allocations: 0.4942 MB / 289.6 MB, free: 15.71 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.02163, allocations: 192 / 289.6 MB, free: 15.71 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005427/0.02217, allocations: 389.2 kB / 289.9 MB, free: 15.3 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003127/0.02249, allocations: 92.52 kB / 290 MB, free: 15.21 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001189/0.02368, allocations: 0.7521 MB / 290.8 MB, free: 14.43 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.02399, allocations: 89.31 kB / 290.9 MB, free: 14.33 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000102/0.02409, allocations: 38.95 kB / 290.9 MB, free: 14.29 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002546/0.02434, allocations: 218.1 kB / 291.1 MB, free: 14.07 MB / 282.7 MB Notification: Performance of SimCode: time 6.91e-07/0.02434, allocations: 0 / 291.1 MB, free: 14.07 MB / 282.7 MB Notification: Performance of Templates: time 0.008508/0.03285, allocations: 7.223 MB / 298.3 MB, free: 7.039 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.7471915180794895]