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.001476/0.001476, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001577/0.001577, allocations: 165.8 kB / 24.82 MB, free: 9.266 MB / 18.57 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 0.9274/0.9274, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] 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.273e-06/1.273e-06, allocations: 0 / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.362e-05/1.489e-05, allocations: 2.312 kB / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00263/0.002645, allocations: 2.749 MB / 276.1 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.003673, allocations: 0.845 MB / 277 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.003793, allocations: 4 kB / 277 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002096/0.004003, allocations: 67.42 kB / 277 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002106/0.004213, allocations: 150.8 kB / 277.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.004372, allocations: 87.75 kB / 277.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003458/0.004718, allocations: 458.1 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.004829, allocations: 59.95 kB / 277.8 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.005017, allocations: 251.5 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001483/0.005165, allocations: 131.7 kB / 278.2 MB, free: 12.49 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.005206, allocations: 35.94 kB / 278.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.129e-05/0.005247, allocations: 36 kB / 278.2 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.664e-05/0.005293, allocations: 75.73 kB / 278.3 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.051e-05/0.005384, allocations: 139.7 kB / 278.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.005619, allocations: 299 kB / 278.7 MB, free: 11.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.474e-06/0.005622, allocations: 4 kB / 278.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.005622, allocations: 0 / 278.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.877e-06/0.005626, allocations: 0 / 278.7 MB, free: 11.91 MB / 266.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.0006468/0.006273, allocations: 0.7195 MB / 279.4 MB, free: 11.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.006303, allocations: 8.031 kB / 279.5 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.958e-05/0.006373, allocations: 56.7 kB / 279.5 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002113/0.006584, allocations: 240.5 kB / 279.7 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.051e-05/0.006654, allocations: 110.2 kB / 279.9 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.322e-05/0.006688, allocations: 28.38 kB / 279.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003521/0.00704, allocations: 0.6313 MB / 280.5 MB, free: 9.902 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.007051, allocations: 4.188 kB / 280.5 MB, free: 9.898 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/0.00707, allocations: 16.12 kB / 280.5 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.007083, allocations: 8 kB / 280.5 MB, free: 9.875 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001138/0.007197, allocations: 87.41 kB / 280.6 MB, free: 9.793 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007235/0.007921, allocations: 0.6308 MB / 281.3 MB, free: 9.133 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002006/0.008121, allocations: 159.6 kB / 281.4 MB, free: 8.965 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.91e-05/0.00818, allocations: 67.58 kB / 281.5 MB, free: 8.895 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.008204, allocations: 7.984 kB / 281.5 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.008226, allocations: 41.39 kB / 281.5 MB, free: 8.836 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.242e-06/0.008227, allocations: 0 / 281.5 MB, free: 8.836 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0004072/0.008635, allocations: 277.7 kB / 281.8 MB, free: 8.555 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.414e-05/0.008729, allocations: 328.4 kB / 282.1 MB, free: 8.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001741/0.008903, allocations: 318.2 kB / 282.4 MB, free: 7.832 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.008928, allocations: 33.7 kB / 282.5 MB, free: 7.793 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.009035, allocations: 231.5 kB / 282.7 MB, free: 7.562 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.174e-05/0.009097, allocations: 99.11 kB / 282.8 MB, free: 7.465 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.413e-05/0.009171, allocations: 83.27 kB / 282.9 MB, free: 7.375 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.009302, allocations: 0.5117 MB / 283.4 MB, free: 6.852 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.545e-05/0.009367, allocations: 65.66 kB / 283.4 MB, free: 6.781 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001954/0.009562, allocations: 466.9 kB / 283.9 MB, free: 6.195 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001457/0.009708, allocations: 174 kB / 284.1 MB, free: 6.004 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.00971, allocations: 0 / 284.1 MB, free: 6.004 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002601/0.00997, allocations: 298.3 kB / 284.4 MB, free: 5.691 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.009994, allocations: 33.64 kB / 284.4 MB, free: 5.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.009999, allocations: 4 kB / 284.4 MB, free: 5.648 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.561e-05/0.01008, allocations: 31.67 kB / 284.4 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003691/0.01045, allocations: 131.9 kB / 284.6 MB, free: 5.484 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001764/0.01222, allocations: 3.691 MB / 288.2 MB, free: 1.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/0.01234, allocations: 35.83 kB / 288.3 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.01236, allocations: 4 kB / 288.3 MB, free: 1.531 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.0001033/0.01246, allocations: 188.6 kB / 288.5 MB, free: 1.336 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.495e-05/0.01251, allocations: 43.81 kB / 288.5 MB, free: 1.293 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.074e-05/0.01258, allocations: 39.02 kB / 288.6 MB, free: 1.254 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.01258, allocations: 4 kB / 288.6 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.345e-06/0.01258, allocations: 0 / 288.6 MB, free: 1.25 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002798/0.01286, allocations: 0.5669 MB / 289.1 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002707/0.01313, allocations: 221.2 kB / 289.3 MB, free: 340 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.01313, allocations: 7.984 kB / 289.3 MB, free: 332 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004853/0.01362, allocations: 187.8 kB / 289.5 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.41e-05/0.01366, allocations: 15.69 kB / 289.5 MB, free: 124 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.01368, allocations: 15.98 kB / 289.6 MB, free: 108 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001565/0.01524, allocations: 3.586 MB / 293.1 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.01524, allocations: 0 / 293.1 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000316/0.01556, allocations: 415.4 kB / 293.6 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.644e-05/0.01564, allocations: 63.64 kB / 293.6 MB, free: 11.8 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.01566, allocations: 8 kB / 293.6 MB, free: 11.79 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.01578, allocations: 15.98 kB / 293.6 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.085e-05/0.01583, allocations: 23.95 kB / 293.7 MB, free: 11.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.01584, allocations: 12.03 kB / 293.7 MB, free: 11.74 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.892e-05/0.01594, allocations: 207 kB / 293.9 MB, free: 11.54 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01594, allocations: 4 kB / 293.9 MB, free: 11.54 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00026/0.0162, allocations: 99.95 kB / 294 MB, free: 11.44 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 8.076e-05/0.01628, allocations: 107.2 kB / 294.1 MB, free: 11.32 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000576/0.01686, allocations: 0.4997 MB / 294.6 MB, free: 10.78 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.01686, allocations: 0 / 294.6 MB, free: 10.78 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008351/0.01769, allocations: 389.2 kB / 295 MB, free: 10.38 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.01802, allocations: 102.7 kB / 295.1 MB, free: 10.28 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.01918, allocations: 0.7583 MB / 295.8 MB, free: 9.496 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.636e-05/0.01924, allocations: 93.31 kB / 295.9 MB, free: 9.383 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.774e-05/0.01934, allocations: 34.95 kB / 295.9 MB, free: 9.344 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002414/0.01958, allocations: 214.1 kB / 296.2 MB, free: 9.133 MB / 282.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01958, allocations: 4 kB / 296.2 MB, free: 9.129 MB / 282.7 MB Notification: Performance of Templates: time 0.008288/0.02787, allocations: 7.208 MB / 303.4 MB, free: 2.105 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] 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","",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.816748473327607]