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.001416/0.001416, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 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.00151/0.00151, allocations: 215.6 kB / 24.48 MB, free: 3.84 MB / 14.72 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 1.454/1.454, allocations: 230.6 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001638/0.001638, allocations: 43.94 kB / 379 MB, free: 2.508 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2344, allocations: 53.36 MB / 432.3 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004015/0.2384, allocations: 2.567 MB / 434.9 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.2399, allocations: 0.8139 MB / 435.7 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.2401, allocations: 0 / 435.7 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002991/0.2404, allocations: 71.42 kB / 435.8 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003272/0.2407, allocations: 146.9 kB / 435.9 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002427/0.241, allocations: 83.88 kB / 436 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005478/0.2415, allocations: 446.3 kB / 436.4 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.2417, allocations: 59.61 kB / 436.5 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.2419, allocations: 171.4 kB / 436.7 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.2421, allocations: 155.2 kB / 436.8 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.326e-05/0.2422, allocations: 36 kB / 436.8 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.456e-05/0.2422, allocations: 36 kB / 436.9 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.933e-05/0.2423, allocations: 75.75 kB / 436.9 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001902/0.2425, allocations: 159.3 kB / 437.1 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005138/0.243, allocations: 445.3 kB / 437.5 MB, free: 1.516 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.243, allocations: 0 / 437.5 MB, free: 1.516 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.887e-06/0.243, allocations: 3.984 kB / 437.5 MB, free: 1.512 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.2431, allocations: 0 / 437.5 MB, free: 1.512 MB / 334.1 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.001121/0.2442, allocations: 0.6079 MB / 438.1 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.2442, allocations: 12.03 kB / 438.2 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.09e-05/0.2443, allocations: 44.64 kB / 438.2 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004705/0.2448, allocations: 250.4 kB / 438.4 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001431/0.2449, allocations: 106.1 kB / 438.6 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.996e-05/0.245, allocations: 20.38 kB / 438.6 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007349/0.2457, allocations: 0.6694 MB / 439.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.2457, allocations: 3.938 kB / 439.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.178e-05/0.2458, allocations: 12 kB / 439.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.2458, allocations: 7.938 kB / 439.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004251/0.2462, allocations: 197.6 kB / 439.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.2475, allocations: 0.6581 MB / 440.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005645/0.2481, allocations: 255.7 kB / 440.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000217/0.2483, allocations: 104.8 kB / 440.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.368e-05/0.2483, allocations: 4 kB / 440.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.2484, allocations: 42.56 kB / 440.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.733e-06/0.2484, allocations: 0 / 440.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001092/0.2495, allocations: 418.2 kB / 440.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000191/0.2497, allocations: 316.4 kB / 441.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003203/0.25, allocations: 284.2 kB / 441.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.25, allocations: 37.7 kB / 441.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.2502, allocations: 168.8 kB / 441.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.2503, allocations: 111 kB / 441.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.2504, allocations: 65.7 kB / 441.9 MB, free: 12.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.2506, allocations: 342.8 kB / 442.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/0.2508, allocations: 117.7 kB / 442.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004923/0.2513, allocations: 495.9 kB / 442.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000473/0.2518, allocations: 267.5 kB / 443.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2518, allocations: 0 / 443.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007191/0.2525, allocations: 399.4 kB / 443.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.268e-05/0.2525, allocations: 36.66 kB / 443.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.2525, allocations: 0 / 443.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001851/0.2527, allocations: 40.83 kB / 443.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000979/0.2537, allocations: 159.9 kB / 443.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00391/0.2576, allocations: 2.972 MB / 446.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003421/0.2579, allocations: 31.88 kB / 446.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.824e-05/0.258, allocations: 12 kB / 446.7 MB, free: 7.602 MB / 350.1 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.0002256/0.2582, allocations: 157.8 kB / 446.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.2583, allocations: 43.73 kB / 446.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.24e-05/0.2584, allocations: 31.09 kB / 446.9 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.2584, allocations: 11.92 kB / 447 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.2584, allocations: 0 / 447 MB, free: 7.352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007649/0.2592, allocations: 0.6501 MB / 447.6 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000408/0.2596, allocations: 265.1 kB / 447.9 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.2596, allocations: 3.984 kB / 447.9 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001295/0.2609, allocations: 207.7 kB / 448.1 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.762e-05/0.261, allocations: 32.97 kB / 448.1 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/0.261, allocations: 8 kB / 448.1 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003558/0.2646, allocations: 2.781 MB / 450.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2646, allocations: 96 / 450.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.2656, allocations: 0.5171 MB / 451.4 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001785/0.2657, allocations: 63.75 kB / 451.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.073e-05/0.2658, allocations: 11.94 kB / 451.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002584/0.2661, allocations: 16.22 kB / 451.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.907e-05/0.2661, allocations: 23.95 kB / 451.5 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.242e-05/0.2662, allocations: 12 kB / 451.5 MB, free: 2.406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000247/0.2664, allocations: 199.1 kB / 451.7 MB, free: 2.215 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2664, allocations: 4 kB / 451.7 MB, free: 2.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004711/0.2669, allocations: 103.9 kB / 451.8 MB, free: 2.109 MB / 350.1 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.000151/0.267, allocations: 116.8 kB / 451.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.2686, allocations: 0.5503 MB / 452.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.2686, allocations: 0 / 452.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001361/0.27, allocations: 390.3 kB / 452.9 MB, free: 1.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005378/0.2705, allocations: 80.61 kB / 453 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.2724, allocations: 0.8882 MB / 453.8 MB, free: 8 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002006/0.2726, allocations: 173.6 kB / 454 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.062e-05/0.2727, allocations: 31.42 kB / 454 MB, free: 15.79 MB / 366.1 MB Notification: Performance of SimCode: time 1.102e-06/0.2727, allocations: 0 / 454 MB, free: 15.79 MB / 366.1 MB Notification: Performance of Templates: time 0.01073/0.2834, allocations: 7.001 MB / 461 MB, free: 8.824 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.056464551948011]