Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009587/0.0009588, allocations: 197.5 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.221/1.221, allocations: 227.2 MB / 245 MB, free: 7.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009007/0.0009009, allocations: 104 kB / 297.3 MB, free: 6.164 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002746/0.0002746, allocations: 4 kB / 357.9 MB, free: 9.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.254, allocations: 51.49 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7099/0.9639, allocations: 322.4 MB / 0.7146 GB, free: 146.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003364/0.9643, allocations: 82.23 kB / 0.7147 GB, free: 146.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2732/1.238, allocations: 134.6 MB / 0.8462 GB, free: 10.79 MB / 458.7 MB Notification: Performance of FrontEnd: time 8.72e-07/1.238, allocations: 0 / 0.8462 GB, free: 10.79 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.66e-05/1.238, allocations: 20 kB / 0.8462 GB, free: 10.77 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003474/1.241, allocations: 1.188 MB / 0.8474 GB, free: 9.527 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/1.241, allocations: 8.031 kB / 0.8474 GB, free: 9.52 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005971/1.242, allocations: 102.9 kB / 0.8475 GB, free: 9.418 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001612/1.243, allocations: 0.6558 MB / 0.8481 GB, free: 8.719 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/1.244, allocations: 112.6 kB / 0.8482 GB, free: 8.598 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000178/1.244, allocations: 51.98 kB / 0.8483 GB, free: 8.547 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/1.245, allocations: 0.8893 MB / 0.8491 GB, free: 7.629 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/1.245, allocations: 3.938 kB / 0.8491 GB, free: 7.625 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.328e-05/1.245, allocations: 23.98 kB / 0.8492 GB, free: 7.602 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.696e-05/1.245, allocations: 49.28 kB / 0.8492 GB, free: 7.551 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/1.247, allocations: 0.8326 MB / 0.85 GB, free: 6.719 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005266/1.252, allocations: 3.304 MB / 0.8532 GB, free: 3.262 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000843/1.253, allocations: 0.6618 MB / 0.8539 GB, free: 2.59 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002604/1.256, allocations: 2.039 MB / 0.8559 GB, free: 368 kB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/1.256, allocations: 47.06 kB / 0.8559 GB, free: 312 kB / 458.7 MB Notification: Performance of pre-optimization done (n=56): time 2.244e-06/1.256, allocations: 0 / 0.8559 GB, free: 312 kB / 458.7 MB Notification: Performance of matching and sorting (n=66): time 0.2562/1.512, allocations: 2.83 MB / 0.8587 GB, free: 103.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.367e-05/1.512, allocations: 85.14 kB / 0.8588 GB, free: 103.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009704/1.513, allocations: 0.5993 MB / 0.8594 GB, free: 103.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.606e-05/1.513, allocations: 42.36 kB / 0.8594 GB, free: 103.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002068/1.513, allocations: 330.8 kB / 0.8597 GB, free: 103 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/1.513, allocations: 231.6 kB / 0.8599 GB, free: 102.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-05/1.513, allocations: 18.39 kB / 0.8599 GB, free: 102.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/1.514, allocations: 386.1 kB / 0.8603 GB, free: 102.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005874/1.514, allocations: 359.5 kB / 0.8607 GB, free: 102.6 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006032/1.515, allocations: 0.5057 MB / 0.8612 GB, free: 102.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006404/1.515, allocations: 397.6 kB / 0.8615 GB, free: 102.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/1.515, allocations: 5.125 kB / 0.8615 GB, free: 102.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002218/1.518, allocations: 1.141 MB / 0.8627 GB, free: 102.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004647/1.518, allocations: 1.568 MB / 0.8642 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.817e-05/1.518, allocations: 7.875 kB / 0.8642 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001435/1.52, allocations: 439 kB / 0.8646 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006902/1.52, allocations: 161 kB / 0.8648 GB, free: 100.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/1.522, allocations: 1.021 MB / 0.8658 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008157/1.522, allocations: 48.92 kB / 0.8658 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.605e-05/1.523, allocations: 34.95 kB / 0.8658 GB, free: 100.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/1.523, allocations: 4.875 kB / 0.8658 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001575/1.524, allocations: 0.9963 MB / 0.8668 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/1.524, allocations: 3.969 kB / 0.8668 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006426/1.525, allocations: 307.1 kB / 0.8671 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006378/1.526, allocations: 168 kB / 0.8673 GB, free: 100.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/1.527, allocations: 0.9062 MB / 0.8682 GB, free: 99.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008265/1.527, allocations: 47.25 kB / 0.8682 GB, free: 99.58 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001435/1.528, allocations: 34.67 kB / 0.8682 GB, free: 99.58 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005923/1.528, allocations: 325.4 kB / 0.8685 GB, free: 99.39 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002006/1.528, allocations: 78.97 kB / 0.8686 GB, free: 99.36 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001847/1.53, allocations: 1.088 MB / 0.8697 GB, free: 99.29 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.521e-05/1.53, allocations: 14.92 kB / 0.8697 GB, free: 99.29 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/1.53, allocations: 6.578 kB / 0.8697 GB, free: 99.28 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/1.53, allocations: 6.844 kB / 0.8697 GB, free: 99.28 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003323/1.534, allocations: 1.998 MB / 0.8717 GB, free: 98.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.461e-06/1.534, allocations: 3.188 kB / 0.8717 GB, free: 98.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000577/1.534, allocations: 117.9 kB / 0.8718 GB, free: 98.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001123/1.535, allocations: 447.5 kB / 0.8722 GB, free: 98.95 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.999e-05/1.535, allocations: 21.45 kB / 0.8722 GB, free: 98.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009928/1.536, allocations: 1.03 MB / 0.8732 GB, free: 98.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/1.536, allocations: 6.062 kB / 0.8732 GB, free: 98.41 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002038/1.538, allocations: 1.585 MB / 0.8748 GB, free: 98.21 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004715/1.539, allocations: 252.7 kB / 0.875 GB, free: 98.08 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001618/1.539, allocations: 6.875 kB / 0.875 GB, free: 98.08 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006831/1.54, allocations: 59.33 kB / 0.8751 GB, free: 98.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/1.54, allocations: 63.86 kB / 0.8752 GB, free: 98.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.756e-05/1.54, allocations: 31.53 kB / 0.8752 GB, free: 98.07 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005741/1.541, allocations: 477.1 kB / 0.8756 GB, free: 97.98 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.01e-07/1.541, allocations: 0 / 0.8756 GB, free: 97.98 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002061/1.543, allocations: 0.6473 MB / 0.8763 GB, free: 97.98 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001106/1.544, allocations: 0.5972 MB / 0.8769 GB, free: 97.89 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002467/1.546, allocations: 1.377 MB / 0.8782 GB, free: 97.88 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/1.546, allocations: 6.406 kB / 0.8782 GB, free: 97.88 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008126/1.547, allocations: 463.6 kB / 0.8786 GB, free: 97.87 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001333/1.548, allocations: 358.3 kB / 0.879 GB, free: 97.86 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00289/1.551, allocations: 2.032 MB / 0.881 GB, free: 97.14 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/1.552, allocations: 1.01 MB / 0.882 GB, free: 96.44 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0009463/1.553, allocations: 308.9 kB / 0.8823 GB, free: 96.43 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/1.553, allocations: 74.06 kB / 0.8823 GB, free: 96.42 MB / 458.7 MB Notification: Performance of SimCode: time 6.81e-07/1.553, allocations: 0 / 0.8823 GB, free: 96.42 MB / 458.7 MB Notification: Performance of Templates: time 0.02629/1.579, allocations: 21.67 MB / 0.9035 GB, free: 95.6 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches