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.001997/0.001997, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.002202/0.002202, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 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 1.502/1.502, allocations: 173.4 MB / 200.8 MB, free: 9.301 MB / 186.7 MB " [Timeout remaining time 178] 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 1.483e-06/1.483e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.394e-05/2.542e-05, allocations: 2.312 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004079/0.004105, allocations: 2.565 MB / 269.9 MB, free: 4.156 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.005542, allocations: 0.7825 MB / 270.6 MB, free: 3.367 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.005677, allocations: 4 kB / 270.7 MB, free: 3.363 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002719/0.005949, allocations: 79.34 kB / 270.7 MB, free: 3.285 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003096/0.006258, allocations: 138.9 kB / 270.9 MB, free: 3.148 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002257/0.006484, allocations: 91.8 kB / 271 MB, free: 3.059 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005725/0.007057, allocations: 450.1 kB / 271.4 MB, free: 2.617 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.00722, allocations: 67.95 kB / 271.5 MB, free: 2.547 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003157/0.007536, allocations: 247.4 kB / 271.7 MB, free: 2.305 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002382/0.007774, allocations: 127.7 kB / 271.8 MB, free: 2.18 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.289e-05/0.007837, allocations: 36 kB / 271.9 MB, free: 2.145 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.011e-05/0.007907, allocations: 36 kB / 271.9 MB, free: 2.109 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.936e-05/0.007996, allocations: 83.66 kB / 272 MB, free: 2.027 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001802/0.008177, allocations: 135.8 kB / 272.1 MB, free: 1.895 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005639/0.008741, allocations: 462.5 kB / 272.6 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.008744, allocations: 0 / 272.6 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.008745, allocations: 0 / 272.6 MB, free: 1.441 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.008751, allocations: 0 / 272.6 MB, free: 1.441 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.001209/0.00996, allocations: 0.6157 MB / 273.2 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.009994, allocations: 8.031 kB / 273.2 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000135/0.01013, allocations: 56.7 kB / 273.2 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004636/0.01059, allocations: 249.7 kB / 273.5 MB, free: 464 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.01074, allocations: 94.17 kB / 273.6 MB, free: 352 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.876e-05/0.01081, allocations: 28.38 kB / 273.6 MB, free: 324 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008612/0.01167, allocations: 0.6785 MB / 274.3 MB, free: 15.51 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.01168, allocations: 4.188 kB / 274.3 MB, free: 15.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.01172, allocations: 8.125 kB / 274.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.01173, allocations: 11.94 kB / 274.3 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004629/0.01219, allocations: 197.9 kB / 274.5 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001477/0.01366, allocations: 0.6584 MB / 275.2 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006032/0.01427, allocations: 251 kB / 275.4 MB, free: 14.35 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002421/0.01451, allocations: 104.8 kB / 275.5 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.481e-05/0.01454, allocations: 7.938 kB / 275.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.87e-05/0.01459, allocations: 46.53 kB / 275.6 MB, free: 14.18 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.293e-06/0.01459, allocations: 0 / 275.6 MB, free: 14.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.001161/0.01576, allocations: 422.2 kB / 276 MB, free: 13.76 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002271/0.01598, allocations: 320.4 kB / 276.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003509/0.01633, allocations: 276.2 kB / 276.6 MB, free: 13.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.381e-05/0.01638, allocations: 33.7 kB / 276.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.01655, allocations: 172.8 kB / 276.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.01665, allocations: 115 kB / 276.9 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001247/0.01678, allocations: 65.7 kB / 276.9 MB, free: 12.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.01699, allocations: 346.8 kB / 277.3 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002526/0.01724, allocations: 113.7 kB / 277.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005573/0.0178, allocations: 0.4951 MB / 277.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005045/0.0183, allocations: 263.5 kB / 278.1 MB, free: 11.35 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.01831, allocations: 4 kB / 278.1 MB, free: 11.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007594/0.01907, allocations: 407.4 kB / 278.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.559e-05/0.01911, allocations: 33.7 kB / 278.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.01912, allocations: 0 / 278.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001572/0.01927, allocations: 36.84 kB / 278.6 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.02033, allocations: 163.9 kB / 278.8 MB, free: 10.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004314/0.02465, allocations: 2.984 MB / 281.7 MB, free: 7.504 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003347/0.02498, allocations: 35.81 kB / 281.8 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.551e-05/0.02502, allocations: 15.98 kB / 281.8 MB, free: 7.453 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.0002198/0.02524, allocations: 149.8 kB / 281.9 MB, free: 7.297 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.02534, allocations: 47.88 kB / 282 MB, free: 7.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.905e-05/0.02543, allocations: 39.02 kB / 282 MB, free: 7.211 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.02544, allocations: 4 kB / 282 MB, free: 7.207 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.02544, allocations: 0 / 282 MB, free: 7.207 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008855/0.02633, allocations: 0.6462 MB / 282.7 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004229/0.02675, allocations: 273 kB / 282.9 MB, free: 6.156 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.02675, allocations: 0 / 282.9 MB, free: 6.156 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.02813, allocations: 207.7 kB / 283.1 MB, free: 5.953 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.029e-05/0.02821, allocations: 24.84 kB / 283.2 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.02823, allocations: 4 kB / 283.2 MB, free: 5.922 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003697/0.03193, allocations: 2.788 MB / 286 MB, free: 2.926 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.03193, allocations: 11.91 kB / 286 MB, free: 2.914 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009611/0.03289, allocations: 0.5135 MB / 286.5 MB, free: 2.383 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.03305, allocations: 67.66 kB / 286.6 MB, free: 2.316 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.481e-05/0.0331, allocations: 8 kB / 286.6 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003996/0.0335, allocations: 15.98 kB / 286.6 MB, free: 2.293 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.03362, allocations: 27.89 kB / 286.6 MB, free: 2.266 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.71e-05/0.03365, allocations: 12 kB / 286.6 MB, free: 2.254 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003598/0.03401, allocations: 203.1 kB / 286.8 MB, free: 2.059 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.03401, allocations: 0 / 286.8 MB, free: 2.059 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007381/0.03475, allocations: 103.9 kB / 286.9 MB, free: 1.957 MB / 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.0002042/0.03496, allocations: 111.2 kB / 287 MB, free: 1.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002388/0.03734, allocations: 0.5502 MB / 287.6 MB, free: 1.258 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.03735, allocations: 0 / 287.6 MB, free: 1.258 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002277/0.03962, allocations: 394.3 kB / 288 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008483/0.04047, allocations: 91.41 kB / 288.1 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002595/0.04307, allocations: 0.7653 MB / 288.8 MB, free: 15.98 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002636/0.04333, allocations: 169.8 kB / 289 MB, free: 15.79 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002352/0.04357, allocations: 38.95 kB / 289 MB, free: 15.75 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.04368, allocations: 28.5 kB / 289 MB, free: 15.73 MB / 282.7 MB Notification: Performance of SimCode: time 8.02e-07/0.04368, allocations: 0 / 289 MB, free: 15.73 MB / 282.7 MB Notification: Performance of Templates: time 0.01927/0.06295, allocations: 6.697 MB / 295.7 MB, free: 9.215 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.7293717679567635]