Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009647/0.0009644, allocations: 85.72 kB / 291.5 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003096/0.0003097, allocations: 8 kB / 351.1 MB, free: 15.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2793, allocations: 50.41 MB / 401.5 MB, free: 32.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8071/1.086, allocations: 321.5 MB / 0.7061 GB, free: 162.3 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000231/1.087, allocations: 86.28 kB / 0.7062 GB, free: 162.3 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2926/1.379, allocations: 134.8 MB / 0.8378 GB, free: 27.66 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.893e-06/1.379, allocations: 3.938 kB / 0.8378 GB, free: 27.66 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.427e-05/1.379, allocations: 20 kB / 0.8378 GB, free: 27.64 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.003597/1.383, allocations: 1.18 MB / 0.839 GB, free: 26.4 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/1.383, allocations: 8.031 kB / 0.839 GB, free: 26.39 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005533/1.384, allocations: 94.97 kB / 0.8391 GB, free: 26.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001601/1.385, allocations: 0.6635 MB / 0.8397 GB, free: 25.6 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001171/1.385, allocations: 112.7 kB / 0.8398 GB, free: 25.48 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001717/1.386, allocations: 51.98 kB / 0.8399 GB, free: 25.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001468/1.387, allocations: 0.8892 MB / 0.8408 GB, free: 24.51 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/1.387, allocations: 7.938 kB / 0.8408 GB, free: 24.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.981e-05/1.387, allocations: 27.98 kB / 0.8408 GB, free: 24.47 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.151e-05/1.387, allocations: 49.28 kB / 0.8408 GB, free: 24.42 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001181/1.388, allocations: 0.8288 MB / 0.8416 GB, free: 23.59 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004792/1.393, allocations: 3.307 MB / 0.8449 GB, free: 20.13 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000851/1.394, allocations: 0.657 MB / 0.8455 GB, free: 19.46 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002402/1.397, allocations: 2.039 MB / 0.8475 GB, free: 17.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.301e-05/1.397, allocations: 47.11 kB / 0.8476 GB, free: 17.18 MB / 458.7 MB Notification: Performance of pre-optimization done (n=56): time 2.104e-06/1.397, allocations: 0 / 0.8476 GB, free: 17.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=66): time 0.005804/1.402, allocations: 2.833 MB / 0.8503 GB, free: 14.28 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/1.402, allocations: 89.56 kB / 0.8504 GB, free: 14.17 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006327/1.403, allocations: 0.5971 MB / 0.851 GB, free: 13.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.091e-05/1.403, allocations: 41.7 kB / 0.851 GB, free: 13.52 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/1.403, allocations: 336.5 kB / 0.8513 GB, free: 13.19 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/1.403, allocations: 232.7 kB / 0.8516 GB, free: 12.96 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.31e-05/1.404, allocations: 16 kB / 0.8516 GB, free: 12.94 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001133/1.404, allocations: 382.8 kB / 0.8519 GB, free: 12.56 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004809/1.404, allocations: 349.8 kB / 0.8523 GB, free: 12.22 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005351/1.405, allocations: 0.5027 MB / 0.8528 GB, free: 11.66 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005215/1.405, allocations: 407 kB / 0.8532 GB, free: 11.26 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/1.405, allocations: 4 kB / 0.8532 GB, free: 11.26 MB / 458.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001575/1.407, allocations: 1.141 MB / 0.8543 GB, free: 10.11 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003018/1.407, allocations: 1.57 MB / 0.8558 GB, free: 8.414 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/1.407, allocations: 4 kB / 0.8558 GB, free: 8.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/1.408, allocations: 440.5 kB / 0.8562 GB, free: 7.977 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000624/1.409, allocations: 167.7 kB / 0.8564 GB, free: 7.812 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000955/1.41, allocations: 1.009 MB / 0.8574 GB, free: 6.777 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000667/1.411, allocations: 47.92 kB / 0.8574 GB, free: 6.73 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.166e-05/1.411, allocations: 35.98 kB / 0.8575 GB, free: 6.695 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/1.411, allocations: 4 kB / 0.8575 GB, free: 6.691 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001429/1.412, allocations: 0.9922 MB / 0.8584 GB, free: 5.695 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/1.412, allocations: 4 kB / 0.8584 GB, free: 5.691 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000613/1.413, allocations: 316.8 kB / 0.8587 GB, free: 5.379 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005863/1.413, allocations: 163.8 kB / 0.8589 GB, free: 5.219 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007868/1.414, allocations: 0.9187 MB / 0.8598 GB, free: 4.277 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006264/1.415, allocations: 43.95 kB / 0.8598 GB, free: 4.234 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.296e-05/1.415, allocations: 35.97 kB / 0.8599 GB, free: 4.199 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.0004368/1.415, allocations: 324.9 kB / 0.8602 GB, free: 3.871 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/1.415, allocations: 83.06 kB / 0.8603 GB, free: 3.789 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/1.417, allocations: 1.088 MB / 0.8613 GB, free: 2.688 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.273e-06/1.417, allocations: 8 kB / 0.8613 GB, free: 2.68 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/1.417, allocations: 0 / 0.8613 GB, free: 2.68 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/1.417, allocations: 3.984 kB / 0.8613 GB, free: 2.676 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002822/1.42, allocations: 2.013 MB / 0.8633 GB, free: 0.6016 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.269e-06/1.42, allocations: 3.953 kB / 0.8633 GB, free: 0.5977 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005613/1.421, allocations: 116 kB / 0.8634 GB, free: 496 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001217/1.422, allocations: 453.6 kB / 0.8638 GB, free: 40 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-05/1.422, allocations: 19.98 kB / 0.8639 GB, free: 20 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.28/1.702, allocations: 1.027 MB / 0.8649 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/1.702, allocations: 0.5 kB / 0.8649 GB, free: 108.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002866/1.705, allocations: 1.592 MB / 0.8664 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005196/1.705, allocations: 252.2 kB / 0.8667 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/1.705, allocations: 12.66 kB / 0.8667 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006422/1.706, allocations: 46.27 kB / 0.8667 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/1.706, allocations: 60 kB / 0.8668 GB, free: 108.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.942e-05/1.706, allocations: 29.12 kB / 0.8668 GB, free: 108.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005964/1.707, allocations: 473.8 kB / 0.8673 GB, free: 108 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.707, allocations: 0 / 0.8673 GB, free: 108 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001961/1.709, allocations: 0.6413 MB / 0.8679 GB, free: 108 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.00112/1.71, allocations: 0.5877 MB / 0.8685 GB, free: 107.9 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002628/1.713, allocations: 1.371 MB / 0.8698 GB, free: 107.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.713, allocations: 3.75 kB / 0.8698 GB, free: 107.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009113/1.714, allocations: 470.9 kB / 0.8702 GB, free: 107.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001511/1.715, allocations: 352 kB / 0.8706 GB, free: 107.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003815/1.719, allocations: 2.039 MB / 0.8726 GB, free: 107.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005145/1.72, allocations: 1.006 MB / 0.8736 GB, free: 106.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001305/1.721, allocations: 307.4 kB / 0.8738 GB, free: 106.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000214/1.721, allocations: 74.94 kB / 0.8739 GB, free: 106.4 MB / 458.7 MB Notification: Performance of SimCode: time 1.362e-06/1.721, allocations: 2.438 kB / 0.8739 GB, free: 106.4 MB / 458.7 MB Notification: Performance of Templates: time 0.03521/1.756, allocations: 21.62 MB / 0.895 GB, free: 105.9 MB / 458.7 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches