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/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_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/Complex trunk/package.mo): time 0.001556/0.001556, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 226.5 MB / 245.4 MB, free: 8.102 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008136/0.0008139, allocations: 99.5 kB / 297.5 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002242/0.0002242, allocations: 8 kB / 358.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1968/0.1971, allocations: 51.3 MB / 409.4 MB, free: 27.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09112/0.2882, allocations: 80.06 MB / 489.4 MB, free: 11.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002047/0.2885, allocations: 67.97 kB / 489.5 MB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01543/0.3039, allocations: 6.149 MB / 495.6 MB, free: 5.219 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3039, allocations: 4 kB / 495.6 MB, free: 5.215 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.429e-05/0.304, allocations: 4 kB / 495.6 MB, free: 5.211 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.0008193/0.3048, allocations: 0.625 MB / 496.3 MB, free: 4.527 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.137e-05/0.3048, allocations: 8.031 kB / 496.3 MB, free: 4.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.385e-05/0.3049, allocations: 40.56 kB / 496.3 MB, free: 4.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003128/0.3052, allocations: 295.5 kB / 496.6 MB, free: 4.152 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.54e-05/0.3053, allocations: 50.69 kB / 496.7 MB, free: 4.098 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.009e-05/0.3054, allocations: 24.28 kB / 496.7 MB, free: 4.074 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004634/0.3058, allocations: 318.1 kB / 497 MB, free: 3.723 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.3059, allocations: 3.938 kB / 497 MB, free: 3.719 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.899e-05/0.3059, allocations: 12 kB / 497 MB, free: 3.707 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.3059, allocations: 7.938 kB / 497 MB, free: 3.699 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004092/0.3063, allocations: 209.6 kB / 497.2 MB, free: 3.492 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001312/0.3077, allocations: 0.8065 MB / 498 MB, free: 2.637 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000543/0.3082, allocations: 294.9 kB / 498.3 MB, free: 2.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002221/0.3084, allocations: 120.8 kB / 498.4 MB, free: 2.219 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.016e-05/0.3085, allocations: 11.94 kB / 498.4 MB, free: 2.207 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.3085, allocations: 42.59 kB / 498.5 MB, free: 2.156 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.452e-06/0.3085, allocations: 0 / 498.5 MB, free: 2.156 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009726/0.3095, allocations: 488.1 kB / 499 MB, free: 1.652 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.3096, allocations: 320.4 kB / 499.3 MB, free: 1.266 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002678/0.3099, allocations: 279 kB / 499.6 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.31, allocations: 33.7 kB / 499.6 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.3101, allocations: 168.6 kB / 499.7 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.027e-05/0.3101, allocations: 106.5 kB / 499.9 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.465e-05/0.3102, allocations: 8 kB / 499.9 MB, free: 0.668 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3103, allocations: 338.8 kB / 0.4885 GB, free: 336 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.3105, allocations: 103.7 kB / 0.4886 GB, free: 232 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002985/0.3108, allocations: 212.6 kB / 0.4888 GB, free: 15.97 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004458/0.3113, allocations: 272.3 kB / 0.489 GB, free: 15.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.3113, allocations: 8.031 kB / 0.489 GB, free: 15.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006001/0.3119, allocations: 369.6 kB / 0.4894 GB, free: 15.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/0.3119, allocations: 37.64 kB / 0.4894 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.3119, allocations: 0 / 0.4894 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001514/0.3121, allocations: 40.94 kB / 0.4895 GB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009694/0.3131, allocations: 207.8 kB / 0.4897 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003308/0.3164, allocations: 3.078 MB / 0.4927 GB, free: 11.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002159/0.3166, allocations: 27.84 kB / 0.4927 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.431e-05/0.3167, allocations: 16.03 kB / 0.4927 GB, free: 11.63 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.0001629/0.3168, allocations: 153.8 kB / 0.4929 GB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.507e-05/0.3169, allocations: 31.62 kB / 0.4929 GB, free: 11.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.343e-05/0.317, allocations: 43.02 kB / 0.4929 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.317, allocations: 4 kB / 0.4929 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.317, allocations: 0 / 0.4929 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006399/0.3176, allocations: 0.6667 MB / 0.4936 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003713/0.318, allocations: 385.1 kB / 0.4939 GB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.318, allocations: 0 / 0.4939 GB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/0.3193, allocations: 255.7 kB / 0.4942 GB, free: 9.945 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.146e-05/0.3193, allocations: 21.47 kB / 0.4942 GB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.3194, allocations: 12.12 kB / 0.4942 GB, free: 9.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002692/0.3221, allocations: 2.906 MB / 0.4971 GB, free: 6.738 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3221, allocations: 3.938 kB / 0.4971 GB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007917/0.3229, allocations: 0.5195 MB / 0.4976 GB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001343/0.323, allocations: 132.7 kB / 0.4977 GB, free: 6.047 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.3231, allocations: 12 kB / 0.4977 GB, free: 6.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.3233, allocations: 19.98 kB / 0.4977 GB, free: 6.016 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.155e-05/0.3234, allocations: 19.97 kB / 0.4978 GB, free: 5.996 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.16e-05/0.3234, allocations: 15.98 kB / 0.4978 GB, free: 5.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001874/0.3236, allocations: 197.9 kB / 0.498 GB, free: 5.785 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3236, allocations: 4 kB / 0.498 GB, free: 5.781 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003966/0.324, allocations: 107.8 kB / 0.4981 GB, free: 5.676 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.0001726/0.3242, allocations: 121.6 kB / 0.4982 GB, free: 5.551 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.3257, allocations: 0.5918 MB / 0.4988 GB, free: 4.934 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.3257, allocations: 4 kB / 0.4988 GB, free: 4.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001358/0.327, allocations: 454.3 kB / 0.4992 GB, free: 4.473 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005148/0.3276, allocations: 76.55 kB / 0.4993 GB, free: 4.398 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.3292, allocations: 1.027 MB / 0.5003 GB, free: 3.344 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003781/0.3296, allocations: 0.7838 MB / 0.501 GB, free: 2.531 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000147/0.3298, allocations: 34.97 kB / 0.5011 GB, free: 2.496 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.343e-05/0.3299, allocations: 31.42 kB / 0.5011 GB, free: 2.465 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.3299, allocations: 0 / 0.5011 GB, free: 2.465 MB / 378.7 MB Notification: Performance of Templates: time 0.1576/0.4875, allocations: 5.588 MB / 0.5066 GB, free: 96.45 MB / 378.7 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/jenkins1/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