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.0009316/0.0009316, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001113/0.001113, allocations: 142.1 kB / 24.97 MB, free: 8.316 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.9945/0.9945, allocations: 173.4 MB / 201.5 MB, free: 9.312 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 2.284e-06/2.284e-06, allocations: 7.922 kB / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.949e-05/2.177e-05, allocations: 2.312 kB / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002623/0.002645, allocations: 2.757 MB / 270.8 MB, free: 3.953 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.003789, allocations: 0.8138 MB / 271.6 MB, free: 3.133 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.003896, allocations: 4 kB / 271.6 MB, free: 3.129 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002136/0.004109, allocations: 71.36 kB / 271.7 MB, free: 3.059 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001984/0.004308, allocations: 150.8 kB / 271.9 MB, free: 2.91 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000155/0.004463, allocations: 87.81 kB / 271.9 MB, free: 2.824 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003562/0.004819, allocations: 458.1 kB / 272.4 MB, free: 2.375 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.004952, allocations: 67.95 kB / 272.5 MB, free: 2.305 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.005135, allocations: 243.5 kB / 272.7 MB, free: 2.066 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.005287, allocations: 135.6 kB / 272.8 MB, free: 1.934 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.948e-05/0.005327, allocations: 32 kB / 272.9 MB, free: 1.902 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.166e-05/0.005368, allocations: 40 kB / 272.9 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.043e-05/0.005419, allocations: 79.73 kB / 273 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.00552, allocations: 131.7 kB / 273.1 MB, free: 1.656 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002562/0.005776, allocations: 303 kB / 273.4 MB, free: 1.359 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.005778, allocations: 0 / 273.4 MB, free: 1.359 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.005779, allocations: 0 / 273.4 MB, free: 1.359 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.005783, allocations: 0 / 273.4 MB, free: 1.359 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.000724/0.006507, allocations: 0.7157 MB / 274.1 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.006539, allocations: 11.97 kB / 274.1 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.122e-05/0.00662, allocations: 60.7 kB / 274.2 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002545/0.006875, allocations: 240.5 kB / 274.4 MB, free: 276 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.999e-05/0.006955, allocations: 98.17 kB / 274.5 MB, free: 160 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.946e-05/0.006994, allocations: 32.36 kB / 274.5 MB, free: 128 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004168/0.007411, allocations: 0.6471 MB / 275.2 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.007422, allocations: 4.188 kB / 275.2 MB, free: 15.33 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.337e-05/0.007445, allocations: 16.12 kB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.007454, allocations: 4 kB / 275.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001716/0.007626, allocations: 110.9 kB / 275.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008254/0.008451, allocations: 0.6771 MB / 276 MB, free: 14.49 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000264/0.008715, allocations: 179.5 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.047e-05/0.008805, allocations: 71.64 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.00883, allocations: 8 kB / 276.3 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.008855, allocations: 45.33 kB / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.463e-06/0.008856, allocations: 0 / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005398/0.009396, allocations: 297.1 kB / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.824e-05/0.009484, allocations: 324.4 kB / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002079/0.009692, allocations: 326.3 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.307e-05/0.009715, allocations: 33.7 kB / 277.3 MB, free: 13.1 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.571e-05/0.009811, allocations: 219.6 kB / 277.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.087e-05/0.009872, allocations: 115 kB / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.297e-05/0.009945, allocations: 67.36 kB / 277.6 MB, free: 12.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.01006, allocations: 0.5196 MB / 278.2 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003271/0.01039, allocations: 69.67 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002133/0.01061, allocations: 482.1 kB / 278.7 MB, free: 11.49 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001963/0.0108, allocations: 202 kB / 278.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.0108, allocations: 0 / 278.9 MB, free: 11.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003243/0.01113, allocations: 326.2 kB / 279.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.01115, allocations: 40.61 kB / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.01116, allocations: 0 / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001157/0.01127, allocations: 35.66 kB / 279.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004228/0.0117, allocations: 135.9 kB / 279.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001833/0.01353, allocations: 3.737 MB / 283.2 MB, free: 6.734 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.01366, allocations: 35.77 kB / 283.2 MB, free: 6.699 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.818e-05/0.01368, allocations: 16.06 kB / 283.2 MB, free: 6.684 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.0001062/0.01378, allocations: 176.5 kB / 283.4 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.92e-05/0.01383, allocations: 43.81 kB / 283.4 MB, free: 6.457 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.402e-05/0.01388, allocations: 39.02 kB / 283.5 MB, free: 6.414 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.01388, allocations: 4 kB / 283.5 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-06/0.01388, allocations: 192 / 283.5 MB, free: 6.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003453/0.01423, allocations: 0.5787 MB / 284.1 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002329/0.01446, allocations: 272.4 kB / 284.3 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.01446, allocations: 0 / 284.3 MB, free: 5.422 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005475/0.01501, allocations: 183.8 kB / 284.5 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.935e-05/0.01506, allocations: 27.67 kB / 284.5 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.01508, allocations: 8 kB / 284.5 MB, free: 5.203 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001741/0.01682, allocations: 3.62 MB / 288.2 MB, free: 1.336 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.01682, allocations: 3.938 kB / 288.2 MB, free: 1.332 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003911/0.01721, allocations: 444.5 kB / 288.6 MB, free: 0.875 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.368e-05/0.01729, allocations: 63.7 kB / 288.7 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.875e-05/0.01732, allocations: 8 kB / 288.7 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.01746, allocations: 19.98 kB / 288.7 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.415e-05/0.01751, allocations: 27.89 kB / 288.7 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.01752, allocations: 8.031 kB / 288.7 MB, free: 0.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001242/0.01765, allocations: 227 kB / 288.9 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01765, allocations: 0 / 288.9 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000271/0.01792, allocations: 107.9 kB / 289 MB, free: 436 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.0001049/0.01802, allocations: 107.2 kB / 289.1 MB, free: 320 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007307/0.01875, allocations: 0.5063 MB / 289.7 MB, free: 15.77 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.01876, allocations: 7.938 kB / 289.7 MB, free: 15.76 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005831/0.01934, allocations: 397.2 kB / 290 MB, free: 15.35 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.01967, allocations: 104.6 kB / 290.2 MB, free: 15.25 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001302/0.02097, allocations: 0.7561 MB / 290.9 MB, free: 14.46 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.309e-05/0.02102, allocations: 97.3 kB / 291 MB, free: 14.35 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.02113, allocations: 38.95 kB / 291 MB, free: 14.3 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.42e-05/0.02118, allocations: 32.5 kB / 291.1 MB, free: 14.27 MB / 282.7 MB Notification: Performance of SimCode: time 7.41e-07/0.02118, allocations: 0 / 291.1 MB, free: 14.27 MB / 282.7 MB Notification: Performance of Templates: time 0.00808/0.02926, allocations: 6.731 MB / 297.8 MB, free: 7.711 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.96535010705702]