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.000955/0.0009551, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 225.6 MB / 234.8 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009759/0.0009759, allocations: 104.9 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.709e-05/1.721e-05, allocations: 0 / 343.7 MB, free: 8.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1025, allocations: 51.48 MB / 395.2 MB, free: 4.777 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9303/1.033, allocations: 321.6 MB / 0.7 GB, free: 35.75 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/1.033, allocations: 80.52 kB / 0.7001 GB, free: 35.71 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6159/1.649, allocations: 133.3 MB / 0.8303 GB, free: 80.23 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.655e-06/1.649, allocations: 0 / 0.8303 GB, free: 80.23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001237/1.649, allocations: 24.38 kB / 0.8303 GB, free: 80.2 MB / 442.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.003989/1.653, allocations: 1.093 MB / 0.8313 GB, free: 79.07 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/1.653, allocations: 8.031 kB / 0.8314 GB, free: 79.06 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007491/1.654, allocations: 102.6 kB / 0.8315 GB, free: 78.96 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/1.656, allocations: 0.6516 MB / 0.8321 GB, free: 78.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001117/1.656, allocations: 88.7 kB / 0.8322 GB, free: 78.19 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002074/1.656, allocations: 32 kB / 0.8322 GB, free: 78.16 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001413/1.658, allocations: 0.7483 MB / 0.8329 GB, free: 77.41 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/1.659, allocations: 0.8009 MB / 0.8337 GB, free: 76.57 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/1.659, allocations: 4 kB / 0.8337 GB, free: 76.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/1.659, allocations: 8 kB / 0.8337 GB, free: 76.56 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001081/1.659, allocations: 53.78 kB / 0.8338 GB, free: 76.51 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005637/1.665, allocations: 3.141 MB / 0.8368 GB, free: 73.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007686/1.666, allocations: 0.6208 MB / 0.8375 GB, free: 72.64 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004138/1.666, allocations: 350.4 kB / 0.8378 GB, free: 72.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002723/1.669, allocations: 2.006 MB / 0.8397 GB, free: 70.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/1.669, allocations: 43.11 kB / 0.8398 GB, free: 70.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=56): time 3.186e-06/1.669, allocations: 0 / 0.8398 GB, free: 70.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=66): time 0.007002/1.676, allocations: 2.467 MB / 0.8422 GB, free: 67.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/1.676, allocations: 85.67 kB / 0.8423 GB, free: 67.44 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006297/1.677, allocations: 446.1 kB / 0.8427 GB, free: 67 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.258e-05/1.677, allocations: 25.7 kB / 0.8427 GB, free: 66.96 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001792/1.677, allocations: 355.9 kB / 0.8431 GB, free: 66.61 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/1.677, allocations: 212.8 kB / 0.8433 GB, free: 66.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.345e-05/1.677, allocations: 0 / 0.8433 GB, free: 66.4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/1.677, allocations: 378.8 kB / 0.8436 GB, free: 66.02 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004164/1.678, allocations: 333.4 kB / 0.844 GB, free: 65.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000458/1.678, allocations: 495.1 kB / 0.8444 GB, free: 65.15 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002327/1.681, allocations: 0.7226 MB / 0.8451 GB, free: 64.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/1.681, allocations: 4 kB / 0.8451 GB, free: 64.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.003408/1.684, allocations: 1.402 MB / 0.8465 GB, free: 63.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003876/1.685, allocations: 1.575 MB / 0.848 GB, free: 61.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/1.685, allocations: 4 kB / 0.848 GB, free: 61.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008333/1.685, allocations: 365.1 kB / 0.8484 GB, free: 60.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006127/1.686, allocations: 155.7 kB / 0.8485 GB, free: 60.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001919/1.688, allocations: 1.214 MB / 0.8497 GB, free: 59.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007688/1.689, allocations: 39.89 kB / 0.8498 GB, free: 59.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.483e-05/1.689, allocations: 35.98 kB / 0.8498 GB, free: 59.49 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/1.689, allocations: 7.938 kB / 0.8498 GB, free: 59.48 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003021/1.692, allocations: 1.225 MB / 0.851 GB, free: 58.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/1.692, allocations: 4 kB / 0.851 GB, free: 58.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006084/1.693, allocations: 308.6 kB / 0.8513 GB, free: 57.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000592/1.693, allocations: 171.7 kB / 0.8515 GB, free: 57.78 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001412/1.695, allocations: 1.07 MB / 0.8525 GB, free: 56.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006842/1.695, allocations: 24.02 kB / 0.8525 GB, free: 56.66 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.464e-05/1.695, allocations: 39.98 kB / 0.8526 GB, free: 56.62 MB / 442.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.000265/1.696, allocations: 128.7 kB / 0.8527 GB, free: 56.49 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/1.696, allocations: 67.16 kB / 0.8528 GB, free: 56.42 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002707/1.699, allocations: 1.185 MB / 0.8539 GB, free: 55.23 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/1.699, allocations: 8 kB / 0.8539 GB, free: 55.22 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/1.699, allocations: 0 / 0.8539 GB, free: 55.22 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/1.699, allocations: 3.984 kB / 0.8539 GB, free: 55.21 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003716/1.702, allocations: 2.024 MB / 0.8559 GB, free: 53.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/1.702, allocations: 4 kB / 0.8559 GB, free: 53.15 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005221/1.703, allocations: 119.8 kB / 0.856 GB, free: 53.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007467/1.704, allocations: 370.7 kB / 0.8564 GB, free: 52.67 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.632e-05/1.704, allocations: 11.98 kB / 0.8564 GB, free: 52.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001726/1.705, allocations: 1.216 MB / 0.8576 GB, free: 51.42 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/1.705, allocations: 0 / 0.8576 GB, free: 51.42 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002822/1.708, allocations: 1.693 MB / 0.8592 GB, free: 49.71 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004333/1.709, allocations: 240.1 kB / 0.8595 GB, free: 49.45 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001735/1.709, allocations: 0 / 0.8595 GB, free: 49.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006639/1.71, allocations: 35.88 kB / 0.8595 GB, free: 49.42 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/1.71, allocations: 60.69 kB / 0.8595 GB, free: 49.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.928e-05/1.71, allocations: 23.98 kB / 0.8596 GB, free: 49.34 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004488/1.71, allocations: 342.9 kB / 0.8599 GB, free: 49 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.71, allocations: 0 / 0.8599 GB, free: 49 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002332/1.713, allocations: 0.601 MB / 0.8605 GB, free: 48.4 MB / 442.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.001831/1.714, allocations: 0.5985 MB / 0.8611 GB, free: 47.83 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002398/1.717, allocations: 1.312 MB / 0.8624 GB, free: 46.52 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/1.717, allocations: 0 / 0.8624 GB, free: 46.52 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007389/1.718, allocations: 446.7 kB / 0.8628 GB, free: 46.08 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001542/1.719, allocations: 311.9 kB / 0.8631 GB, free: 45.79 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002841/1.722, allocations: 1.296 MB / 0.8643 GB, free: 44.45 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000452/1.723, allocations: 1.011 MB / 0.8653 GB, free: 43.41 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001182/1.724, allocations: 310.4 kB / 0.8656 GB, free: 43.11 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001767/1.724, allocations: 67.34 kB / 0.8657 GB, free: 43.04 MB / 442.7 MB Notification: Performance of SimCode: time 6.21e-07/1.724, allocations: 0 / 0.8657 GB, free: 43.04 MB / 442.7 MB Notification: Performance of Templates: time 0.03082/1.755, allocations: 20.23 MB / 0.8854 GB, free: 22.96 MB / 442.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