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.00198/0.00198, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.002805/0.002805, allocations: 149.5 kB / 24.26 MB, free: 176 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 1.533/1.533, allocations: 173.4 MB / 200.8 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 178] 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.563e-06/1.563e-06, allocations: 0 / 267.3 MB, free: 6.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.832e-05/2.989e-05, allocations: 6.312 kB / 267.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00678/0.00681, allocations: 2.742 MB / 270 MB, free: 4.012 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002193/0.009003, allocations: 0.8137 MB / 270.8 MB, free: 3.191 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002819/0.009285, allocations: 4 kB / 270.8 MB, free: 3.188 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004449/0.00973, allocations: 79.34 kB / 270.9 MB, free: 3.109 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000636/0.01037, allocations: 138.9 kB / 271.1 MB, free: 2.973 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003595/0.01073, allocations: 91.8 kB / 271.2 MB, free: 2.883 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009381/0.01166, allocations: 457.7 kB / 271.6 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002447/0.01191, allocations: 67.95 kB / 271.7 MB, free: 2.367 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005745/0.01248, allocations: 251.4 kB / 271.9 MB, free: 2.121 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003832/0.01287, allocations: 131.7 kB / 272 MB, free: 1.992 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.231e-05/0.01296, allocations: 36 kB / 272.1 MB, free: 1.957 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.893e-05/0.01305, allocations: 32 kB / 272.1 MB, free: 1.926 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.984e-05/0.01315, allocations: 83.67 kB / 272.2 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002322/0.01338, allocations: 135.7 kB / 272.3 MB, free: 1.711 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008876/0.01427, allocations: 458.5 kB / 272.8 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.01427, allocations: 0 / 272.8 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.01427, allocations: 0 / 272.8 MB, free: 1.262 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.652e-05/0.01429, allocations: 4 kB / 272.8 MB, free: 1.258 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.001825/0.01611, allocations: 0.7309 MB / 273.5 MB, free: 496 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.62e-05/0.01617, allocations: 8.031 kB / 273.5 MB, free: 488 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002115/0.01638, allocations: 60.7 kB / 273.6 MB, free: 428 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006468/0.01703, allocations: 256.5 kB / 273.8 MB, free: 144 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001886/0.01722, allocations: 98.17 kB / 273.9 MB, free: 28 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.01732, allocations: 28.45 kB / 273.9 MB, free: 16 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.01851, allocations: 0.7011 MB / 274.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.01853, allocations: 192 / 274.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.936e-05/0.01858, allocations: 16.12 kB / 274.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.01859, allocations: 4 kB / 274.7 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006587/0.01925, allocations: 197.8 kB / 274.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002416/0.02166, allocations: 0.7636 MB / 275.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008502/0.02251, allocations: 259.5 kB / 275.9 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003245/0.02284, allocations: 107.6 kB / 276 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.477e-05/0.02289, allocations: 11.92 kB / 276 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.045e-05/0.02295, allocations: 53.36 kB / 276 MB, free: 13.7 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 2.335e-06/0.02296, allocations: 0 / 276 MB, free: 13.7 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.001613/0.02457, allocations: 409.1 kB / 276.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002209/0.02479, allocations: 320.4 kB / 276.8 MB, free: 12.9 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004741/0.02526, allocations: 394.3 kB / 277.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.834e-05/0.02532, allocations: 37.7 kB / 277.2 MB, free: 12.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002599/0.02558, allocations: 227.6 kB / 277.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.02575, allocations: 119 kB / 277.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002051/0.02595, allocations: 79.3 kB / 277.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003946/0.02635, allocations: 0.5313 MB / 278.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003347/0.02668, allocations: 109.7 kB / 278.2 MB, free: 11.37 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007772/0.02746, allocations: 0.5332 MB / 278.8 MB, free: 10.7 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007356/0.02819, allocations: 286.8 kB / 279 MB, free: 10.4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.0282, allocations: 4 kB / 279 MB, free: 10.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001073/0.02927, allocations: 406.2 kB / 279.4 MB, free: 9.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.512e-05/0.02933, allocations: 33.7 kB / 279.5 MB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.02933, allocations: 0 / 279.5 MB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002323/0.02957, allocations: 47.66 kB / 279.5 MB, free: 9.891 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.03076, allocations: 131.9 kB / 279.7 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004873/0.03564, allocations: 4.014 MB / 283.7 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003453/0.03598, allocations: 31.81 kB / 283.7 MB, free: 5.473 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.76e-05/0.03602, allocations: 12 kB / 283.7 MB, free: 5.461 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.0002587/0.03628, allocations: 196.5 kB / 283.9 MB, free: 5.258 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.03639, allocations: 47.77 kB / 283.9 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/0.0365, allocations: 39.02 kB / 284 MB, free: 5.168 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.0365, allocations: 4 kB / 284 MB, free: 5.164 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-06/0.0365, allocations: 0 / 284 MB, free: 5.164 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008043/0.0373, allocations: 0.6529 MB / 284.6 MB, free: 4.402 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005258/0.03783, allocations: 308.4 kB / 284.9 MB, free: 4.066 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.03783, allocations: 48 / 284.9 MB, free: 4.066 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001213/0.03905, allocations: 187.7 kB / 285.1 MB, free: 3.883 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-05/0.03913, allocations: 27.67 kB / 285.2 MB, free: 3.852 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.03916, allocations: 8 kB / 285.2 MB, free: 3.844 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004018/0.04318, allocations: 3.819 MB / 289 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.04318, allocations: 7.875 kB / 289 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009806/0.04416, allocations: 0.571 MB / 289.6 MB, free: 15.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000187/0.04435, allocations: 67.7 kB / 289.6 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.68e-05/0.04441, allocations: 4 kB / 289.6 MB, free: 15.11 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002791/0.04469, allocations: 15.98 kB / 289.6 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.893e-05/0.04477, allocations: 27.89 kB / 289.7 MB, free: 15.06 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002546/0.04503, allocations: 12 kB / 289.7 MB, free: 15.05 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002917/0.04532, allocations: 263 kB / 289.9 MB, free: 14.8 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04532, allocations: 4.031 kB / 289.9 MB, free: 14.79 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004628/0.04578, allocations: 103.9 kB / 290 MB, free: 14.69 MB / 282.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.0001631/0.04595, allocations: 107.2 kB / 290.2 MB, free: 14.58 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001589/0.04754, allocations: 0.5999 MB / 290.8 MB, free: 13.94 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.04754, allocations: 0 / 290.8 MB, free: 13.94 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001396/0.04893, allocations: 433.2 kB / 291.2 MB, free: 13.49 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005457/0.04948, allocations: 99.27 kB / 291.3 MB, free: 13.4 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.0513, allocations: 0.7717 MB / 292 MB, free: 12.6 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001966/0.05149, allocations: 169.8 kB / 292.2 MB, free: 12.41 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001767/0.05167, allocations: 38.95 kB / 292.2 MB, free: 12.38 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.298e-05/0.05175, allocations: 28.5 kB / 292.3 MB, free: 12.35 MB / 282.7 MB Notification: Performance of SimCode: time 9.22e-07/0.05175, allocations: 0 / 292.3 MB, free: 12.35 MB / 282.7 MB Notification: Performance of Templates: time 0.01416/0.06592, allocations: 6.732 MB / 299 MB, free: 5.789 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.716477912967093]