Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001263/0.001263, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001224/0.001224, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9093/0.9093, allocations: 177 MB / 204.8 MB, free: 5.566 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.213e-06/1.213e-06, allocations: 3.938 kB / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.322e-05/1.443e-05, allocations: 9.266 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00273/0.002745, allocations: 2.788 MB / 275.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.003928, allocations: 0.8528 MB / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.00406, allocations: 4 kB / 276.5 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002369/0.004297, allocations: 67.42 kB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002353/0.004532, allocations: 146.8 kB / 276.7 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000176/0.004708, allocations: 91.75 kB / 276.8 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003491/0.005057, allocations: 458.1 kB / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.005177, allocations: 71.88 kB / 277.4 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001843/0.005362, allocations: 239.5 kB / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001421/0.005504, allocations: 139.6 kB / 277.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.093e-05/0.005545, allocations: 32 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.057e-05/0.005585, allocations: 36 kB / 277.8 MB, free: 12.53 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.895e-05/0.005634, allocations: 75.73 kB / 277.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.807e-05/0.005732, allocations: 139.7 kB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002679/0.006, allocations: 291 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.006002, allocations: 0 / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.006003, allocations: 0 / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.006008, allocations: 8 kB / 278.3 MB, free: 12.03 MB / 266.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.0007323/0.006741, allocations: 0.7117 MB / 279 MB, free: 11.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.921e-05/0.00677, allocations: 11.98 kB / 279 MB, free: 11.26 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.553e-05/0.006846, allocations: 60.7 kB / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002487/0.007094, allocations: 252.5 kB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.197e-05/0.007166, allocations: 102.1 kB / 279.4 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.39e-05/0.0072, allocations: 28.38 kB / 279.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00039/0.00759, allocations: 0.6471 MB / 280.1 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.859e-06/0.0076, allocations: 192 / 280.1 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.057e-05/0.00762, allocations: 16.12 kB / 280.1 MB, free: 9.984 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.007627, allocations: 4 kB / 280.1 MB, free: 9.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001608/0.007788, allocations: 110.8 kB / 280.2 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007793/0.008567, allocations: 0.6771 MB / 280.9 MB, free: 9.156 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002465/0.008814, allocations: 182.2 kB / 281.1 MB, free: 8.969 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.407e-05/0.008898, allocations: 67.66 kB / 281.1 MB, free: 8.898 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.008919, allocations: 4 kB / 281.1 MB, free: 8.895 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.008945, allocations: 53.34 kB / 281.2 MB, free: 8.832 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.162e-06/0.008947, allocations: 4 kB / 281.2 MB, free: 8.828 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.000726/0.009673, allocations: 297.8 kB / 281.5 MB, free: 8.527 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.18e-05/0.009754, allocations: 316.4 kB / 281.8 MB, free: 8.145 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.009945, allocations: 330.3 kB / 282.1 MB, free: 7.805 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.009969, allocations: 33.7 kB / 282.2 MB, free: 7.766 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.503e-05/0.01006, allocations: 223.5 kB / 282.4 MB, free: 7.543 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.057e-05/0.01011, allocations: 103.1 kB / 282.5 MB, free: 7.441 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.038e-05/0.01018, allocations: 83.25 kB / 282.6 MB, free: 7.352 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.0103, allocations: 0.5157 MB / 283.1 MB, free: 6.824 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.077e-05/0.01039, allocations: 77.67 kB / 283.2 MB, free: 6.742 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.0106, allocations: 478.3 kB / 283.6 MB, free: 6.145 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.01079, allocations: 190 kB / 283.8 MB, free: 5.938 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.01079, allocations: 0 / 283.8 MB, free: 5.938 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003427/0.01113, allocations: 338.2 kB / 284.1 MB, free: 5.586 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.01115, allocations: 29.7 kB / 284.2 MB, free: 5.551 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.01116, allocations: 4 kB / 284.2 MB, free: 5.547 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.198e-05/0.01125, allocations: 31.67 kB / 284.2 MB, free: 5.512 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003964/0.01165, allocations: 135.7 kB / 284.3 MB, free: 5.379 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001838/0.01349, allocations: 3.737 MB / 288.1 MB, free: 1.402 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001275/0.01361, allocations: 31.84 kB / 288.1 MB, free: 1.371 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.52e-05/0.01363, allocations: 8 kB / 288.1 MB, free: 1.363 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 9.842e-05/0.01373, allocations: 184.5 kB / 288.3 MB, free: 1.172 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.695e-05/0.01377, allocations: 43.81 kB / 288.3 MB, free: 1.129 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.897e-05/0.01381, allocations: 43.02 kB / 288.4 MB, free: 1.086 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.01381, allocations: 4 kB / 288.4 MB, free: 1.082 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.01381, allocations: 192 / 288.4 MB, free: 1.082 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005233/0.01434, allocations: 0.5868 MB / 289 MB, free: 396 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002253/0.01456, allocations: 272.4 kB / 289.2 MB, free: 88 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.01456, allocations: 0 / 289.2 MB, free: 88 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005566/0.01512, allocations: 183.8 kB / 289.4 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.832e-05/0.01517, allocations: 19.67 kB / 289.4 MB, free: 15.88 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.01519, allocations: 11.98 kB / 289.4 MB, free: 15.87 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001441/0.01663, allocations: 3.628 MB / 293.1 MB, free: 12 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.01663, allocations: 3.938 kB / 293.1 MB, free: 11.99 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000375/0.01701, allocations: 439.4 kB / 293.5 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.609e-05/0.01708, allocations: 63.7 kB / 293.6 MB, free: 11.48 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.597e-05/0.01711, allocations: 8 kB / 293.6 MB, free: 11.47 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.01723, allocations: 11.98 kB / 293.6 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.335e-05/0.01729, allocations: 27.89 kB / 293.6 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.0173, allocations: 12 kB / 293.6 MB, free: 11.42 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001201/0.01742, allocations: 223 kB / 293.8 MB, free: 11.2 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01742, allocations: 0 / 293.8 MB, free: 11.2 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002531/0.01767, allocations: 99.95 kB / 293.9 MB, free: 11.11 MB / 282.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 9.528e-05/0.01776, allocations: 115.2 kB / 294 MB, free: 10.98 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006657/0.01843, allocations: 0.5141 MB / 294.6 MB, free: 10.43 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.01843, allocations: 0 / 294.6 MB, free: 10.43 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005699/0.019, allocations: 405.7 kB / 295 MB, free: 10.01 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003043/0.01931, allocations: 84.59 kB / 295 MB, free: 9.926 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.02054, allocations: 0.7559 MB / 295.8 MB, free: 9.141 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.608e-05/0.0206, allocations: 93.31 kB / 295.9 MB, free: 9.031 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.166e-05/0.02069, allocations: 38.95 kB / 295.9 MB, free: 8.988 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.507e-05/0.02074, allocations: 32.48 kB / 296 MB, free: 8.957 MB / 282.7 MB Notification: Performance of SimCode: time 7.02e-07/0.02074, allocations: 0 / 296 MB, free: 8.957 MB / 282.7 MB Notification: Performance of Templates: time 0.008326/0.02907, allocations: 7.088 MB / 303 MB, free: 2.031 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.9373072208836675]