Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0009703/0.0009703, allocations: 85.95 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001581/0.001581, allocations: 162.2 kB / 25.61 MB, free: 8.91 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.012/1.012, allocations: 158.6 MB / 187.5 MB, free: 2.805 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 251.4 MB, free: 7.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.162e-05/1.316e-05, allocations: 2.312 kB / 251.4 MB, free: 7.281 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002799/0.002812, allocations: 2.75 MB / 254.2 MB, free: 4.516 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001151/0.003964, allocations: 0.8498 MB / 255 MB, free: 3.656 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000158/0.004122, allocations: 7.938 kB / 255 MB, free: 3.648 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002436/0.004365, allocations: 71.41 kB / 255.1 MB, free: 3.578 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002277/0.004593, allocations: 154.8 kB / 255.3 MB, free: 3.426 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001753/0.004768, allocations: 87.81 kB / 255.4 MB, free: 3.34 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004145/0.005183, allocations: 457.8 kB / 255.8 MB, free: 2.895 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001339/0.005316, allocations: 59.97 kB / 255.9 MB, free: 2.832 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002008/0.005517, allocations: 247.5 kB / 256.1 MB, free: 2.59 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.005674, allocations: 131.6 kB / 256.2 MB, free: 2.461 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.966e-05/0.005723, allocations: 32 kB / 256.3 MB, free: 2.43 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.041e-05/0.005764, allocations: 36 kB / 256.3 MB, free: 2.395 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.466e-05/0.005818, allocations: 83.72 kB / 256.4 MB, free: 2.312 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.876e-05/0.005917, allocations: 135.6 kB / 256.5 MB, free: 2.18 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002656/0.006183, allocations: 299 kB / 256.8 MB, free: 1.887 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.006185, allocations: 0 / 256.8 MB, free: 1.887 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.31e-07/0.006185, allocations: 0 / 256.8 MB, free: 1.887 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.006189, allocations: 0 / 256.8 MB, free: 1.887 MB / 234.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.0007167/0.006906, allocations: 0.7156 MB / 257.5 MB, free: 1.121 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.006955, allocations: 23.97 kB / 257.5 MB, free: 1.098 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.015e-05/0.007035, allocations: 60.64 kB / 257.6 MB, free: 1.039 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00026/0.007295, allocations: 244.5 kB / 257.8 MB, free: 0.7734 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.851e-05/0.007384, allocations: 98.17 kB / 257.9 MB, free: 0.6602 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.768e-05/0.007421, allocations: 28.38 kB / 258 MB, free: 0.6328 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004393/0.007861, allocations: 0.6353 MB / 258.6 MB, free: 15.86 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.007873, allocations: 192 / 258.6 MB, free: 15.86 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.235e-05/0.007896, allocations: 16.12 kB / 258.6 MB, free: 15.84 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.007905, allocations: 4 kB / 258.6 MB, free: 15.84 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000122/0.008027, allocations: 91.41 kB / 258.7 MB, free: 15.75 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007826/0.00881, allocations: 0.6308 MB / 259.3 MB, free: 15.09 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000214/0.009024, allocations: 155.5 kB / 259.5 MB, free: 14.93 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.156e-05/0.009085, allocations: 55.66 kB / 259.5 MB, free: 14.87 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.683e-05/0.009112, allocations: 8 kB / 259.6 MB, free: 14.86 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.009139, allocations: 41.39 kB / 259.6 MB, free: 14.81 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.422e-06/0.00914, allocations: 0 / 259.6 MB, free: 14.81 MB / 250.7 MB Notification: Performance of matching and sorting (n=29): time 0.0004497/0.00959, allocations: 289 kB / 259.9 MB, free: 14.52 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.00969, allocations: 316.4 kB / 260.2 MB, free: 14.13 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001813/0.009871, allocations: 318.2 kB / 260.5 MB, free: 13.8 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.35e-05/0.009895, allocations: 37.7 kB / 260.5 MB, free: 13.76 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.01, allocations: 223.5 kB / 260.8 MB, free: 13.54 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.029e-05/0.01006, allocations: 107.1 kB / 260.9 MB, free: 13.43 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.385e-05/0.01014, allocations: 79.27 kB / 260.9 MB, free: 13.35 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.01027, allocations: 0.5157 MB / 261.4 MB, free: 12.82 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.456e-05/0.01033, allocations: 61.67 kB / 261.5 MB, free: 12.75 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002045/0.01054, allocations: 470.2 kB / 262 MB, free: 12.17 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001509/0.01069, allocations: 174 kB / 262.1 MB, free: 11.98 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.01069, allocations: 4 kB / 262.1 MB, free: 11.97 MB / 250.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000273/0.01096, allocations: 289.5 kB / 262.4 MB, free: 11.67 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.01099, allocations: 41.62 kB / 262.5 MB, free: 11.62 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.011, allocations: 0 / 262.5 MB, free: 11.62 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000106/0.01111, allocations: 39.59 kB / 262.5 MB, free: 11.58 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003834/0.01149, allocations: 128 kB / 262.6 MB, free: 11.45 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001846/0.01334, allocations: 3.687 MB / 266.3 MB, free: 7.543 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001236/0.01346, allocations: 35.77 kB / 266.4 MB, free: 7.508 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.615e-05/0.01348, allocations: 12 kB / 266.4 MB, free: 7.496 MB / 250.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.0001111/0.01359, allocations: 184.5 kB / 266.5 MB, free: 7.305 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.765e-05/0.01363, allocations: 43.81 kB / 266.6 MB, free: 7.262 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.166e-05/0.01368, allocations: 39.08 kB / 266.6 MB, free: 7.223 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.01368, allocations: 0 / 266.6 MB, free: 7.223 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.01368, allocations: 4.188 kB / 266.6 MB, free: 7.219 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003152/0.014, allocations: 0.5639 MB / 267.2 MB, free: 6.547 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002224/0.01422, allocations: 229 kB / 267.4 MB, free: 6.297 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.01422, allocations: 4 kB / 267.4 MB, free: 6.293 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005009/0.01472, allocations: 179.8 kB / 267.6 MB, free: 6.117 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.464e-05/0.01477, allocations: 19.67 kB / 267.6 MB, free: 6.094 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.4e-05/0.01478, allocations: 8 kB / 267.6 MB, free: 6.086 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001464/0.01624, allocations: 3.593 MB / 271.2 MB, free: 2.262 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.01624, allocations: 0 / 271.2 MB, free: 2.262 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.01656, allocations: 419.5 kB / 271.6 MB, free: 1.828 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.491e-05/0.01664, allocations: 67.84 kB / 271.7 MB, free: 1.762 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.287e-05/0.01666, allocations: 4 kB / 271.7 MB, free: 1.758 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.01678, allocations: 15.98 kB / 271.7 MB, free: 1.742 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.003e-05/0.01683, allocations: 31.88 kB / 271.7 MB, free: 1.711 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.01684, allocations: 4 kB / 271.7 MB, free: 1.707 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.854e-05/0.01694, allocations: 218.9 kB / 272 MB, free: 1.496 MB / 250.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01694, allocations: 4.031 kB / 272 MB, free: 1.492 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002551/0.0172, allocations: 104 kB / 272.1 MB, free: 1.391 MB / 250.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.000109/0.01731, allocations: 99.25 kB / 272.2 MB, free: 1.281 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006163/0.01792, allocations: 0.4951 MB / 272.7 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.01792, allocations: 0 / 272.7 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005415/0.01847, allocations: 389.2 kB / 273 MB, free: 352 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.01878, allocations: 100.5 kB / 273.1 MB, free: 252 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.02003, allocations: 0.7555 MB / 273.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.833e-05/0.02009, allocations: 97.3 kB / 274 MB, free: 15.35 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.116e-05/0.02018, allocations: 38.95 kB / 274 MB, free: 15.31 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002631/0.02044, allocations: 210.1 kB / 274.2 MB, free: 15.11 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.02044, allocations: 0 / 274.2 MB, free: 15.11 MB / 266.7 MB Notification: Performance of Templates: time 0.008456/0.0289, allocations: 7.208 MB / 281.4 MB, free: 7.941 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.899104385636747]