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.001095/0.001095, allocations: 198.1 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 227.2 MB / 245 MB, free: 5.871 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009081/0.0009081, allocations: 104.1 kB / 297.3 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002319/0.000232, allocations: 4 kB / 357.9 MB, free: 9.305 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2011, allocations: 51.49 MB / 409.4 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09025/0.2914, allocations: 80.13 MB / 489.5 MB, free: 10.46 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.2916, allocations: 75.97 kB / 489.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01535/0.307, allocations: 6.143 MB / 495.8 MB, free: 4.215 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.307, allocations: 0 / 495.8 MB, free: 4.215 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.3071, allocations: 8 kB / 495.8 MB, free: 4.207 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.0009722/0.308, allocations: 0.6288 MB / 496.4 MB, free: 3.523 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.3081, allocations: 12.03 kB / 496.4 MB, free: 3.512 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.029e-05/0.3082, allocations: 35.62 kB / 496.4 MB, free: 3.477 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003386/0.3085, allocations: 294.9 kB / 496.7 MB, free: 3.148 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.835e-05/0.3086, allocations: 50.09 kB / 496.8 MB, free: 3.094 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.879e-05/0.3087, allocations: 24 kB / 496.8 MB, free: 3.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004743/0.3092, allocations: 313.5 kB / 497.1 MB, free: 2.723 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.3092, allocations: 4 kB / 497.1 MB, free: 2.719 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.115e-05/0.3092, allocations: 11.98 kB / 497.1 MB, free: 2.707 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.3092, allocations: 8 kB / 497.1 MB, free: 2.699 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003921/0.3096, allocations: 201.6 kB / 497.3 MB, free: 2.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.3109, allocations: 0.8065 MB / 498.1 MB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006638/0.3116, allocations: 317.4 kB / 498.4 MB, free: 1.328 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.3117, allocations: 15.92 kB / 498.5 MB, free: 1.312 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.163e-05/0.3117, allocations: 34.56 kB / 498.5 MB, free: 1.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.553e-06/0.3117, allocations: 4 kB / 498.5 MB, free: 1.266 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009563/0.3127, allocations: 487.8 kB / 499 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.3128, allocations: 316.4 kB / 499.3 MB, free: 388 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002359/0.313, allocations: 250.1 kB / 499.5 MB, free: 128 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.3131, allocations: 33.7 kB / 499.6 MB, free: 88 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.3132, allocations: 172.7 kB / 499.7 MB, free: 15.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.729e-05/0.3133, allocations: 102.5 kB / 499.8 MB, free: 15.81 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.464e-05/0.3133, allocations: 4 kB / 499.8 MB, free: 15.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.3134, allocations: 338.8 kB / 0.4884 GB, free: 15.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001937/0.3136, allocations: 99.95 kB / 0.4885 GB, free: 15.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002963/0.3139, allocations: 212.1 kB / 0.4887 GB, free: 15.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002328/0.3142, allocations: 143 kB / 0.4889 GB, free: 14.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.3142, allocations: 3.953 kB / 0.4889 GB, free: 14.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005986/0.3148, allocations: 385.8 kB / 0.4892 GB, free: 14.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.09e-05/0.3148, allocations: 29.7 kB / 0.4893 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.3148, allocations: 0 / 0.4893 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001437/0.315, allocations: 40.94 kB / 0.4893 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/0.316, allocations: 207.8 kB / 0.4895 GB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003432/0.3195, allocations: 3.11 MB / 0.4925 GB, free: 10.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002326/0.3197, allocations: 31.8 kB / 0.4926 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.625e-05/0.3198, allocations: 11.98 kB / 0.4926 GB, free: 10.88 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.0001693/0.3199, allocations: 157.7 kB / 0.4927 GB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.879e-05/0.32, allocations: 35.62 kB / 0.4928 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.956e-05/0.3201, allocations: 39.08 kB / 0.4928 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3201, allocations: 0 / 0.4928 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.3201, allocations: 4 kB / 0.4928 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006406/0.3207, allocations: 0.6588 MB / 0.4935 GB, free: 9.871 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004387/0.3212, allocations: 393.2 kB / 0.4938 GB, free: 9.438 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3212, allocations: 0 / 0.4938 GB, free: 9.438 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/0.3226, allocations: 243.8 kB / 0.4941 GB, free: 9.199 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.09e-05/0.3226, allocations: 28.84 kB / 0.4941 GB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.962e-05/0.3227, allocations: 4 kB / 0.4941 GB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003026/0.3257, allocations: 2.949 MB / 0.497 GB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3257, allocations: 3.938 kB / 0.497 GB, free: 5.945 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007948/0.3265, allocations: 0.5275 MB / 0.4975 GB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001416/0.3267, allocations: 132.7 kB / 0.4976 GB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.994e-05/0.3267, allocations: 8 kB / 0.4976 GB, free: 5.242 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.3269, allocations: 16.36 kB / 0.4976 GB, free: 5.227 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.007e-05/0.327, allocations: 23.97 kB / 0.4977 GB, free: 5.203 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.327, allocations: 11.98 kB / 0.4977 GB, free: 5.191 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001913/0.3272, allocations: 202 kB / 0.4979 GB, free: 4.992 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3272, allocations: 0 / 0.4979 GB, free: 4.992 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004136/0.3277, allocations: 111.8 kB / 0.498 GB, free: 4.883 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.000181/0.3279, allocations: 119.2 kB / 0.4981 GB, free: 4.754 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001387/0.3293, allocations: 0.5644 MB / 0.4986 GB, free: 4.164 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3293, allocations: 4 kB / 0.4986 GB, free: 4.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001307/0.3306, allocations: 422.4 kB / 0.499 GB, free: 3.734 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004132/0.331, allocations: 93.98 kB / 0.4991 GB, free: 3.645 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001639/0.3327, allocations: 1.025 MB / 0.5001 GB, free: 2.598 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.333, allocations: 0.7838 MB / 0.5009 GB, free: 1.785 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001452/0.3331, allocations: 30.95 kB / 0.5009 GB, free: 1.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.451e-05/0.3332, allocations: 31.44 kB / 0.501 GB, free: 1.719 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.3332, allocations: 0 / 0.501 GB, free: 1.719 MB / 378.7 MB Notification: Performance of Templates: time 0.1632/0.4964, allocations: 5.458 MB / 0.5063 GB, free: 95.59 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/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