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.0009522/0.0009522, allocations: 75.75 kB / 21.69 MB, free: 2.855 MB / 18.57 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.001086/0.001086, allocations: 165.6 kB / 24.99 MB, free: 9.281 MB / 18.57 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.9644/0.9644, allocations: 177.1 MB / 205.3 MB, free: 5.594 MB / 186.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.052e-06/1.052e-06, allocations: 0 / 273 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.539e-05/1.644e-05, allocations: 2.312 kB / 273 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00274/0.002756, allocations: 2.784 MB / 275.8 MB, free: 15.03 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.004026, allocations: 0.8411 MB / 276.7 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.004158, allocations: 7.938 kB / 276.7 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002248/0.004383, allocations: 71.41 kB / 276.7 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002057/0.004589, allocations: 142.8 kB / 276.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002861/0.004875, allocations: 99.73 kB / 277 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003679/0.005243, allocations: 454 kB / 277.4 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.00538, allocations: 63.95 kB / 277.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001944/0.005574, allocations: 247.5 kB / 277.7 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001507/0.005725, allocations: 131.6 kB / 277.9 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.084e-05/0.005766, allocations: 32 kB / 277.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.628e-05/0.005802, allocations: 36 kB / 277.9 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.165e-05/0.005853, allocations: 83.72 kB / 278 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001018/0.005955, allocations: 131.7 kB / 278.1 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002717/0.006227, allocations: 303 kB / 278.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.006229, allocations: 0 / 278.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.00623, allocations: 0 / 278.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.006235, allocations: 0 / 278.4 MB, free: 12.41 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.0007114/0.006946, allocations: 0.7117 MB / 279.1 MB, free: 11.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.117e-05/0.006977, allocations: 12.03 kB / 279.1 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.253e-05/0.00706, allocations: 68.64 kB / 279.2 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000264/0.007324, allocations: 240.5 kB / 279.5 MB, free: 11.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.098e-05/0.007405, allocations: 98.17 kB / 279.5 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.691e-05/0.007442, allocations: 28.38 kB / 279.6 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004061/0.007848, allocations: 0.651 MB / 280.2 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.00786, allocations: 192 / 280.2 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.276e-05/0.007882, allocations: 16.12 kB / 280.2 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.007892, allocations: 4 kB / 280.2 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001683/0.00806, allocations: 110.9 kB / 280.4 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.00916, allocations: 0.6849 MB / 281 MB, free: 9.539 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/0.009427, allocations: 179.5 kB / 281.2 MB, free: 9.352 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.154e-05/0.009519, allocations: 67.66 kB / 281.3 MB, free: 9.281 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.009544, allocations: 15.98 kB / 281.3 MB, free: 9.266 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.009568, allocations: 45.33 kB / 281.3 MB, free: 9.211 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.312e-06/0.00957, allocations: 0 / 281.3 MB, free: 9.211 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005422/0.01011, allocations: 305.8 kB / 281.6 MB, free: 8.902 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.505e-05/0.0102, allocations: 312.4 kB / 281.9 MB, free: 8.523 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.0104, allocations: 326.3 kB / 282.3 MB, free: 8.188 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.01043, allocations: 33.7 kB / 282.3 MB, free: 8.148 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.588e-05/0.01053, allocations: 231.5 kB / 282.5 MB, free: 7.918 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.654e-05/0.01058, allocations: 107.1 kB / 282.6 MB, free: 7.812 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.436e-05/0.01066, allocations: 71.31 kB / 282.7 MB, free: 7.734 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.01078, allocations: 0.5157 MB / 283.2 MB, free: 7.207 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.451e-05/0.01087, allocations: 73.67 kB / 283.3 MB, free: 7.129 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/0.0111, allocations: 482.3 kB / 283.8 MB, free: 6.527 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002009/0.0113, allocations: 194 kB / 283.9 MB, free: 6.316 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.0113, allocations: 4 kB / 283.9 MB, free: 6.312 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00033/0.01163, allocations: 318.3 kB / 284.3 MB, free: 5.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.01166, allocations: 33.7 kB / 284.3 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.01166, allocations: 0 / 284.3 MB, free: 5.941 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001139/0.01178, allocations: 35.61 kB / 284.3 MB, free: 5.902 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004227/0.0122, allocations: 136 kB / 284.5 MB, free: 5.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002089/0.01429, allocations: 3.741 MB / 288.2 MB, free: 1.789 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001311/0.01442, allocations: 27.84 kB / 288.2 MB, free: 1.762 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.01444, allocations: 15.98 kB / 288.2 MB, free: 1.746 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 0.0001044/0.01454, allocations: 172.5 kB / 288.4 MB, free: 1.566 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.721e-05/0.01459, allocations: 51.75 kB / 288.5 MB, free: 1.516 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.44e-05/0.01463, allocations: 43.02 kB / 288.5 MB, free: 1.473 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.01463, allocations: 4 kB / 288.5 MB, free: 1.469 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.01464, allocations: 48 / 288.5 MB, free: 1.469 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000332/0.01497, allocations: 0.5903 MB / 289.1 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002291/0.0152, allocations: 268.4 kB / 289.4 MB, free: 484 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.0152, allocations: 0 / 289.4 MB, free: 484 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005386/0.01574, allocations: 183.8 kB / 289.5 MB, free: 300 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.653e-05/0.01578, allocations: 19.69 kB / 289.6 MB, free: 276 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.0158, allocations: 11.98 kB / 289.6 MB, free: 264 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001483/0.01728, allocations: 3.624 MB / 293.2 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.01728, allocations: 8.094 kB / 293.2 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003889/0.01767, allocations: 439.5 kB / 293.6 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.927e-05/0.01775, allocations: 59.7 kB / 293.7 MB, free: 11.87 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.899e-05/0.01778, allocations: 12 kB / 293.7 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001259/0.01791, allocations: 15.98 kB / 293.7 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.514e-05/0.01797, allocations: 31.83 kB / 293.7 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.591e-05/0.01799, allocations: 8 kB / 293.8 MB, free: 11.8 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000131/0.01812, allocations: 223 kB / 294 MB, free: 11.59 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01812, allocations: 0 / 294 MB, free: 11.59 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002761/0.0184, allocations: 108 kB / 294.1 MB, free: 11.48 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.678e-05/0.01849, allocations: 107.2 kB / 294.2 MB, free: 11.36 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009683/0.01946, allocations: 0.5147 MB / 294.7 MB, free: 10.81 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.01946, allocations: 4 kB / 294.7 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005698/0.02003, allocations: 393.3 kB / 295.1 MB, free: 10.4 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.02035, allocations: 94.97 kB / 295.2 MB, free: 10.31 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.02163, allocations: 0.7558 MB / 295.9 MB, free: 9.523 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.98e-05/0.02169, allocations: 97.3 kB / 296 MB, free: 9.406 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.126e-05/0.02178, allocations: 34.97 kB / 296.1 MB, free: 9.367 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.272e-05/0.02184, allocations: 36.48 kB / 296.1 MB, free: 9.332 MB / 282.7 MB Notification: Performance of SimCode: time 5.71e-07/0.02184, allocations: 0 / 296.1 MB, free: 9.332 MB / 282.7 MB Notification: Performance of Templates: time 0.007948/0.02978, allocations: 6.725 MB / 302.8 MB, free: 2.785 MB / 282.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9113563639111817]