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.001531/0.001531, allocations: 75.91 kB / 21.18 MB, free: 3.395 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.001102/0.001102, allocations: 145.5 kB / 24.54 MB, free: 36 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.9884/0.9884, allocations: 173.4 MB / 201.1 MB, free: 9.355 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.423e-06/1.423e-06, allocations: 0 / 268 MB, free: 6.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.931e-05/3.073e-05, allocations: 2.312 kB / 268 MB, free: 6.477 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.006656/0.006687, allocations: 2.78 MB / 270.8 MB, free: 3.684 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00434/0.01103, allocations: 0.8138 MB / 271.6 MB, free: 2.863 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000196/0.01122, allocations: 4 kB / 271.6 MB, free: 2.859 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002667/0.01149, allocations: 79.3 kB / 271.6 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002904/0.01178, allocations: 138.9 kB / 271.8 MB, free: 2.645 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002285/0.01201, allocations: 87.86 kB / 271.9 MB, free: 2.559 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004877/0.0125, allocations: 454.1 kB / 272.3 MB, free: 2.113 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.01265, allocations: 71.95 kB / 272.4 MB, free: 2.039 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002771/0.01293, allocations: 243.5 kB / 272.6 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.01309, allocations: 135.7 kB / 272.8 MB, free: 1.668 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.367e-05/0.01313, allocations: 36 kB / 272.8 MB, free: 1.633 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.165e-05/0.01317, allocations: 32 kB / 272.8 MB, free: 1.602 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.26e-05/0.01322, allocations: 79.69 kB / 272.9 MB, free: 1.523 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.01334, allocations: 139.7 kB / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002956/0.01363, allocations: 302.9 kB / 273.3 MB, free: 1.09 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.01363, allocations: 0 / 273.3 MB, free: 1.09 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.01364, allocations: 0 / 273.3 MB, free: 1.09 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.01364, allocations: 0 / 273.3 MB, free: 1.09 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.0007412/0.01438, allocations: 0.7117 MB / 274 MB, free: 344 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.01442, allocations: 12.03 kB / 274.1 MB, free: 332 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.489e-05/0.0145, allocations: 60.7 kB / 274.1 MB, free: 272 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002883/0.01479, allocations: 240.5 kB / 274.3 MB, free: 4 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.0149, allocations: 102.2 kB / 274.4 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.147e-05/0.01494, allocations: 32.38 kB / 274.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004498/0.01539, allocations: 0.6471 MB / 275.1 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.0154, allocations: 192 / 275.1 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.01543, allocations: 20.11 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.01544, allocations: 8 kB / 275.2 MB, free: 15.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001718/0.01561, allocations: 110.9 kB / 275.3 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009327/0.01654, allocations: 0.677 MB / 275.9 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/0.01682, allocations: 171.5 kB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.858e-05/0.01691, allocations: 67.66 kB / 276.2 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.01694, allocations: 15.94 kB / 276.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.913e-05/0.01697, allocations: 45.33 kB / 276.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.192e-06/0.01697, allocations: 0 / 276.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005536/0.01752, allocations: 305.1 kB / 276.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.01763, allocations: 316.4 kB / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002281/0.01786, allocations: 326.3 kB / 277.2 MB, free: 12.87 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/0.01789, allocations: 37.69 kB / 277.2 MB, free: 12.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.01801, allocations: 215.6 kB / 277.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.997e-05/0.01808, allocations: 107 kB / 277.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004567/0.01853, allocations: 71.36 kB / 277.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.01869, allocations: 0.5157 MB / 278.1 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.01881, allocations: 73.67 kB / 278.2 MB, free: 11.82 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002629/0.01907, allocations: 482.1 kB / 278.6 MB, free: 11.22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/0.0193, allocations: 198 kB / 278.8 MB, free: 11.01 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.0193, allocations: 0 / 278.8 MB, free: 11.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003977/0.0197, allocations: 330.2 kB / 279.2 MB, free: 10.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.789e-05/0.01974, allocations: 37.69 kB / 279.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.01975, allocations: 0 / 279.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001381/0.01988, allocations: 35.77 kB / 279.2 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000443/0.02033, allocations: 127.8 kB / 279.3 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002151/0.02248, allocations: 3.753 MB / 283.1 MB, free: 6.461 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.02263, allocations: 35.77 kB / 283.1 MB, free: 6.426 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.02264, allocations: 8 kB / 283.1 MB, free: 6.418 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.0001203/0.02276, allocations: 176.5 kB / 283.3 MB, free: 6.234 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.068e-05/0.02281, allocations: 43.81 kB / 283.4 MB, free: 6.191 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.723e-05/0.02286, allocations: 43.02 kB / 283.4 MB, free: 6.145 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.02286, allocations: 4 kB / 283.4 MB, free: 6.141 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.02287, allocations: 192 / 283.4 MB, free: 6.141 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003667/0.02323, allocations: 0.5864 MB / 284 MB, free: 5.445 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002477/0.02348, allocations: 268.4 kB / 284.3 MB, free: 5.148 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.02348, allocations: 0 / 284.3 MB, free: 5.148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005534/0.02404, allocations: 179.8 kB / 284.4 MB, free: 4.973 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.066e-05/0.0241, allocations: 23.67 kB / 284.5 MB, free: 4.945 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.02411, allocations: 4 kB / 284.5 MB, free: 4.941 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001926/0.02604, allocations: 3.627 MB / 288.1 MB, free: 1.066 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.02604, allocations: 7.875 kB / 288.1 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004217/0.02647, allocations: 448.5 kB / 288.5 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.244e-05/0.02656, allocations: 55.72 kB / 288.6 MB, free: 0.543 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.617e-05/0.02658, allocations: 8 kB / 288.6 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.02671, allocations: 20.08 kB / 288.6 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.531e-05/0.02679, allocations: 27.89 kB / 288.6 MB, free: 500 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.0268, allocations: 12 kB / 288.6 MB, free: 488 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001391/0.02694, allocations: 223 kB / 288.9 MB, free: 268 kB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02694, allocations: 0 / 288.9 MB, free: 268 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003158/0.02726, allocations: 107.9 kB / 289 MB, free: 160 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.0001247/0.02738, allocations: 107.2 kB / 289.1 MB, free: 44 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008064/0.02819, allocations: 0.5061 MB / 289.6 MB, free: 15.5 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.02819, allocations: 4 kB / 289.6 MB, free: 15.49 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006159/0.02881, allocations: 401.4 kB / 290 MB, free: 15.08 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003625/0.02917, allocations: 95.28 kB / 290.1 MB, free: 14.99 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/0.03078, allocations: 0.7634 MB / 290.8 MB, free: 14.2 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.722e-05/0.03087, allocations: 101.2 kB / 290.9 MB, free: 14.08 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001312/0.031, allocations: 38.95 kB / 291 MB, free: 14.04 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.344e-05/0.03107, allocations: 28.5 kB / 291 MB, free: 14.01 MB / 282.7 MB Notification: Performance of SimCode: time 1.964e-06/0.03108, allocations: 0 / 291 MB, free: 14.01 MB / 282.7 MB Notification: Performance of Templates: time 0.009665/0.04074, allocations: 6.73 MB / 297.7 MB, free: 7.445 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.2442240100353956]