Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001234/0.001234, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.457/1.457, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009083/0.0009083, allocations: 86.23 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.963e-05/1.965e-05, allocations: 4 kB / 315.5 MB, free: 22.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08918/0.08921, allocations: 47.59 MB / 363.1 MB, free: 7.09 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.876/0.9653, allocations: 320.5 MB / 0.6675 GB, free: 9.668 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/0.9655, allocations: 80.14 kB / 0.6676 GB, free: 9.629 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4687/1.434, allocations: 130.7 MB / 0.7952 GB, free: 75.36 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.074e-06/1.434, allocations: 4 kB / 0.7952 GB, free: 75.36 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.612e-05/1.434, allocations: 23.84 kB / 0.7952 GB, free: 75.34 MB / 426.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.003062/1.437, allocations: 1.079 MB / 0.7963 GB, free: 74.21 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/1.438, allocations: 12.03 kB / 0.7963 GB, free: 74.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006139/1.438, allocations: 98.91 kB / 0.7964 GB, free: 74.1 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/1.44, allocations: 0.6517 MB / 0.797 GB, free: 73.42 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001024/1.44, allocations: 84.7 kB / 0.7971 GB, free: 73.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001923/1.44, allocations: 32 kB / 0.7971 GB, free: 73.29 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001091/1.441, allocations: 0.7483 MB / 0.7978 GB, free: 72.54 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/1.442, allocations: 0.8047 MB / 0.7986 GB, free: 71.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/1.442, allocations: 0 / 0.7986 GB, free: 71.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.406e-05/1.442, allocations: 4 kB / 0.7986 GB, free: 71.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.381e-05/1.442, allocations: 49.28 kB / 0.7987 GB, free: 71.66 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004456/1.447, allocations: 3.16 MB / 0.8018 GB, free: 68.39 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006754/1.448, allocations: 0.6169 MB / 0.8024 GB, free: 67.76 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003673/1.448, allocations: 350.4 kB / 0.8027 GB, free: 67.42 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002269/1.45, allocations: 2.011 MB / 0.8047 GB, free: 65.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.568e-05/1.45, allocations: 39.12 kB / 0.8047 GB, free: 65.18 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 2.254e-06/1.45, allocations: 0 / 0.8047 GB, free: 65.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=66): time 0.006029/1.456, allocations: 2.467 MB / 0.8071 GB, free: 62.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/1.456, allocations: 85.66 kB / 0.8072 GB, free: 62.56 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004729/1.457, allocations: 450.1 kB / 0.8076 GB, free: 62.11 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.698e-05/1.457, allocations: 25.7 kB / 0.8077 GB, free: 62.08 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/1.457, allocations: 355.9 kB / 0.808 GB, free: 61.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001283/1.457, allocations: 212.8 kB / 0.8082 GB, free: 61.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.457e-05/1.457, allocations: 0 / 0.8082 GB, free: 61.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.535e-05/1.457, allocations: 378.8 kB / 0.8086 GB, free: 61.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003946/1.458, allocations: 333.4 kB / 0.8089 GB, free: 60.81 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004414/1.458, allocations: 491.1 kB / 0.8093 GB, free: 60.28 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003651/1.462, allocations: 0.9957 MB / 0.8103 GB, free: 59.28 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/1.462, allocations: 3.938 kB / 0.8103 GB, free: 59.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.004849/1.467, allocations: 1.671 MB / 0.812 GB, free: 57.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002744/1.467, allocations: 1.572 MB / 0.8135 GB, free: 55.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/1.467, allocations: 8 kB / 0.8135 GB, free: 55.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007345/1.468, allocations: 364.5 kB / 0.8138 GB, free: 55.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000599/1.468, allocations: 163.7 kB / 0.814 GB, free: 55.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001757/1.47, allocations: 1.22 MB / 0.8152 GB, free: 54.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006761/1.471, allocations: 31.91 kB / 0.8152 GB, free: 54.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-05/1.471, allocations: 35.94 kB / 0.8153 GB, free: 54.07 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/1.471, allocations: 4 kB / 0.8153 GB, free: 54.06 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004396/1.475, allocations: 1.499 MB / 0.8167 GB, free: 52.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/1.475, allocations: 4 kB / 0.8167 GB, free: 52.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005937/1.476, allocations: 312.7 kB / 0.817 GB, free: 52.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006187/1.477, allocations: 163.8 kB / 0.8172 GB, free: 52.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/1.478, allocations: 1.071 MB / 0.8182 GB, free: 50.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006325/1.479, allocations: 27.98 kB / 0.8183 GB, free: 50.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.394e-05/1.479, allocations: 31.94 kB / 0.8183 GB, free: 50.93 MB / 426.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 () * 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.0002172/1.479, allocations: 128.7 kB / 0.8184 GB, free: 50.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/1.479, allocations: 67.16 kB / 0.8185 GB, free: 50.73 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002533/1.482, allocations: 1.179 MB / 0.8196 GB, free: 49.54 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/1.482, allocations: 11.94 kB / 0.8196 GB, free: 49.53 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/1.482, allocations: 3.984 kB / 0.8196 GB, free: 49.52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/1.482, allocations: 3.938 kB / 0.8196 GB, free: 49.52 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003413/1.485, allocations: 2.032 MB / 0.8216 GB, free: 47.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/1.485, allocations: 3.953 kB / 0.8216 GB, free: 47.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005159/1.486, allocations: 115.9 kB / 0.8217 GB, free: 47.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006793/1.486, allocations: 368.6 kB / 0.8221 GB, free: 46.97 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.651e-05/1.486, allocations: 7.984 kB / 0.8221 GB, free: 46.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001619/1.488, allocations: 1.208 MB / 0.8233 GB, free: 45.73 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.488, allocations: 3.938 kB / 0.8233 GB, free: 45.73 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002813/1.491, allocations: 1.682 MB / 0.8249 GB, free: 44.02 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003792/1.491, allocations: 244.1 kB / 0.8252 GB, free: 43.77 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/1.491, allocations: 3.984 kB / 0.8252 GB, free: 43.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005522/1.492, allocations: 39.88 kB / 0.8252 GB, free: 43.72 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001275/1.492, allocations: 56.69 kB / 0.8253 GB, free: 43.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.114e-05/1.492, allocations: 27.98 kB / 0.8253 GB, free: 43.64 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004282/1.493, allocations: 338.9 kB / 0.8256 GB, free: 43.31 MB / 426.7 MB Notification: Performance of sort global known variables: time 3e-07/1.493, allocations: 0 / 0.8256 GB, free: 43.31 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001873/1.494, allocations: 0.5971 MB / 0.8262 GB, free: 42.71 MB / 426.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 () * 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.001104/1.496, allocations: 0.5979 MB / 0.8268 GB, free: 42.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002256/1.498, allocations: 1.313 MB / 0.8281 GB, free: 40.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/1.498, allocations: 0 / 0.8281 GB, free: 40.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007257/1.499, allocations: 454.7 kB / 0.8285 GB, free: 40.38 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/1.5, allocations: 309.1 kB / 0.8288 GB, free: 40.08 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002392/1.502, allocations: 1.296 MB / 0.83 GB, free: 38.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003501/1.503, allocations: 1.008 MB / 0.831 GB, free: 37.71 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001017/1.504, allocations: 317.9 kB / 0.8313 GB, free: 37.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/1.504, allocations: 63.41 kB / 0.8314 GB, free: 37.34 MB / 426.7 MB Notification: Performance of SimCode: time 7.82e-07/1.504, allocations: 0 / 0.8314 GB, free: 37.34 MB / 426.7 MB Notification: Performance of Templates: time 0.02557/1.53, allocations: 20.15 MB / 0.8511 GB, free: 17.18 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches