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.0007907/0.0007907, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009849/0.001776, allocations: 449.7 kB / 10.37 MB, free: 332 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.0006303/0.0006303, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009474/0.001578, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.8508/0.8508, allocations: 173.3 MB / 185.8 MB, free: 8.996 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07157/0.9223, allocations: 52.5 MB / 238.3 MB, free: 4.438 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 1.473e-06/1.473e-06, allocations: 0 / 239.5 MB, free: 3.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.588e-06/1.106e-05, allocations: 2.312 kB / 239.5 MB, free: 3.207 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002322/0.002333, allocations: 2.801 MB / 242.3 MB, free: 404 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008693/0.003202, allocations: 0.8409 MB / 243.2 MB, free: 15.55 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.582e-05/0.003298, allocations: 7.938 kB / 243.2 MB, free: 15.54 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001314/0.003429, allocations: 71.42 kB / 243.2 MB, free: 15.47 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.003593, allocations: 146.8 kB / 243.4 MB, free: 15.32 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001372/0.00373, allocations: 95.73 kB / 243.5 MB, free: 15.23 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003499/0.00408, allocations: 454.2 kB / 243.9 MB, free: 14.79 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.004203, allocations: 62.58 kB / 244 MB, free: 14.72 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002425/0.004445, allocations: 290.6 kB / 244.3 MB, free: 14.44 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.004594, allocations: 143.6 kB / 244.4 MB, free: 14.3 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.141e-05/0.004636, allocations: 36 kB / 244.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.674e-05/0.004672, allocations: 36 kB / 244.5 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.045e-05/0.004713, allocations: 51.81 kB / 244.5 MB, free: 14.18 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.719e-05/0.0048, allocations: 119.8 kB / 244.6 MB, free: 14.06 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002277/0.005028, allocations: 267.1 kB / 244.9 MB, free: 13.8 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.331e-05/0.005041, allocations: 0 / 244.9 MB, free: 13.8 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.31e-07/0.005041, allocations: 0 / 244.9 MB, free: 13.8 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.534e-05/0.005057, allocations: 0 / 244.9 MB, free: 13.8 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.0006816/0.005738, allocations: 0.6609 MB / 245.6 MB, free: 13.11 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.495e-05/0.005763, allocations: 8.031 kB / 245.6 MB, free: 13.1 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.703e-05/0.00582, allocations: 48.83 kB / 245.6 MB, free: 13.05 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002175/0.006038, allocations: 209.8 kB / 245.8 MB, free: 12.82 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.928e-05/0.006117, allocations: 98.16 kB / 245.9 MB, free: 12.71 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.196e-05/0.006149, allocations: 28.38 kB / 246 MB, free: 12.68 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003193/0.006468, allocations: 0.6128 MB / 246.6 MB, free: 11.94 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.006479, allocations: 192 / 246.6 MB, free: 11.94 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.006498, allocations: 20.06 kB / 246.6 MB, free: 11.92 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.006504, allocations: 4 kB / 246.6 MB, free: 11.92 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001002/0.006604, allocations: 71.44 kB / 246.7 MB, free: 11.84 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006253/0.00723, allocations: 478 kB / 247.1 MB, free: 11.36 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001744/0.007404, allocations: 134.4 kB / 247.3 MB, free: 11.22 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.037e-05/0.007454, allocations: 44.84 kB / 247.3 MB, free: 11.18 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.007482, allocations: 15.98 kB / 247.3 MB, free: 11.16 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.297e-05/0.007505, allocations: 42.5 kB / 247.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.162e-06/0.007506, allocations: 0 / 247.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of matching and sorting (n=29): time 0.0003627/0.007868, allocations: 226.3 kB / 247.6 MB, free: 10.88 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.558e-05/0.007894, allocations: 59.41 kB / 247.6 MB, free: 10.81 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.008032, allocations: 251 kB / 247.9 MB, free: 10.55 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.008054, allocations: 33.7 kB / 247.9 MB, free: 10.51 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.985e-05/0.008114, allocations: 145.5 kB / 248.1 MB, free: 10.36 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.088e-05/0.008165, allocations: 111 kB / 248.2 MB, free: 10.25 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.21e-05/0.008227, allocations: 65.69 kB / 248.2 MB, free: 10.18 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.86e-05/0.008306, allocations: 346.7 kB / 248.6 MB, free: 9.832 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.251e-05/0.008358, allocations: 57.69 kB / 248.6 MB, free: 9.77 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001689/0.008527, allocations: 438.5 kB / 249.1 MB, free: 9.227 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001296/0.008657, allocations: 154.6 kB / 249.2 MB, free: 9.059 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.008659, allocations: 0 / 249.2 MB, free: 9.059 MB / 250.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0001945/0.008853, allocations: 243.6 kB / 249.4 MB, free: 8.801 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/0.008883, allocations: 33.64 kB / 249.5 MB, free: 8.762 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.008888, allocations: 4 kB / 249.5 MB, free: 8.758 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.889e-05/0.008967, allocations: 24.94 kB / 249.5 MB, free: 8.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004373/0.009405, allocations: 163.8 kB / 249.7 MB, free: 8.57 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001363/0.01077, allocations: 2.55 MB / 252.2 MB, free: 5.844 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.01088, allocations: 31.81 kB / 252.2 MB, free: 5.812 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.0109, allocations: 4 kB / 252.2 MB, free: 5.809 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.926e-05/0.01098, allocations: 137.8 kB / 252.4 MB, free: 5.664 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.856e-05/0.01102, allocations: 35.95 kB / 252.4 MB, free: 5.629 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.715e-05/0.01106, allocations: 35.27 kB / 252.5 MB, free: 5.594 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.01106, allocations: 4 kB / 252.5 MB, free: 5.59 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.01107, allocations: 11.94 kB / 252.5 MB, free: 5.578 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002519/0.01132, allocations: 0.5251 MB / 253 MB, free: 4.945 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.0115, allocations: 197.6 kB / 253.2 MB, free: 4.734 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.0115, allocations: 3.938 kB / 253.2 MB, free: 4.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005321/0.01204, allocations: 211.7 kB / 253.4 MB, free: 4.523 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.347e-05/0.0121, allocations: 35.73 kB / 253.4 MB, free: 4.488 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-05/0.01214, allocations: 20.84 kB / 253.5 MB, free: 4.465 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.01215, allocations: 11.98 kB / 253.5 MB, free: 4.453 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001112/0.01326, allocations: 2.428 MB / 255.9 MB, free: 1.855 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.01327, allocations: 12.14 kB / 255.9 MB, free: 1.844 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002398/0.01351, allocations: 317.4 kB / 256.2 MB, free: 1.516 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.497e-05/0.01353, allocations: 8 kB / 256.2 MB, free: 1.508 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.01364, allocations: 19.98 kB / 256.2 MB, free: 1.488 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.745e-05/0.01369, allocations: 23.95 kB / 256.3 MB, free: 1.465 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.0137, allocations: 8 kB / 256.3 MB, free: 1.457 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.165e-05/0.01376, allocations: 92.62 kB / 256.4 MB, free: 1.363 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.01376, allocations: 0 / 256.4 MB, free: 1.363 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002336/0.01399, allocations: 107.9 kB / 256.5 MB, free: 1.258 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 7.85e-05/0.01407, allocations: 100.3 kB / 256.6 MB, free: 1.152 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005209/0.01459, allocations: 437.5 kB / 257 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/0.0146, allocations: 11.98 kB / 257 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004551/0.01506, allocations: 324 kB / 257.3 MB, free: 348 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/0.01532, allocations: 132.5 kB / 257.5 MB, free: 216 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004472/0.01979, allocations: 0.6723 MB / 258.1 MB, free: 15.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.233e-05/0.01984, allocations: 93.31 kB / 258.2 MB, free: 15.39 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.636e-05/0.01994, allocations: 34.95 kB / 258.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.02016, allocations: 185.2 kB / 258.4 MB, free: 15.18 MB / 266.7 MB Notification: Performance of SimCode: time 5.11e-07/0.02016, allocations: 4 kB / 258.4 MB, free: 15.18 MB / 266.7 MB Notification: Performance of Templates: time 0.008603/0.02877, allocations: 8.189 MB / 266.6 MB, free: 7.188 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7042508786544204]