Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001262/0.001262, allocations: 85.31 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001446/0.001446, allocations: 165.6 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.467/1.467, allocations: 177.1 MB / 204.3 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 325 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.811e-05/1.937e-05, allocations: 5.516 kB / 325 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003427/0.003446, allocations: 2.573 MB / 327.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001414/0.00486, allocations: 0.8243 MB / 328.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001294/0.00499, allocations: 3.25 kB / 328.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002575/0.005247, allocations: 62.7 kB / 328.5 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003105/0.005558, allocations: 153.8 kB / 328.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.005789, allocations: 89.08 kB / 328.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005644/0.006353, allocations: 452.1 kB / 329.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.00652, allocations: 61.16 kB / 329.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003037/0.006824, allocations: 244.4 kB / 329.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002368/0.007061, allocations: 132.9 kB / 329.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.464e-05/0.007125, allocations: 39.44 kB / 329.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.316e-05/0.007198, allocations: 33.94 kB / 329.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.1e-05/0.007289, allocations: 79.03 kB / 329.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001871/0.007476, allocations: 135.7 kB / 329.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005315/0.008008, allocations: 459.8 kB / 330.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.008014, allocations: 4 kB / 330.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.008016, allocations: 1.312 kB / 330.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.008026, allocations: 0 / 330.4 MB, free: 13.33 MB / 302.1 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.001131/0.009157, allocations: 0.61 MB / 331 MB, free: 12.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.00919, allocations: 9.438 kB / 331 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.36e-05/0.009283, allocations: 43.39 kB / 331 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004166/0.0097, allocations: 246.2 kB / 331.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000129/0.009829, allocations: 103.4 kB / 331.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.959e-05/0.009878, allocations: 19.03 kB / 331.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007307/0.01061, allocations: 0.6717 MB / 332 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.01062, allocations: 192 / 332 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.607e-05/0.01066, allocations: 11.75 kB / 332.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.01067, allocations: 4.562 kB / 332.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004437/0.01111, allocations: 198.9 kB / 332.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001378/0.01249, allocations: 0.6671 MB / 332.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005965/0.01308, allocations: 251.9 kB / 333.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.01331, allocations: 104.5 kB / 333.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.01334, allocations: 3.188 kB / 333.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.01338, allocations: 42.78 kB / 333.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.543e-06/0.01338, allocations: 0 / 333.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001067/0.01445, allocations: 413.9 kB / 333.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001707/0.01462, allocations: 312.2 kB / 334 MB, free: 10.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000299/0.01492, allocations: 283.9 kB / 334.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.283e-05/0.01496, allocations: 33.52 kB / 334.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.01509, allocations: 172.4 kB / 334.5 MB, free: 9.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.762e-05/0.01519, allocations: 111.1 kB / 334.6 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.01531, allocations: 65.67 kB / 334.7 MB, free: 9.809 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.01547, allocations: 345.3 kB / 335 MB, free: 9.469 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002376/0.01571, allocations: 123.3 kB / 335.1 MB, free: 9.391 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004857/0.01619, allocations: 487.9 kB / 335.6 MB, free: 8.871 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000487/0.01668, allocations: 274.7 kB / 335.9 MB, free: 8.695 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.01668, allocations: 0 / 335.9 MB, free: 8.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006785/0.01736, allocations: 399.2 kB / 336.3 MB, free: 8.449 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.888e-05/0.0174, allocations: 35.19 kB / 336.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.0174, allocations: 1.094 kB / 336.3 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001547/0.01756, allocations: 44.33 kB / 336.3 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.0186, allocations: 163 kB / 336.5 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003875/0.02247, allocations: 2.968 MB / 339.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/0.02277, allocations: 33.39 kB / 339.5 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.0228, allocations: 6.875 kB / 339.5 MB, free: 5.496 MB / 302.1 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.0001842/0.02298, allocations: 153.4 kB / 339.7 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.718e-05/0.02306, allocations: 41.95 kB / 339.7 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.829e-05/0.02315, allocations: 41.48 kB / 339.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.02315, allocations: 7.156 kB / 339.8 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.02316, allocations: 5.109 kB / 339.8 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007766/0.02393, allocations: 0.6492 MB / 340.4 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003797/0.02431, allocations: 262.9 kB / 340.7 MB, free: 4.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.02431, allocations: 4.969 kB / 340.7 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/0.02569, allocations: 210.1 kB / 340.9 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.475e-05/0.02576, allocations: 19.08 kB / 340.9 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.413e-05/0.02578, allocations: 14.3 kB / 340.9 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003499/0.02928, allocations: 2.773 MB / 343.7 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.02928, allocations: 3.938 kB / 343.7 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008789/0.03016, allocations: 0.5095 MB / 344.2 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/0.0303, allocations: 63.69 kB / 344.3 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.215e-05/0.03035, allocations: 12.23 kB / 344.3 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002791/0.03063, allocations: 15.98 kB / 344.3 MB, free: 0.832 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.6e-05/0.03072, allocations: 27.89 kB / 344.3 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.472e-05/0.03074, allocations: 15.98 kB / 344.3 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002036/0.03094, allocations: 199.1 kB / 344.5 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.03094, allocations: 0 / 344.5 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004235/0.03137, allocations: 108 kB / 344.6 MB, free: 0.4922 MB / 302.1 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.0001568/0.03152, allocations: 110.4 kB / 344.7 MB, free: 384 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001671/0.0332, allocations: 0.5583 MB / 345.3 MB, free: 15.79 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.0332, allocations: 0 / 345.3 MB, free: 15.79 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001526/0.03472, allocations: 390.3 kB / 345.7 MB, free: 15.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000523/0.03525, allocations: 92.41 kB / 345.8 MB, free: 15.3 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001657/0.0369, allocations: 0.7526 MB / 346.5 MB, free: 14.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001604/0.03706, allocations: 169.8 kB / 346.7 MB, free: 14.33 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001349/0.0372, allocations: 34.95 kB / 346.7 MB, free: 14.3 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.907e-05/0.03728, allocations: 28.5 kB / 346.7 MB, free: 14.27 MB / 318.1 MB Notification: Performance of SimCode: time 4.5e-07/0.03728, allocations: 4 kB / 346.7 MB, free: 14.26 MB / 318.1 MB Notification: Performance of Templates: time 0.01309/0.05037, allocations: 6.661 MB / 353.4 MB, free: 7.781 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.488259565085173]