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.001287/0.001287, allocations: 97.34 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001715/0.001716, allocations: 200.9 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000214/0.0002141, allocations: 8 kB / 306.6 MB, free: 1.43 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09037/0.0906, allocations: 51.48 MB / 358.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002312/0.09294, allocations: 2.189 MB / 360.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001076/0.09404, allocations: 0.7718 MB / 361 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.09415, allocations: 4 kB / 361 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.0943, allocations: 43.67 kB / 361.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002673/0.09458, allocations: 155.6 kB / 361.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001503/0.09474, allocations: 75.84 kB / 361.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003676/0.09511, allocations: 291.8 kB / 361.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.09528, allocations: 82.12 kB / 361.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.09542, allocations: 135.5 kB / 361.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001847/0.09561, allocations: 151.4 kB / 361.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.031e-05/0.09566, allocations: 20 kB / 362 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.716e-05/0.09571, allocations: 24 kB / 362 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.993e-05/0.09578, allocations: 59.73 kB / 362 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.86e-05/0.09586, allocations: 97.52 kB / 362.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002465/0.09612, allocations: 299.4 kB / 362.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.874e-06/0.09613, allocations: 0 / 362.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.09613, allocations: 0 / 362.4 MB, free: 9.555 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.09614, allocations: 0 / 362.4 MB, free: 9.555 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.0009009/0.09705, allocations: 0.6209 MB / 363 MB, free: 8.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.09709, allocations: 8.031 kB / 363.1 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.826e-05/0.09718, allocations: 47.53 kB / 363.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003058/0.09749, allocations: 262.5 kB / 363.4 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.751e-05/0.09759, allocations: 58.08 kB / 363.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.921e-05/0.09764, allocations: 20 kB / 363.4 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000465/0.09811, allocations: 317.5 kB / 363.7 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.09813, allocations: 3.938 kB / 363.7 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.09817, allocations: 12 kB / 363.8 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.09818, allocations: 4 kB / 363.8 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004122/0.0986, allocations: 205.6 kB / 364 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.09989, allocations: 0.8025 MB / 364.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006519/0.1006, allocations: 304.1 kB / 365.1 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/0.1006, allocations: 4.094 kB / 365.1 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.1006, allocations: 46.5 kB / 365.1 MB, free: 6.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 4.388e-06/0.1006, allocations: 4 kB / 365.1 MB, free: 6.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009879/0.1016, allocations: 491.6 kB / 365.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/0.1018, allocations: 316.4 kB / 365.9 MB, free: 5.766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002422/0.102, allocations: 259 kB / 366.2 MB, free: 5.492 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.1021, allocations: 37.7 kB / 366.2 MB, free: 5.449 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.1022, allocations: 156.8 kB / 366.3 MB, free: 5.289 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.966e-05/0.1023, allocations: 118.3 kB / 366.5 MB, free: 5.172 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.518e-05/0.1023, allocations: 4 kB / 366.5 MB, free: 5.168 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1024, allocations: 342.8 kB / 366.8 MB, free: 4.824 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002038/0.1026, allocations: 103.7 kB / 366.9 MB, free: 4.723 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000285/0.1029, allocations: 204.2 kB / 367.1 MB, free: 4.477 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002422/0.1031, allocations: 151.8 kB / 367.2 MB, free: 4.324 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.1032, allocations: 0 / 367.2 MB, free: 4.324 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005842/0.1037, allocations: 369.9 kB / 367.6 MB, free: 3.949 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/0.1038, allocations: 33.7 kB / 367.6 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.1038, allocations: 0 / 367.6 MB, free: 3.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001496/0.104, allocations: 40.78 kB / 367.7 MB, free: 3.867 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009871/0.105, allocations: 199.9 kB / 367.9 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003442/0.1084, allocations: 3.114 MB / 371 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003003/0.1087, allocations: 35.78 kB / 371 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.55e-05/0.1088, allocations: 12 kB / 371 MB, free: 260 kB / 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.0001763/0.1089, allocations: 154.4 kB / 371.2 MB, free: 96 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.734e-05/0.109, allocations: 35.62 kB / 371.2 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.239e-05/0.1091, allocations: 43.08 kB / 371.3 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1091, allocations: 4 kB / 371.3 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.896e-06/0.1091, allocations: 96 / 371.3 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1686/0.2777, allocations: 0.6642 MB / 371.9 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006552/0.2784, allocations: 373 kB / 372.3 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.2785, allocations: 0.7031 kB / 372.3 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001478/0.2799, allocations: 252.2 kB / 372.5 MB, free: 18.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001181/0.2801, allocations: 24.95 kB / 372.6 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.842e-05/0.2801, allocations: 9.828 kB / 372.6 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00289/0.283, allocations: 2.924 MB / 375.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.283, allocations: 0.5 kB / 375.5 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008317/0.2839, allocations: 0.5177 MB / 376 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001372/0.284, allocations: 140.2 kB / 376.2 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.895e-05/0.2841, allocations: 7.438 kB / 376.2 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002561/0.2843, allocations: 20.31 kB / 376.2 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.337e-05/0.2844, allocations: 22.8 kB / 376.2 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/0.2844, allocations: 8.656 kB / 376.2 MB, free: 16.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001999/0.2847, allocations: 183.2 kB / 376.4 MB, free: 16.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2847, allocations: 3.938 kB / 376.4 MB, free: 16.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00046/0.2851, allocations: 104.1 kB / 376.5 MB, free: 16.01 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.0001518/0.2853, allocations: 106.6 kB / 376.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001741/0.287, allocations: 0.5782 MB / 377.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.287, allocations: 1.312 kB / 377.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001417/0.2885, allocations: 462.9 kB / 377.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.2889, allocations: 75.02 kB / 377.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001658/0.2906, allocations: 1.035 MB / 378.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000213/0.2908, allocations: 0.7824 MB / 379.5 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001634/0.291, allocations: 32.56 kB / 379.6 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.075e-05/0.2911, allocations: 24.55 kB / 379.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2911, allocations: 4 kB / 379.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of Templates: time 0.009682/0.3008, allocations: 5.22 MB / 384.8 MB, free: 13.65 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","../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches