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.001469/0.001469, allocations: 118.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001844/0.001844, allocations: 202 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2493, allocations: 50.54 MB / 409.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003475/0.2528, allocations: 2.768 MB / 412 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.2542, allocations: 0.849 MB / 412.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001285/0.2543, allocations: 4 kB / 412.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002793/0.2546, allocations: 75.41 kB / 412.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002767/0.2549, allocations: 134.9 kB / 413.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.2551, allocations: 87.89 kB / 413.1 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004712/0.2556, allocations: 454.2 kB / 413.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001971/0.2558, allocations: 95.34 kB / 413.7 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.256, allocations: 151.5 kB / 413.8 MB, free: 13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002446/0.2562, allocations: 183.2 kB / 414 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.432e-05/0.2563, allocations: 36 kB / 414 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.858e-05/0.2564, allocations: 43.94 kB / 414.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.91e-05/0.2565, allocations: 71.75 kB / 414.1 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001854/0.2567, allocations: 191.1 kB / 414.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004119/0.2571, allocations: 443.6 kB / 414.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2571, allocations: 0 / 414.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.2571, allocations: 0 / 414.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.2571, allocations: 0 / 414.8 MB, free: 12.05 MB / 334.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.001024/0.2581, allocations: 0.6756 MB / 415.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.2582, allocations: 12.03 kB / 415.5 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.173e-05/0.2583, allocations: 44.47 kB / 415.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003659/0.2587, allocations: 303.4 kB / 415.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.545e-05/0.2588, allocations: 46.7 kB / 415.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.517e-05/0.2588, allocations: 24.31 kB / 415.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005035/0.2593, allocations: 325.6 kB / 416.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.2593, allocations: 4 kB / 416.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.2594, allocations: 12 kB / 416.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.2594, allocations: 4 kB / 416.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000409/0.2598, allocations: 201.6 kB / 416.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001313/0.2611, allocations: 0.8063 MB / 417.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005464/0.2617, allocations: 266.9 kB / 417.5 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/0.2619, allocations: 124.8 kB / 417.6 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.711e-05/0.262, allocations: 4 kB / 417.6 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.262, allocations: 38.56 kB / 417.6 MB, free: 8.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.542e-06/0.262, allocations: 0 / 417.6 MB, free: 8.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001004/0.263, allocations: 495.2 kB / 418.1 MB, free: 8.473 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/0.2632, allocations: 316.4 kB / 418.4 MB, free: 8.09 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.2634, allocations: 283 kB / 418.7 MB, free: 7.805 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.153e-05/0.2635, allocations: 29.7 kB / 418.7 MB, free: 7.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.2636, allocations: 168.8 kB / 418.9 MB, free: 7.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.708e-05/0.2637, allocations: 110.4 kB / 419 MB, free: 7.492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.2638, allocations: 65.69 kB / 419.1 MB, free: 7.422 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.2639, allocations: 342.8 kB / 419.4 MB, free: 7.078 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.2641, allocations: 91.95 kB / 419.5 MB, free: 6.988 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000272/0.2644, allocations: 212.2 kB / 419.7 MB, free: 6.734 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004176/0.2648, allocations: 264.3 kB / 420 MB, free: 6.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2648, allocations: 0 / 420 MB, free: 6.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005778/0.2654, allocations: 369.6 kB / 420.3 MB, free: 6.086 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.082e-05/0.2655, allocations: 37.69 kB / 420.4 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.2655, allocations: 0 / 420.4 MB, free: 6.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001635/0.2656, allocations: 40.84 kB / 420.4 MB, free: 6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009535/0.2666, allocations: 159.9 kB / 420.5 MB, free: 5.844 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003339/0.2699, allocations: 3.228 MB / 423.8 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000262/0.2702, allocations: 31.81 kB / 423.8 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.471e-05/0.2703, allocations: 12 kB / 423.8 MB, free: 2.289 MB / 334.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.0001664/0.2704, allocations: 165.6 kB / 424 MB, free: 2.117 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.334e-05/0.2705, allocations: 35.62 kB / 424 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.535e-05/0.2706, allocations: 35.08 kB / 424 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2706, allocations: 4 kB / 424.1 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-06/0.2706, allocations: 192 / 424.1 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006382/0.2712, allocations: 0.6501 MB / 424.7 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003882/0.2716, allocations: 397.2 kB / 425.1 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2716, allocations: 4 kB / 425.1 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001247/0.2729, allocations: 199.9 kB / 425.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.295e-05/0.273, allocations: 32.78 kB / 425.3 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.273, allocations: 96 / 425.3 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00293/0.2759, allocations: 3.038 MB / 428.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.276, allocations: 0 / 428.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000754/0.2767, allocations: 0.5166 MB / 428.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.2769, allocations: 140.9 kB / 429 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.235e-05/0.2769, allocations: 8 kB / 429 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002493/0.2772, allocations: 19.92 kB / 429 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.861e-05/0.2773, allocations: 27.95 kB / 429.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.2773, allocations: 7.984 kB / 429.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001805/0.2775, allocations: 202 kB / 429.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2775, allocations: 0 / 429.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003821/0.2779, allocations: 111.9 kB / 429.4 MB, free: 12.23 MB / 350.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.0001272/0.278, allocations: 108.3 kB / 429.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001424/0.2794, allocations: 0.5369 MB / 430 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2794, allocations: 0 / 430 MB, free: 11.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001337/0.2808, allocations: 398.3 kB / 430.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004701/0.2813, allocations: 84.55 kB / 430.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001539/0.2828, allocations: 0.8583 MB / 431.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.2831, allocations: 0.776 MB / 432.1 MB, free: 9.383 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001354/0.2833, allocations: 38.95 kB / 432.2 MB, free: 9.344 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.093e-05/0.2833, allocations: 27.44 kB / 432.2 MB, free: 9.316 MB / 350.1 MB Notification: Performance of SimCode: time 2.364e-06/0.2833, allocations: 0 / 432.2 MB, free: 9.316 MB / 350.1 MB Notification: Performance of Templates: time 0.0102/0.2936, allocations: 6.27 MB / 438.5 MB, free: 3.148 MB / 350.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