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.001013/0.001013, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001303/0.002316, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006942/0.0006942, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001032/0.001726, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.85/0.85, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1505/1.001, allocations: 52.48 MB / 238.5 MB, free: 7.617 MB / 234.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.164e-06/2.164e-06, allocations: 0 / 239.7 MB, free: 6.375 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.317e-05/2.534e-05, allocations: 3.281 kB / 239.7 MB, free: 6.371 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002607/0.002632, allocations: 2.815 MB / 242.5 MB, free: 3.562 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.003755, allocations: 0.8313 MB / 243.4 MB, free: 2.73 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001218/0.003877, allocations: 4 kB / 243.4 MB, free: 2.727 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000156/0.004033, allocations: 72.38 kB / 243.4 MB, free: 2.656 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001939/0.004227, allocations: 144.6 kB / 243.6 MB, free: 2.516 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001718/0.004399, allocations: 89.12 kB / 243.7 MB, free: 2.43 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003724/0.004771, allocations: 458.1 kB / 244.1 MB, free: 1.98 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.004902, allocations: 71.25 kB / 244.2 MB, free: 1.91 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002541/0.005156, allocations: 294.5 kB / 244.5 MB, free: 1.625 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001767/0.005333, allocations: 134.2 kB / 244.6 MB, free: 1.496 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.041e-05/0.005383, allocations: 32 kB / 244.6 MB, free: 1.465 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.282e-05/0.005426, allocations: 36 kB / 244.7 MB, free: 1.43 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.715e-05/0.005473, allocations: 59.75 kB / 244.7 MB, free: 1.371 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.421e-05/0.005557, allocations: 111.8 kB / 244.8 MB, free: 1.262 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002468/0.005804, allocations: 271 kB / 245.1 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.004e-05/0.005814, allocations: 0 / 245.1 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.005815, allocations: 1.438 kB / 245.1 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.005825, allocations: 0 / 245.1 MB, free: 0.9922 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.0007465/0.006571, allocations: 0.6588 MB / 245.8 MB, free: 308 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.011e-05/0.006602, allocations: 15.11 kB / 245.8 MB, free: 296 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.728e-05/0.006669, allocations: 48.89 kB / 245.8 MB, free: 248 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000235/0.006904, allocations: 205.8 kB / 246 MB, free: 20 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001/0.007004, allocations: 102.2 kB / 246.1 MB, free: 15.9 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.781e-05/0.007042, allocations: 24.38 kB / 246.2 MB, free: 15.88 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003409/0.007383, allocations: 0.6166 MB / 246.8 MB, free: 15.14 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.007393, allocations: 1.156 kB / 246.8 MB, free: 15.14 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.007413, allocations: 20.11 kB / 246.8 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.007421, allocations: 8 kB / 246.8 MB, free: 15.11 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.963e-05/0.007521, allocations: 64.36 kB / 246.9 MB, free: 15.05 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006378/0.008159, allocations: 475.8 kB / 247.3 MB, free: 14.57 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002008/0.00836, allocations: 144.2 kB / 247.5 MB, free: 14.42 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.766e-05/0.008417, allocations: 52.84 kB / 247.5 MB, free: 14.37 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.008445, allocations: 5.969 kB / 247.5 MB, free: 14.36 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.008476, allocations: 38.56 kB / 247.6 MB, free: 14.32 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.202e-06/0.008478, allocations: 0 / 247.6 MB, free: 14.32 MB / 250.7 MB Notification: Performance of matching and sorting (n=29): time 0.000373/0.008851, allocations: 227.6 kB / 247.8 MB, free: 14.09 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.707e-05/0.008878, allocations: 59.34 kB / 247.8 MB, free: 14.02 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001462/0.009024, allocations: 260.5 kB / 248.1 MB, free: 13.75 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.009045, allocations: 33.7 kB / 248.1 MB, free: 13.71 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.085e-05/0.009106, allocations: 141.5 kB / 248.3 MB, free: 13.56 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.15e-05/0.009158, allocations: 111 kB / 248.4 MB, free: 13.45 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.325e-05/0.009221, allocations: 73.66 kB / 248.4 MB, free: 13.38 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.706e-05/0.009308, allocations: 342.8 kB / 248.8 MB, free: 13.03 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.314e-05/0.009361, allocations: 53.69 kB / 248.8 MB, free: 12.97 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.009532, allocations: 426.7 kB / 249.3 MB, free: 12.44 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/0.009657, allocations: 158.7 kB / 249.4 MB, free: 12.27 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.00966, allocations: 0 / 249.4 MB, free: 12.27 MB / 250.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000211/0.009871, allocations: 253.1 kB / 249.7 MB, free: 12 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.643e-05/0.009907, allocations: 37.64 kB / 249.7 MB, free: 11.96 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.009912, allocations: 0 / 249.7 MB, free: 11.96 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.536e-05/0.01001, allocations: 28.84 kB / 249.7 MB, free: 11.93 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004476/0.01046, allocations: 165.5 kB / 249.9 MB, free: 11.77 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/0.01183, allocations: 2.527 MB / 252.4 MB, free: 9.07 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.01195, allocations: 35.77 kB / 252.4 MB, free: 9.035 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.01197, allocations: 12 kB / 252.5 MB, free: 9.023 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 9.313e-05/0.01206, allocations: 125.8 kB / 252.6 MB, free: 8.891 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.012e-05/0.0121, allocations: 39.95 kB / 252.6 MB, free: 8.852 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.129e-05/0.01214, allocations: 39.08 kB / 252.7 MB, free: 8.812 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.01215, allocations: 4 kB / 252.7 MB, free: 8.809 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.01215, allocations: 3.938 kB / 252.7 MB, free: 8.805 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002567/0.01241, allocations: 0.529 MB / 253.2 MB, free: 8.168 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001855/0.01259, allocations: 193.6 kB / 253.4 MB, free: 7.961 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.01259, allocations: 0 / 253.4 MB, free: 7.961 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005108/0.0131, allocations: 211.8 kB / 253.6 MB, free: 7.754 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.126e-05/0.01316, allocations: 35.75 kB / 253.6 MB, free: 7.719 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.662e-05/0.01321, allocations: 16.84 kB / 253.6 MB, free: 7.699 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.01322, allocations: 8 kB / 253.6 MB, free: 7.691 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.0144, allocations: 2.444 MB / 256.1 MB, free: 5.074 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.0144, allocations: 0 / 256.1 MB, free: 5.074 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002644/0.01467, allocations: 329.4 kB / 256.4 MB, free: 4.734 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.433e-05/0.01469, allocations: 8 kB / 256.4 MB, free: 4.727 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.0148, allocations: 15.94 kB / 256.4 MB, free: 4.711 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.71e-05/0.01486, allocations: 23.95 kB / 256.5 MB, free: 4.688 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.01487, allocations: 7.984 kB / 256.5 MB, free: 4.68 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.812e-05/0.01494, allocations: 100.7 kB / 256.6 MB, free: 4.578 MB / 250.7 MB Notification: Performance of sort global known variables: time 2.1e-08/0.01494, allocations: 0 / 256.6 MB, free: 4.578 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002362/0.01517, allocations: 103.9 kB / 256.7 MB, free: 4.477 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 9.06e-05/0.01526, allocations: 92.36 kB / 256.8 MB, free: 4.379 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005424/0.01581, allocations: 441.4 kB / 257.2 MB, free: 3.91 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/0.01582, allocations: 4 kB / 257.2 MB, free: 3.906 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004814/0.0163, allocations: 344 kB / 257.5 MB, free: 3.551 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005153/0.01681, allocations: 0.9344 MB / 258.5 MB, free: 2.434 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00451/0.02132, allocations: 0.6566 MB / 259.1 MB, free: 1.742 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.421e-05/0.02139, allocations: 97.3 kB / 259.2 MB, free: 1.625 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.0215, allocations: 42.94 kB / 259.3 MB, free: 1.586 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002454/0.02174, allocations: 193.2 kB / 259.4 MB, free: 1.395 MB / 250.7 MB Notification: Performance of SimCode: time 7.01e-07/0.02174, allocations: 0 / 259.4 MB, free: 1.395 MB / 250.7 MB Notification: Performance of Templates: time 0.00972/0.03146, allocations: 8.531 MB / 268 MB, free: 9.074 MB / 266.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.578594812192023]