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.0007291/0.0007291, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001021/0.00175, allocations: 449.8 kB / 10.44 MB, free: 252 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.0006822/0.0006822, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008685/0.001551, allocations: 479.5 kB / 11.82 MB, free: 2.344 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.8734/0.8734, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08365/0.9571, allocations: 53.66 MB / 243.4 MB, free: 15.52 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 1.312e-06/1.312e-06, allocations: 0 / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.875e-05/2.006e-05, allocations: 2.312 kB / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002696/0.002716, allocations: 2.822 MB / 247.5 MB, free: 11.42 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008801/0.003596, allocations: 0.8721 MB / 248.4 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.828e-05/0.003685, allocations: 4 kB / 248.4 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.00383, allocations: 75.36 kB / 248.5 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001571/0.003987, allocations: 146.8 kB / 248.6 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001276/0.004114, allocations: 87.81 kB / 248.7 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003248/0.004439, allocations: 454.2 kB / 249.1 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.004554, allocations: 74.56 kB / 249.2 MB, free: 9.715 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002141/0.004768, allocations: 286.6 kB / 249.5 MB, free: 9.434 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001523/0.004921, allocations: 139.6 kB / 249.6 MB, free: 9.297 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.053e-05/0.004961, allocations: 36 kB / 249.7 MB, free: 9.262 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.212e-05/0.005003, allocations: 36 kB / 249.7 MB, free: 9.227 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.36e-05/0.005047, allocations: 55.81 kB / 249.7 MB, free: 9.172 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.13e-05/0.005128, allocations: 111.8 kB / 249.9 MB, free: 9.062 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002327/0.005361, allocations: 271 kB / 250.1 MB, free: 8.797 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.778e-06/0.005371, allocations: 0 / 250.1 MB, free: 8.797 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.32e-07/0.005371, allocations: 0 / 250.1 MB, free: 8.797 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.687e-06/0.00538, allocations: 0 / 250.1 MB, free: 8.797 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.000639/0.006019, allocations: 0.6609 MB / 250.8 MB, free: 8.105 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.634e-05/0.006045, allocations: 12.03 kB / 250.8 MB, free: 8.094 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.903e-05/0.006104, allocations: 48.89 kB / 250.8 MB, free: 8.047 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002068/0.006311, allocations: 201.8 kB / 251 MB, free: 7.82 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.974e-05/0.006381, allocations: 106.1 kB / 251.1 MB, free: 7.699 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.491e-05/0.006416, allocations: 28.38 kB / 251.2 MB, free: 7.672 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003313/0.006747, allocations: 0.6089 MB / 251.8 MB, free: 6.938 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.006756, allocations: 192 / 251.8 MB, free: 6.938 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.006774, allocations: 16.12 kB / 251.8 MB, free: 6.922 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.00678, allocations: 8 kB / 251.8 MB, free: 6.914 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001003/0.006881, allocations: 79.38 kB / 251.9 MB, free: 6.836 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006083/0.007489, allocations: 474 kB / 252.3 MB, free: 6.355 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000169/0.007658, allocations: 138.5 kB / 252.5 MB, free: 6.211 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.141e-05/0.007709, allocations: 52.84 kB / 252.5 MB, free: 6.156 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.297e-05/0.007732, allocations: 7.984 kB / 252.5 MB, free: 6.148 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.007753, allocations: 38.56 kB / 252.6 MB, free: 6.102 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.292e-06/0.007754, allocations: 0 / 252.6 MB, free: 6.102 MB / 250.7 MB Notification: Performance of matching and sorting (n=29): time 0.0003505/0.008105, allocations: 231 kB / 252.8 MB, free: 5.867 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.21e-05/0.008127, allocations: 55.41 kB / 252.9 MB, free: 5.801 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.008251, allocations: 255 kB / 253.1 MB, free: 5.543 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.008271, allocations: 33.7 kB / 253.1 MB, free: 5.504 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.713e-05/0.008328, allocations: 145.4 kB / 253.3 MB, free: 5.355 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.228e-05/0.008381, allocations: 115 kB / 253.4 MB, free: 5.242 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.96e-05/0.00844, allocations: 57.69 kB / 253.4 MB, free: 5.18 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.697e-05/0.008517, allocations: 346.7 kB / 253.8 MB, free: 4.832 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.385e-05/0.008571, allocations: 57.69 kB / 253.8 MB, free: 4.77 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.008733, allocations: 431.3 kB / 254.3 MB, free: 4.234 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001227/0.008856, allocations: 163.2 kB / 254.4 MB, free: 4.059 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.008858, allocations: 0 / 254.4 MB, free: 4.059 MB / 250.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0001978/0.009056, allocations: 243.7 kB / 254.7 MB, free: 3.801 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/0.009088, allocations: 37.62 kB / 254.7 MB, free: 3.758 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.009094, allocations: 4 kB / 254.7 MB, free: 3.754 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.729e-05/0.009171, allocations: 20.84 kB / 254.7 MB, free: 3.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004257/0.009597, allocations: 164.5 kB / 254.9 MB, free: 3.57 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001363/0.01096, allocations: 2.547 MB / 257.4 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001137/0.01107, allocations: 23.84 kB / 257.4 MB, free: 0.832 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.01109, allocations: 15.98 kB / 257.5 MB, free: 0.8164 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 7.936e-05/0.01117, allocations: 125.8 kB / 257.6 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.765e-05/0.0112, allocations: 31.97 kB / 257.6 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.729e-05/0.01124, allocations: 39.08 kB / 257.7 MB, free: 0.6094 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.01125, allocations: 8.031 kB / 257.7 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.01125, allocations: 3.938 kB / 257.7 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002467/0.01149, allocations: 0.5368 MB / 258.2 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001733/0.01167, allocations: 185.6 kB / 258.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.01167, allocations: 0 / 258.4 MB, free: 15.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005295/0.0122, allocations: 223.7 kB / 258.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.249e-05/0.01226, allocations: 39.67 kB / 258.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.834e-05/0.0123, allocations: 12.86 kB / 258.7 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.01231, allocations: 11.98 kB / 258.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001084/0.0134, allocations: 2.445 MB / 261.1 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.0134, allocations: 0 / 261.1 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002331/0.01363, allocations: 316.6 kB / 261.4 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.01365, allocations: 8 kB / 261.4 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.01377, allocations: 15.98 kB / 261.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.354e-05/0.01381, allocations: 23.95 kB / 261.5 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.01382, allocations: 8 kB / 261.5 MB, free: 12.47 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.182e-05/0.01388, allocations: 96.56 kB / 261.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01388, allocations: 0 / 261.6 MB, free: 12.37 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002086/0.01409, allocations: 103.9 kB / 261.7 MB, free: 12.27 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 8.438e-05/0.01418, allocations: 100.4 kB / 261.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005344/0.01471, allocations: 446.6 kB / 262.2 MB, free: 11.69 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/0.01472, allocations: 8 kB / 262.2 MB, free: 11.68 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004793/0.0152, allocations: 344.1 kB / 262.5 MB, free: 11.33 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004932/0.01569, allocations: 0.9248 MB / 263.5 MB, free: 10.22 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004342/0.02003, allocations: 0.676 MB / 264.2 MB, free: 9.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.052e-05/0.02008, allocations: 101 kB / 264.2 MB, free: 9.402 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.768e-05/0.02017, allocations: 38.95 kB / 264.3 MB, free: 9.367 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000233/0.0204, allocations: 185.2 kB / 264.5 MB, free: 9.184 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.02041, allocations: 0 / 264.5 MB, free: 9.184 MB / 266.7 MB Notification: Performance of Templates: time 0.009189/0.02959, allocations: 8.535 MB / 273 MB, free: 0.8398 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.587734435684979]