Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.001844/0.001844, allocations: 80.98 kB / 20.68 MB, free: 1.035 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.002027/0.002027, allocations: 155.5 kB / 23.94 MB, free: 4.176 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.503/1.503, allocations: 173.3 MB / 200.4 MB, free: 12.88 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.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 318.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.69e-05/2.876e-05, allocations: 6.281 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.02697/0.027, allocations: 14.44 MB / 333.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01602/0.04302, allocations: 6.283 MB / 339.6 MB, free: 5.168 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001181/0.0442, allocations: 30.72 kB / 339.7 MB, free: 5.152 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001629/0.04583, allocations: 332.5 kB / 340 MB, free: 4.875 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004631/0.05046, allocations: 1.133 MB / 341.1 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007914/0.05837, allocations: 1.925 MB / 343.1 MB, free: 2.637 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004456/0.06283, allocations: 2.166 MB / 345.2 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001458/0.06429, allocations: 0.5067 MB / 345.7 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003323/0.06761, allocations: 1.056 MB / 346.8 MB, free: 15.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002304/0.06992, allocations: 0.7831 MB / 347.6 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003471/0.07026, allocations: 80 kB / 347.6 MB, free: 14.9 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003912/0.07417, allocations: 1.018 MB / 348.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007134/0.07489, allocations: 338.9 kB / 349 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009984/0.07589, allocations: 331.3 kB / 349.3 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004911/0.0808, allocations: 1.991 MB / 351.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.0808, allocations: 0 / 351.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.0808, allocations: 0 / 351.3 MB, free: 11.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.629e-05/0.08084, allocations: 3.938 kB / 351.3 MB, free: 11.23 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.0044/0.08524, allocations: 1.204 MB / 352.5 MB, free: 9.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.08529, allocations: 12.92 kB / 352.5 MB, free: 9.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006605/0.08595, allocations: 100.4 kB / 352.6 MB, free: 9.879 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001699/0.08765, allocations: 0.5673 MB / 353.2 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002144/0.08786, allocations: 164.1 kB / 353.4 MB, free: 9.102 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001824/0.08805, allocations: 55.98 kB / 353.4 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002727/0.09077, allocations: 1.172 MB / 354.6 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.976e-05/0.0908, allocations: 0 / 354.6 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/0.09094, allocations: 27.97 kB / 354.6 MB, free: 7.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001293/0.09107, allocations: 53.28 kB / 354.7 MB, free: 7.703 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00246/0.09353, allocations: 0.8404 MB / 355.5 MB, free: 6.863 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008409/0.1019, allocations: 2.633 MB / 358.1 MB, free: 4.176 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/0.1037, allocations: 0.6297 MB / 358.8 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009241/0.1046, allocations: 342.2 kB / 359.1 MB, free: 3.195 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003957/0.1085, allocations: 1.201 MB / 360.3 MB, free: 1.977 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.055e-05/0.1086, allocations: 39.06 kB / 360.3 MB, free: 1.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 3.016e-06/0.1086, allocations: 0 / 360.3 MB, free: 1.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.01201/0.1206, allocations: 2.678 MB / 363 MB, free: 15.22 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.873e-05/0.1207, allocations: 85.77 kB / 363.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008473/0.1215, allocations: 0.5574 MB / 363.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.887e-05/0.1216, allocations: 37.7 kB / 363.7 MB, free: 14.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003124/0.1219, allocations: 356.6 kB / 364 MB, free: 14.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002432/0.1222, allocations: 230 kB / 364.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002988/0.1225, allocations: 150.6 kB / 364.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000229/0.1227, allocations: 382.7 kB / 364.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007489/0.1235, allocations: 368.6 kB / 365.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009532/0.1244, allocations: 0.5442 MB / 365.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001562/0.126, allocations: 0.8719 MB / 366.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.126, allocations: 4 kB / 366.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002344/0.1283, allocations: 1.138 MB / 367.7 MB, free: 10.33 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.1283, allocations: 8 kB / 367.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.1284, allocations: 7.938 kB / 367.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001423/0.1298, allocations: 456.5 kB / 368.2 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007152/0.1305, allocations: 163.7 kB / 368.3 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001439/0.1319, allocations: 1.031 MB / 369.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005838/0.1325, allocations: 35.92 kB / 369.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-05/0.1326, allocations: 35.98 kB / 369.4 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009484/0.1336, allocations: 0.5253 MB / 369.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008461/0.1344, allocations: 0.5333 MB / 370.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001506/0.1359, allocations: 0.8454 MB / 371.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.937e-06/0.1359, allocations: 4 kB / 371.3 MB, free: 6.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002253/0.1382, allocations: 1.091 MB / 372.4 MB, free: 5.445 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.1382, allocations: 12.03 kB / 372.4 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1382, allocations: 4 kB / 372.4 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008049/0.139, allocations: 316.7 kB / 372.7 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000714/0.1397, allocations: 167.7 kB / 372.9 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.1409, allocations: 0.8997 MB / 373.8 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000562/0.1415, allocations: 32.02 kB / 373.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.422e-05/0.1415, allocations: 35.92 kB / 373.9 MB, free: 3.961 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0002805/0.1418, allocations: 232 kB / 374.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001673/0.142, allocations: 71.58 kB / 374.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002331/0.1443, allocations: 1.075 MB / 375.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.1443, allocations: 12 kB / 375.3 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.1443, allocations: 0 / 375.3 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.169e-05/0.1443, allocations: 7.922 kB / 375.3 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003465/0.1478, allocations: 1.782 MB / 377.1 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1478, allocations: 0 / 377.1 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006594/0.1485, allocations: 111.9 kB / 377.2 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001298/0.1498, allocations: 451.3 kB / 377.6 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.628e-05/0.1498, allocations: 23.92 kB / 377.6 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001412/0.1512, allocations: 1.039 MB / 378.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1512, allocations: 0 / 378.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002887/0.1541, allocations: 1.581 MB / 380.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003833/0.1545, allocations: 151.5 kB / 380.4 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001347/0.1547, allocations: 16 kB / 380.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005869/0.1552, allocations: 31.97 kB / 380.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.1554, allocations: 60.55 kB / 380.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-05/0.1555, allocations: 31.98 kB / 380.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005415/0.156, allocations: 374.8 kB / 380.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.156, allocations: 0 / 380.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001581/0.1576, allocations: 0.5809 MB / 381.5 MB, free: 12.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001279/0.1589, allocations: 0.5135 MB / 382 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003185/0.1621, allocations: 1.326 MB / 383.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.1621, allocations: 3.938 kB / 383.3 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.1632, allocations: 447.3 kB / 383.8 MB, free: 9.969 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001755/0.1649, allocations: 360.3 kB / 384.1 MB, free: 9.625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003501/0.1684, allocations: 1.604 MB / 385.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004843/0.1689, allocations: 400.4 kB / 386.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009374/0.1698, allocations: 297.8 kB / 386.4 MB, free: 7.281 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002189/0.1701, allocations: 68.48 kB / 386.5 MB, free: 7.215 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1701, allocations: 0 / 386.5 MB, free: 7.215 MB / 350.1 MB Notification: Performance of Templates: time 0.03832/0.2084, allocations: 21.94 MB / 408.4 MB, free: 1.57 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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: 5.593122761696577]