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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008524/0.0008525, allocations: 99.03 kB / 17 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008534/0.0008534, allocations: 191.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.7 MB / 246.4 MB, free: 9.828 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002132/0.0002132, allocations: 4 kB / 307.1 MB, free: 0.9688 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08521/0.08544, allocations: 51.53 MB / 358.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002332/0.08781, allocations: 2.345 MB / 361 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001055/0.08888, allocations: 0.7405 MB / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.08902, allocations: 4 kB / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001875/0.08922, allocations: 51.61 kB / 361.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002423/0.08947, allocations: 123.1 kB / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001585/0.08963, allocations: 67.88 kB / 362 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003556/0.09, allocations: 386.4 kB / 362.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000161/0.09017, allocations: 82.17 kB / 362.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.09031, allocations: 135.5 kB / 362.5 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001938/0.09052, allocations: 171.3 kB / 362.7 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.518e-05/0.09057, allocations: 24 kB / 362.7 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.138e-05/0.09063, allocations: 24 kB / 362.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.835e-05/0.09069, allocations: 55.77 kB / 362.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.362e-05/0.09077, allocations: 93.52 kB / 362.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002652/0.09104, allocations: 323.3 kB / 363.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.09105, allocations: 0 / 363.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.09106, allocations: 0 / 363.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.09107, allocations: 0 / 363.2 MB, free: 8.816 MB / 302.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.0008505/0.09193, allocations: 0.6249 MB / 363.8 MB, free: 8.137 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.09197, allocations: 8.031 kB / 363.9 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.664e-05/0.09205, allocations: 43.53 kB / 363.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003183/0.09238, allocations: 282.5 kB / 364.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.982e-05/0.09248, allocations: 62.03 kB / 364.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.949e-05/0.09253, allocations: 20 kB / 364.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004827/0.09301, allocations: 317.5 kB / 364.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.09304, allocations: 7.891 kB / 364.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.918e-05/0.09308, allocations: 12 kB / 364.6 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.09309, allocations: 4 kB / 364.6 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000401/0.09349, allocations: 213.6 kB / 364.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001255/0.09476, allocations: 0.8103 MB / 365.6 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005187/0.09529, allocations: 284.1 kB / 365.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002123/0.09551, allocations: 124.8 kB / 366 MB, free: 5.832 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.339e-05/0.09556, allocations: 11.94 kB / 366 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.09559, allocations: 38.56 kB / 366.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.422e-06/0.0956, allocations: 0 / 366.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009689/0.09657, allocations: 495.2 kB / 366.5 MB, free: 5.262 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.0967, allocations: 316.4 kB / 366.8 MB, free: 4.879 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002745/0.09698, allocations: 275 kB / 367.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.09702, allocations: 33.7 kB / 367.1 MB, free: 4.555 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.09713, allocations: 172.7 kB / 367.3 MB, free: 4.379 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.331e-05/0.09721, allocations: 102.5 kB / 367.4 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.622e-05/0.09723, allocations: 12 kB / 367.4 MB, free: 4.266 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001038/0.09734, allocations: 338.8 kB / 367.8 MB, free: 3.926 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.09756, allocations: 91.95 kB / 367.8 MB, free: 3.836 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002837/0.09785, allocations: 216.6 kB / 368.1 MB, free: 3.578 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002426/0.0981, allocations: 151.8 kB / 368.2 MB, free: 3.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.09811, allocations: 3.953 kB / 368.2 MB, free: 3.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005931/0.09871, allocations: 369.9 kB / 368.6 MB, free: 3.047 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.202e-05/0.09876, allocations: 37.8 kB / 368.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.09877, allocations: 96 / 368.6 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001441/0.09892, allocations: 52.77 kB / 368.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009626/0.0999, allocations: 199.8 kB / 368.9 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1625/0.2624, allocations: 3.059 MB / 371.9 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000348/0.2628, allocations: 34.05 kB / 371.9 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.2628, allocations: 14.41 kB / 372 MB, free: 17.98 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001836/0.263, allocations: 155.4 kB / 372.1 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.675e-05/0.2631, allocations: 40.09 kB / 372.2 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.676e-05/0.2631, allocations: 37.66 kB / 372.2 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.2631, allocations: 3.812 kB / 372.2 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.2632, allocations: 0 / 372.2 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005616/0.2637, allocations: 0.6582 MB / 372.9 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003818/0.2641, allocations: 383.4 kB / 373.2 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2641, allocations: 0 / 373.2 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001289/0.2654, allocations: 258.4 kB / 373.5 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.152e-05/0.2655, allocations: 23.05 kB / 373.5 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.2655, allocations: 6.344 kB / 373.5 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002304/0.2678, allocations: 2.903 MB / 376.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2679, allocations: 3.828 kB / 376.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008206/0.2687, allocations: 0.5114 MB / 376.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.2688, allocations: 143.7 kB / 377.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.675e-05/0.2689, allocations: 10.55 kB / 377.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/0.2691, allocations: 20.19 kB / 377.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.182e-05/0.2692, allocations: 21.73 kB / 377.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.07e-05/0.2692, allocations: 12.84 kB / 377.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001995/0.2695, allocations: 198 kB / 377.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2695, allocations: 0.9688 kB / 377.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000437/0.2699, allocations: 100.1 kB / 377.4 MB, free: 14.23 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001114/0.27, allocations: 107.7 kB / 377.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.2715, allocations: 0.589 MB / 378.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.2715, allocations: 1.125 kB / 378.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001294/0.2728, allocations: 457.5 kB / 378.6 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005248/0.2733, allocations: 89.03 kB / 378.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.2749, allocations: 1.036 MB / 379.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001897/0.2751, allocations: 0.778 MB / 380.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001581/0.2753, allocations: 34.97 kB / 380.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.426e-05/0.2753, allocations: 29.08 kB / 380.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2753, allocations: 0 / 380.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of Templates: time 0.009643/0.285, allocations: 5.485 MB / 386 MB, free: 11.72 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches