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.0009317/0.0009317, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001277/0.002209, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007641/0.0007641, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009527/0.001717, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.8998/0.8998, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07521/0.975, allocations: 53.66 MB / 243.3 MB, free: 15.59 MB / 250.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 2.024e-06/2.024e-06, allocations: 0 / 244.5 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.122e-05/2.324e-05, allocations: 10.25 kB / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002749/0.002772, allocations: 2.813 MB / 247.3 MB, free: 11.51 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001216/0.003989, allocations: 0.8681 MB / 248.2 MB, free: 10.63 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001457/0.004134, allocations: 4 kB / 248.2 MB, free: 10.63 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001558/0.00429, allocations: 67.42 kB / 248.3 MB, free: 10.56 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001918/0.004482, allocations: 150.8 kB / 248.4 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001664/0.004648, allocations: 91.75 kB / 248.5 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000403/0.005051, allocations: 466.1 kB / 249 MB, free: 9.863 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.005181, allocations: 62.58 kB / 249 MB, free: 9.805 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002627/0.005443, allocations: 286.6 kB / 249.3 MB, free: 9.527 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.005596, allocations: 139.6 kB / 249.4 MB, free: 9.391 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.239e-05/0.005639, allocations: 36 kB / 249.5 MB, free: 9.355 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.79e-05/0.005677, allocations: 40 kB / 249.5 MB, free: 9.316 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.358e-05/0.00572, allocations: 51.81 kB / 249.6 MB, free: 9.266 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.493e-05/0.005815, allocations: 119.8 kB / 249.7 MB, free: 9.148 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005022/0.006318, allocations: 263.1 kB / 249.9 MB, free: 8.891 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.392e-05/0.006331, allocations: 0 / 249.9 MB, free: 8.891 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.006332, allocations: 0 / 249.9 MB, free: 8.891 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.006348, allocations: 0 / 249.9 MB, free: 8.891 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.0007839/0.007132, allocations: 0.6647 MB / 250.6 MB, free: 8.195 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.851e-05/0.007161, allocations: 8.031 kB / 250.6 MB, free: 8.188 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.3e-05/0.007224, allocations: 48.89 kB / 250.7 MB, free: 8.141 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000231/0.007455, allocations: 205.8 kB / 250.9 MB, free: 7.91 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.049e-05/0.007535, allocations: 102.2 kB / 251 MB, free: 7.793 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.007569, allocations: 28.38 kB / 251 MB, free: 7.766 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003347/0.007903, allocations: 0.6166 MB / 251.6 MB, free: 7.016 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.007914, allocations: 4.188 kB / 251.6 MB, free: 7.012 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.007933, allocations: 12.12 kB / 251.6 MB, free: 7 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.007942, allocations: 4 kB / 251.6 MB, free: 6.996 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/0.008047, allocations: 75.44 kB / 251.7 MB, free: 6.926 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006551/0.008703, allocations: 470 kB / 252.1 MB, free: 6.449 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001917/0.008894, allocations: 147 kB / 252.3 MB, free: 6.301 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.282e-05/0.008947, allocations: 44.84 kB / 252.3 MB, free: 6.254 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.008975, allocations: 11.98 kB / 252.3 MB, free: 6.242 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.008996, allocations: 38.56 kB / 252.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.333e-06/0.008997, allocations: 0 / 252.4 MB, free: 6.195 MB / 250.7 MB Notification: Performance of matching and sorting (n=29): time 0.0003795/0.009377, allocations: 231 kB / 252.6 MB, free: 5.961 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.262e-05/0.009399, allocations: 55.41 kB / 252.7 MB, free: 5.895 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.009533, allocations: 259 kB / 252.9 MB, free: 5.633 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.009553, allocations: 33.7 kB / 253 MB, free: 5.594 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.066e-05/0.009614, allocations: 145.4 kB / 253.1 MB, free: 5.445 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.205e-05/0.009666, allocations: 107 kB / 253.2 MB, free: 5.34 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.376e-05/0.009729, allocations: 65.69 kB / 253.3 MB, free: 5.27 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.772e-05/0.009807, allocations: 342.7 kB / 253.6 MB, free: 4.926 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.074e-05/0.009868, allocations: 61.69 kB / 253.7 MB, free: 4.859 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.01004, allocations: 430.7 kB / 254.1 MB, free: 4.324 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001267/0.01016, allocations: 160.6 kB / 254.2 MB, free: 4.152 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.01017, allocations: 0 / 254.2 MB, free: 4.152 MB / 250.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002011/0.01037, allocations: 243.6 kB / 254.5 MB, free: 3.895 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.0104, allocations: 33.64 kB / 254.5 MB, free: 3.855 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.0104, allocations: 4 kB / 254.5 MB, free: 3.852 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.161e-05/0.01049, allocations: 28.78 kB / 254.5 MB, free: 3.82 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004375/0.01092, allocations: 164.5 kB / 254.7 MB, free: 3.66 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001595/0.01252, allocations: 2.546 MB / 257.2 MB, free: 0.9453 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.01264, allocations: 31.84 kB / 257.3 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.338e-05/0.01265, allocations: 7.984 kB / 257.3 MB, free: 0.9062 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 8.141e-05/0.01273, allocations: 129.8 kB / 257.4 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.56e-05/0.01277, allocations: 35.97 kB / 257.4 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.825e-05/0.01281, allocations: 35.08 kB / 257.5 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.01281, allocations: 4 kB / 257.5 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.01281, allocations: 3.938 kB / 257.5 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002335/0.01304, allocations: 0.5329 MB / 258 MB, free: 48 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001869/0.01323, allocations: 189.6 kB / 258.2 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.01323, allocations: 0 / 258.2 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005175/0.01375, allocations: 211.8 kB / 258.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.994e-05/0.01382, allocations: 39.73 kB / 258.5 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.497e-05/0.01387, allocations: 16.86 kB / 258.5 MB, free: 15.58 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.01388, allocations: 7.984 kB / 258.5 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/0.01497, allocations: 2.449 MB / 260.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.01497, allocations: 0 / 260.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002412/0.01521, allocations: 320.3 kB / 261.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.432e-05/0.01523, allocations: 8 kB / 261.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001081/0.01534, allocations: 15.98 kB / 261.3 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.848e-05/0.01539, allocations: 23.95 kB / 261.3 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.0154, allocations: 8 kB / 261.3 MB, free: 12.57 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.389e-05/0.01546, allocations: 92.62 kB / 261.4 MB, free: 12.47 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01546, allocations: 0 / 261.4 MB, free: 12.47 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002285/0.01569, allocations: 107.9 kB / 261.5 MB, free: 12.37 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.0001002/0.01579, allocations: 96.34 kB / 261.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005392/0.01633, allocations: 433.8 kB / 262 MB, free: 11.8 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.109e-05/0.01634, allocations: 12.19 kB / 262 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004659/0.01681, allocations: 332 kB / 262.3 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.01709, allocations: 128.7 kB / 262.5 MB, free: 11.32 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00457/0.02166, allocations: 0.6768 MB / 263.1 MB, free: 10.62 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.641e-05/0.02172, allocations: 96.95 kB / 263.2 MB, free: 10.51 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001115/0.02183, allocations: 38.95 kB / 263.3 MB, free: 10.47 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002332/0.02206, allocations: 185.2 kB / 263.5 MB, free: 10.29 MB / 266.7 MB Notification: Performance of SimCode: time 8.61e-07/0.02206, allocations: 0 / 263.5 MB, free: 10.29 MB / 266.7 MB Notification: Performance of Templates: time 0.009571/0.03164, allocations: 8.195 MB / 271.7 MB, free: 2.277 MB / 266.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 -ignoreHideResult -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.7200675224885345]