Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002165/0.002165, allocations: 202.9 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.652/2.652, allocations: 226.5 MB / 245.4 MB, free: 6.438 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.005424/0.005424, allocations: 104.2 kB / 297.4 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004183/0.0004186, allocations: 8 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4899/0.4903, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1575/0.6479, allocations: 80.06 MB / 488.7 MB, free: 11.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003545/0.6484, allocations: 75.95 kB / 488.8 MB, free: 11.47 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02591/0.6743, allocations: 6.135 MB / 494.9 MB, free: 5.312 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.859e-06/0.6743, allocations: 0 / 494.9 MB, free: 5.312 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.684e-05/0.6744, allocations: 11.94 kB / 494.9 MB, free: 5.301 MB / 362.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.001323/0.6757, allocations: 0.6251 MB / 495.6 MB, free: 4.617 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.6758, allocations: 8.031 kB / 495.6 MB, free: 4.609 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.6759, allocations: 44.55 kB / 495.6 MB, free: 4.566 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005177/0.6764, allocations: 291.5 kB / 495.9 MB, free: 4.242 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001404/0.6766, allocations: 50.7 kB / 495.9 MB, free: 4.188 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.561e-05/0.6767, allocations: 24.28 kB / 496 MB, free: 4.164 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007738/0.6775, allocations: 318.1 kB / 496.3 MB, free: 3.812 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.571e-05/0.6775, allocations: 7.938 kB / 496.3 MB, free: 3.805 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.702e-05/0.6775, allocations: 8 kB / 496.3 MB, free: 3.797 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.014e-05/0.6776, allocations: 8 kB / 496.3 MB, free: 3.789 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006685/0.6783, allocations: 209.6 kB / 496.5 MB, free: 3.582 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002103/0.6804, allocations: 0.8065 MB / 497.3 MB, free: 2.727 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000849/0.6813, allocations: 290.9 kB / 497.6 MB, free: 2.434 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003759/0.6817, allocations: 116.9 kB / 497.7 MB, free: 2.316 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.131e-05/0.6817, allocations: 11.88 kB / 497.7 MB, free: 2.305 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.271e-05/0.6818, allocations: 46.55 kB / 497.8 MB, free: 2.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 4.589e-06/0.6818, allocations: 0 / 497.8 MB, free: 2.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.001996/0.6838, allocations: 496.9 kB / 498.3 MB, free: 1.738 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002078/0.6841, allocations: 316.4 kB / 498.6 MB, free: 1.355 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000556/0.6846, allocations: 279 kB / 498.8 MB, free: 1.078 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.417e-05/0.6847, allocations: 33.7 kB / 498.9 MB, free: 1.039 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.6849, allocations: 168.6 kB / 499 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.6851, allocations: 102.5 kB / 499.1 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.488e-05/0.6851, allocations: 8 kB / 499.1 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.6853, allocations: 342.8 kB / 499.5 MB, free: 428 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004005/0.6858, allocations: 99.7 kB / 499.6 MB, free: 328 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004896/0.6863, allocations: 208.8 kB / 499.8 MB, free: 72 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009002/0.6872, allocations: 276.4 kB / 0.4883 GB, free: 15.78 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.6872, allocations: 3.938 kB / 0.4883 GB, free: 15.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001199/0.6884, allocations: 373.6 kB / 0.4887 GB, free: 15.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.605e-05/0.6885, allocations: 29.7 kB / 0.4887 GB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.6885, allocations: 0 / 0.4887 GB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002278/0.6888, allocations: 48.77 kB / 0.4888 GB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001734/0.6905, allocations: 203.9 kB / 0.489 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005806/0.6963, allocations: 3.082 MB / 0.492 GB, free: 11.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004978/0.6969, allocations: 35.88 kB / 0.492 GB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.085e-05/0.697, allocations: 12 kB / 0.492 GB, free: 11.71 MB / 378.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 (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.0003406/0.6973, allocations: 145.8 kB / 0.4921 GB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.6974, allocations: 35.62 kB / 0.4922 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.6976, allocations: 43.2 kB / 0.4922 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.6976, allocations: 0 / 0.4922 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.6976, allocations: 8 kB / 0.4922 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001075/0.6987, allocations: 0.6659 MB / 0.4929 GB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007315/0.6994, allocations: 385.2 kB / 0.4933 GB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.6995, allocations: 0 / 0.4933 GB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001855/0.7013, allocations: 247.8 kB / 0.4935 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001303/0.7015, allocations: 33.41 kB / 0.4935 GB, free: 10 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.179e-05/0.7015, allocations: 11.94 kB / 0.4935 GB, free: 9.992 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004598/0.7061, allocations: 2.898 MB / 0.4964 GB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.7062, allocations: 3.938 kB / 0.4964 GB, free: 6.824 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.7079, allocations: 0.5194 MB / 0.4969 GB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003157/0.7082, allocations: 136.7 kB / 0.497 GB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.612e-05/0.7083, allocations: 7.984 kB / 0.497 GB, free: 6.125 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003622/0.7087, allocations: 16 kB / 0.497 GB, free: 6.109 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001566/0.7089, allocations: 27.95 kB / 0.4971 GB, free: 6.082 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.488e-05/0.7089, allocations: 4.094 kB / 0.4971 GB, free: 6.078 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003968/0.7093, allocations: 213.8 kB / 0.4973 GB, free: 5.867 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.7094, allocations: 0 / 0.4973 GB, free: 5.867 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008842/0.7103, allocations: 107.8 kB / 0.4974 GB, free: 5.762 MB / 378.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 (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.0003289/0.7106, allocations: 127.2 kB / 0.4975 GB, free: 5.629 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00261/0.7132, allocations: 0.5802 MB / 0.498 GB, free: 5.023 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/0.7133, allocations: 0 / 0.498 GB, free: 5.023 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002241/0.7155, allocations: 462.7 kB / 0.4985 GB, free: 4.559 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.7167, allocations: 77.31 kB / 0.4986 GB, free: 4.488 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003189/0.7199, allocations: 1.054 MB / 0.4996 GB, free: 3.402 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004806/0.7204, allocations: 0.7837 MB / 0.5004 GB, free: 2.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001472/0.7205, allocations: 31.44 kB / 0.5004 GB, free: 2.559 MB / 378.7 MB Notification: Performance of SimCode: time 1.392e-06/0.7206, allocations: 4 kB / 0.5004 GB, free: 2.555 MB / 378.7 MB Notification: Performance of Templates: time 0.3005/1.021, allocations: 6.721 MB / 0.507 GB, free: 95.33 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches