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.001865/0.001865, allocations: 81.66 kB / 20.68 MB, free: 1.023 MB / 14.72 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.002263/0.002263, allocations: 151 kB / 23.94 MB, free: 4.164 MB / 14.72 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.442/1.442, allocations: 173.3 MB / 200.4 MB, free: 12.86 MB / 190.1 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.943e-06/1.943e-06, allocations: 0 / 318.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.693e-05/2.887e-05, allocations: 2.281 kB / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003184/0.003213, allocations: 2.549 MB / 321.5 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.004384, allocations: 0.7737 MB / 322.2 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.004518, allocations: 3.938 kB / 322.2 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002563/0.004775, allocations: 76.22 kB / 322.3 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00029/0.005065, allocations: 151.9 kB / 322.5 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002268/0.005291, allocations: 85.98 kB / 322.5 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005326/0.005824, allocations: 459.4 kB / 323 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.006026, allocations: 65.38 kB / 323 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002675/0.006293, allocations: 244.5 kB / 323.3 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.006511, allocations: 132.2 kB / 323.4 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.739e-05/0.006578, allocations: 34.88 kB / 323.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.187e-05/0.00665, allocations: 35.69 kB / 323.5 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.938e-05/0.00672, allocations: 78.39 kB / 323.6 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001611/0.006881, allocations: 138.8 kB / 323.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004901/0.007371, allocations: 462.4 kB / 324.2 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.007375, allocations: 0 / 324.2 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.007376, allocations: 3.938 kB / 324.2 MB, free: 380 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.007383, allocations: 0 / 324.2 MB, free: 380 kB / 286.1 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.001066/0.008449, allocations: 0.6102 MB / 324.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.008484, allocations: 8.25 kB / 324.8 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.008585, allocations: 44.08 kB / 324.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004141/0.008999, allocations: 255.2 kB / 325.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.009132, allocations: 105.4 kB / 325.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.989e-05/0.009182, allocations: 23.5 kB / 325.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007992/0.009981, allocations: 0.6614 MB / 325.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.009999, allocations: 0.9375 kB / 325.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.797e-05/0.01004, allocations: 15.97 kB / 325.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.01005, allocations: 9.469 kB / 325.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004677/0.01051, allocations: 198.8 kB / 326.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001359/0.01187, allocations: 0.6515 MB / 326.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005872/0.01246, allocations: 258.6 kB / 327 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002324/0.01269, allocations: 108.4 kB / 327.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.23e-05/0.01273, allocations: 4.75 kB / 327.1 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/0.01278, allocations: 42.78 kB / 327.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.422e-06/0.01278, allocations: 0 / 327.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001125/0.0139, allocations: 412.3 kB / 327.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002027/0.01411, allocations: 314.1 kB / 327.8 MB, free: 13.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003528/0.01446, allocations: 283 kB / 328.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.684e-05/0.01451, allocations: 33.36 kB / 328.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.01468, allocations: 171.1 kB / 328.3 MB, free: 13.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.0148, allocations: 106 kB / 328.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.01493, allocations: 68.22 kB / 328.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.01513, allocations: 339.8 kB / 328.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002425/0.01537, allocations: 122 kB / 328.9 MB, free: 12.81 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005272/0.0159, allocations: 496.1 kB / 329.4 MB, free: 12.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004976/0.01639, allocations: 266.3 kB / 329.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.0164, allocations: 0 / 329.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007491/0.01714, allocations: 399.1 kB / 330.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.226e-05/0.01719, allocations: 32.23 kB / 330.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.01719, allocations: 1.344 kB / 330.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00019/0.01738, allocations: 37.12 kB / 330.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.0185, allocations: 163.9 kB / 330.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00425/0.02275, allocations: 2.968 MB / 333.3 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003434/0.02309, allocations: 36.48 kB / 333.3 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-05/0.02313, allocations: 13.5 kB / 333.3 MB, free: 9.152 MB / 302.1 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.0002544/0.02338, allocations: 156.7 kB / 333.5 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.037e-05/0.02346, allocations: 37.62 kB / 333.5 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.199e-05/0.02355, allocations: 38.31 kB / 333.5 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.02356, allocations: 3.5 kB / 333.5 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.02356, allocations: 0 / 333.5 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008049/0.02437, allocations: 0.6595 MB / 334.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004096/0.02478, allocations: 273.6 kB / 334.5 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.02478, allocations: 0 / 334.5 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001429/0.02621, allocations: 202.6 kB / 334.7 MB, free: 8.141 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.093e-05/0.02629, allocations: 23.02 kB / 334.7 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.536e-05/0.02631, allocations: 7.516 kB / 334.7 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003592/0.0299, allocations: 2.786 MB / 337.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.02991, allocations: 6.312 kB / 337.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009379/0.03085, allocations: 0.5076 MB / 338 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001492/0.031, allocations: 64.53 kB / 338.1 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.276e-05/0.03105, allocations: 11.75 kB / 338.1 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000285/0.03133, allocations: 15.88 kB / 338.1 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.526e-05/0.03143, allocations: 28.03 kB / 338.1 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.536e-05/0.03145, allocations: 10.64 kB / 338.1 MB, free: 5.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002466/0.0317, allocations: 201.4 kB / 338.3 MB, free: 5.047 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.0317, allocations: 0 / 338.3 MB, free: 5.047 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004491/0.03215, allocations: 104.2 kB / 338.4 MB, free: 5.031 MB / 302.1 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.0001514/0.0323, allocations: 106.8 kB / 338.5 MB, free: 4.938 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001708/0.03401, allocations: 0.5599 MB / 339.1 MB, free: 4.582 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.03402, allocations: 5.125 kB / 339.1 MB, free: 4.578 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001487/0.0355, allocations: 389.3 kB / 339.5 MB, free: 4.355 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000532/0.03604, allocations: 86.36 kB / 339.6 MB, free: 4.312 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.03778, allocations: 0.7475 MB / 340.3 MB, free: 3.789 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000159/0.03794, allocations: 167.8 kB / 340.5 MB, free: 3.672 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001405/0.03808, allocations: 36.83 kB / 340.5 MB, free: 3.656 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.091e-05/0.03816, allocations: 29.12 kB / 340.5 MB, free: 3.648 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.03816, allocations: 3.938 kB / 340.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of Templates: time 0.01299/0.05115, allocations: 6.656 MB / 347.2 MB, free: 14.37 MB / 318.1 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.5727050714194775]