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.001086/0.001086, allocations: 200.9 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 226.5 MB / 245.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007797/0.0007798, allocations: 109.4 kB / 297.5 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003628/0.0003629, allocations: 4 kB / 358.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2532, allocations: 51.3 MB / 409.4 MB, free: 27.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7691/1.022, allocations: 322.4 MB / 0.7146 GB, free: 149.2 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003123/1.023, allocations: 82.45 kB / 0.7147 GB, free: 149.1 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2762/1.299, allocations: 133.9 MB / 0.8454 GB, free: 14.14 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.244e-06/1.299, allocations: 0 / 0.8454 GB, free: 14.14 MB / 458.7 MB Notification: Performance of Transformations before backend: time 5.636e-05/1.299, allocations: 24 kB / 0.8454 GB, free: 14.11 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.002403/1.301, allocations: 1.181 MB / 0.8466 GB, free: 12.88 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/1.301, allocations: 8.031 kB / 0.8466 GB, free: 12.88 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002722/1.302, allocations: 99.89 kB / 0.8467 GB, free: 12.78 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/1.303, allocations: 0.6761 MB / 0.8473 GB, free: 12.06 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.609e-05/1.303, allocations: 101.3 kB / 0.8474 GB, free: 11.95 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.606e-05/1.303, allocations: 56.73 kB / 0.8475 GB, free: 11.89 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001234/1.304, allocations: 0.9048 MB / 0.8484 GB, free: 10.96 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.238e-05/1.304, allocations: 0 / 0.8484 GB, free: 10.96 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.373e-05/1.304, allocations: 19.98 kB / 0.8484 GB, free: 10.94 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.323e-05/1.304, allocations: 53.28 kB / 0.8484 GB, free: 10.89 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/1.306, allocations: 0.8288 MB / 0.8493 GB, free: 10.06 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004864/1.311, allocations: 3.288 MB / 0.8525 GB, free: 6.613 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008291/1.311, allocations: 0.6686 MB / 0.8531 GB, free: 5.934 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004491/1.312, allocations: 366.3 kB / 0.8535 GB, free: 5.574 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002319/1.314, allocations: 2.031 MB / 0.8554 GB, free: 3.352 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/1.314, allocations: 43.06 kB / 0.8555 GB, free: 3.301 MB / 458.7 MB Notification: Performance of pre-optimization done (n=56): time 2.545e-06/1.314, allocations: 0 / 0.8555 GB, free: 3.301 MB / 458.7 MB Notification: Performance of matching and sorting (n=66): time 0.005998/1.32, allocations: 2.874 MB / 0.8583 GB, free: 368 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/1.32, allocations: 89.67 kB / 0.8584 GB, free: 256 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2436/1.564, allocations: 0.6653 MB / 0.859 GB, free: 104.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002729/1.564, allocations: 38.73 kB / 0.8591 GB, free: 104.6 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003639/1.565, allocations: 335.5 kB / 0.8594 GB, free: 104.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003723/1.565, allocations: 229.2 kB / 0.8596 GB, free: 104.5 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.792e-05/1.565, allocations: 14.16 kB / 0.8596 GB, free: 104.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002173/1.565, allocations: 389.2 kB / 0.86 GB, free: 104.2 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/1.566, allocations: 356 kB / 0.8603 GB, free: 104.2 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/1.567, allocations: 0.505 MB / 0.8608 GB, free: 104 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001722/1.569, allocations: 0.8442 MB / 0.8616 GB, free: 103.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/1.569, allocations: 0 / 0.8616 GB, free: 103.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002797/1.572, allocations: 1.138 MB / 0.8628 GB, free: 103.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001232/1.572, allocations: 214.9 kB / 0.863 GB, free: 103.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.35e-05/1.572, allocations: 3.812 kB / 0.863 GB, free: 103.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001684/1.574, allocations: 439.9 kB / 0.8634 GB, free: 103.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009086/1.575, allocations: 159.7 kB / 0.8635 GB, free: 103.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001754/1.577, allocations: 1.022 MB / 0.8645 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/1.578, allocations: 47.73 kB / 0.8646 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/1.578, allocations: 36.47 kB / 0.8646 GB, free: 103 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/1.578, allocations: 4.125 kB / 0.8646 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003104/1.581, allocations: 0.9908 MB / 0.8656 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.302e-05/1.581, allocations: 4.344 kB / 0.8656 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001353/1.583, allocations: 313.4 kB / 0.8659 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/1.584, allocations: 171.5 kB / 0.8661 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/1.585, allocations: 0.9097 MB / 0.8669 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001278/1.586, allocations: 39.12 kB / 0.867 GB, free: 102.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/1.586, allocations: 30.42 kB / 0.867 GB, free: 102.5 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.0008506/1.587, allocations: 334.6 kB / 0.8673 GB, free: 102.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003645/1.588, allocations: 84.16 kB / 0.8674 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003057/1.591, allocations: 1.084 MB / 0.8685 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.558e-05/1.591, allocations: 11.31 kB / 0.8685 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.475e-05/1.591, allocations: 4.203 kB / 0.8685 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.276e-05/1.591, allocations: 5.719 kB / 0.8685 GB, free: 102.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004632/1.596, allocations: 2.002 MB / 0.8704 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/1.596, allocations: 0 / 0.8704 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008169/1.596, allocations: 117.9 kB / 0.8706 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001784/1.598, allocations: 448.9 kB / 0.871 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.894e-05/1.598, allocations: 17.53 kB / 0.871 GB, free: 101.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001464/1.6, allocations: 1.032 MB / 0.872 GB, free: 101.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/1.6, allocations: 3.75 kB / 0.872 GB, free: 101.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003698/1.604, allocations: 1.593 MB / 0.8736 GB, free: 101.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007091/1.604, allocations: 251 kB / 0.8738 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002856/1.605, allocations: 14.5 kB / 0.8738 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/1.606, allocations: 44.3 kB / 0.8739 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002081/1.606, allocations: 61.36 kB / 0.8739 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/1.606, allocations: 32.67 kB / 0.874 GB, free: 101 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009641/1.607, allocations: 475.3 kB / 0.8744 GB, free: 100.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.9e-07/1.607, allocations: 1.594 kB / 0.8744 GB, free: 100.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002468/1.609, allocations: 0.6439 MB / 0.875 GB, free: 100.9 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.002293/1.612, allocations: 0.5946 MB / 0.8756 GB, free: 100.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004348/1.616, allocations: 1.377 MB / 0.877 GB, free: 100.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/1.616, allocations: 3.781 kB / 0.877 GB, free: 100.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001502/1.618, allocations: 465.7 kB / 0.8774 GB, free: 100.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003408/1.621, allocations: 366.2 kB / 0.8778 GB, free: 100.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005506/1.627, allocations: 2.032 MB / 0.8797 GB, free: 100 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008182/1.628, allocations: 0.997 MB / 0.8807 GB, free: 99.33 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002072/1.63, allocations: 306 kB / 0.881 GB, free: 99.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003533/1.63, allocations: 73.84 kB / 0.8811 GB, free: 99.31 MB / 458.7 MB Notification: Performance of SimCode: time 2.054e-06/1.63, allocations: 3.594 kB / 0.8811 GB, free: 99.31 MB / 458.7 MB Notification: Performance of Templates: time 0.04946/1.679, allocations: 22.23 MB / 0.9028 GB, free: 98.49 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/jenkins1/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