Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|valveDelayed.filter.x.1.|valveDelayed.filter.x.2.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve") translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|valveDelayed.filter.x.1.|valveDelayed.filter.x.2.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001631/0.001631, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.259/1.259, allocations: 225.4 MB / 240.1 MB, free: 15.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008315/0.0008316, allocations: 85.66 kB / 292.1 MB, free: 5.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1739/0.1739, allocations: 45.14 MB / 389.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.273e-05/2.275e-05, allocations: 7.984 kB / 460.4 MB, free: 70 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09013/0.09016, allocations: 63.24 MB / 0.5114 GB, free: 6.773 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7608/0.851, allocations: 353.2 MB / 0.8563 GB, free: 89.37 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002094/0.8513, allocations: 82.83 kB / 0.8564 GB, free: 89.32 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.063/1.914, allocations: 310.5 MB / 1.16 GB, free: 68.65 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.162e-06/1.914, allocations: 0 / 1.16 GB, free: 68.65 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001251/1.914, allocations: 44.95 kB / 1.16 GB, free: 68.65 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 291 * Number of variables: 291 Notification: Performance of Generate backend data structure: time 0.00479/1.919, allocations: 2.065 MB / 1.162 GB, free: 67.85 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/1.919, allocations: 13.44 kB / 1.162 GB, free: 67.84 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005951/1.92, allocations: 208.2 kB / 1.162 GB, free: 67.75 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002567/1.922, allocations: 1.276 MB / 1.163 GB, free: 67.45 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/1.922, allocations: 183.2 kB / 1.163 GB, free: 67.35 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002304/1.923, allocations: 123.3 kB / 1.163 GB, free: 67.35 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002814/1.925, allocations: 1.914 MB / 1.165 GB, free: 67.12 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.833e-05/1.925, allocations: 0.6562 kB / 1.165 GB, free: 67.12 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001613/1.926, allocations: 60.08 kB / 1.165 GB, free: 67.11 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001345/1.926, allocations: 110.2 kB / 1.165 GB, free: 67.11 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002706/1.928, allocations: 1.892 MB / 1.167 GB, free: 67.09 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0117/1.94, allocations: 6.99 MB / 1.174 GB, free: 64.91 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001787/1.942, allocations: 1.314 MB / 1.175 GB, free: 64.87 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/1.943, allocations: 0.784 MB / 1.176 GB, free: 64.86 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005814/1.949, allocations: 4.492 MB / 1.181 GB, free: 62.55 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/1.949, allocations: 52.23 kB / 1.181 GB, free: 62.51 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001029/1.95, allocations: 219.8 kB / 1.181 GB, free: 62.45 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=117): time 4.398e-06/1.95, allocations: 3.375 kB / 1.181 GB, free: 62.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=132): time 0.008517/1.958, allocations: 4.378 MB / 1.185 GB, free: 61.84 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.484e-05/1.958, allocations: 218 kB / 1.185 GB, free: 61.59 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001336/1.96, allocations: 1.192 MB / 1.187 GB, free: 61.41 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001123/1.96, allocations: 50.61 kB / 1.187 GB, free: 61.38 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003023/1.96, allocations: 0.6511 MB / 1.187 GB, free: 61.14 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002492/1.961, allocations: 459.5 kB / 1.188 GB, free: 60.86 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.299e-05/1.961, allocations: 31.59 kB / 1.188 GB, free: 60.86 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.103e-05/1.961, allocations: 370.3 kB / 1.188 GB, free: 60.55 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009274/1.962, allocations: 0.7333 MB / 1.189 GB, free: 60.55 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001044/1.963, allocations: 1.061 MB / 1.19 GB, free: 60.21 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/1.964, allocations: 0.8665 MB / 1.191 GB, free: 60.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/1.964, allocations: 3.969 kB / 1.191 GB, free: 60.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=199) (initialization): time 0.003249/1.967, allocations: 2.379 MB / 1.193 GB, free: 60.04 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005061/1.968, allocations: 3.025 MB / 1.196 GB, free: 56.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/1.968, allocations: 6.156 kB / 1.196 GB, free: 56.96 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006551/1.974, allocations: 1.462 MB / 1.197 GB, free: 56.95 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/1.975, allocations: 332.6 kB / 1.198 GB, free: 56.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002298/1.978, allocations: 1.696 MB / 1.199 GB, free: 56.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001562/1.979, allocations: 101.3 kB / 1.199 GB, free: 56.39 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001959/1.979, allocations: 79.2 kB / 1.199 GB, free: 56.39 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.071e-05/1.979, allocations: 4.031 kB / 1.199 GB, free: 56.39 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00302/1.982, allocations: 2.081 MB / 1.202 GB, free: 56.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.835e-05/1.983, allocations: 12.69 kB / 1.202 GB, free: 56.35 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004665/1.987, allocations: 1.037 MB / 1.203 GB, free: 56.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/1.988, allocations: 343 kB / 1.203 GB, free: 56.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/1.99, allocations: 1.417 MB / 1.204 GB, free: 55.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/1.992, allocations: 97.45 kB / 1.204 GB, free: 55.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001697/1.992, allocations: 75.12 kB / 1.204 GB, free: 55.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 162 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * 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 {10 23} Notification: Performance of prepare postOptimizeDAE: time 0.0003826/1.992, allocations: 199.2 kB / 1.205 GB, free: 55.68 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003682/1.993, allocations: 164.5 kB / 1.205 GB, free: 55.6 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004359/1.997, allocations: 2.459 MB / 1.207 GB, free: 55.48 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.17e-05/1.997, allocations: 17.73 kB / 1.207 GB, free: 55.48 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/1.997, allocations: 3.781 kB / 1.207 GB, free: 55.48 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.107e-05/1.997, allocations: 7.734 kB / 1.207 GB, free: 55.48 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006367/2.003, allocations: 4.03 MB / 1.211 GB, free: 55.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/2.003, allocations: 0 / 1.211 GB, free: 55.08 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009646/2.004, allocations: 234.2 kB / 1.211 GB, free: 55.08 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004176/2.009, allocations: 1.224 MB / 1.213 GB, free: 55.07 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001262/2.009, allocations: 43.14 kB / 1.213 GB, free: 55.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001973/2.011, allocations: 1.761 MB / 1.214 GB, free: 54.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/2.011, allocations: 3.75 kB / 1.214 GB, free: 54.51 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004292/2.015, allocations: 3.278 MB / 1.218 GB, free: 54.23 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00103/2.016, allocations: 455.7 kB / 1.218 GB, free: 54.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004644/2.017, allocations: 30.88 kB / 1.218 GB, free: 54.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001466/2.018, allocations: 107.2 kB / 1.218 GB, free: 54.03 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002294/2.018, allocations: 116 kB / 1.218 GB, free: 54.03 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001495/2.018, allocations: 57.19 kB / 1.218 GB, free: 54.03 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001278/2.02, allocations: 0.9006 MB / 1.219 GB, free: 53.91 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.3e-07/2.02, allocations: 0 / 1.219 GB, free: 53.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00441/2.024, allocations: 1.451 MB / 1.221 GB, free: 53.67 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level,valveDelayed.filter.x[1],valveDelayed.filter.x[2]) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 113 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {10 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.003274/2.027, allocations: 1.228 MB / 1.222 GB, free: 53.33 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00595/2.033, allocations: 3.1 MB / 1.225 GB, free: 53.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/2.033, allocations: 6.969 kB / 1.225 GB, free: 53.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001714/2.035, allocations: 0.9863 MB / 1.226 GB, free: 53.19 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003309/2.038, allocations: 0.694 MB / 1.226 GB, free: 53.18 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004969/2.043, allocations: 2.834 MB / 1.229 GB, free: 52.6 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007651/2.044, allocations: 1.417 MB / 1.231 GB, free: 51.88 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.002429/2.047, allocations: 0.7314 MB / 1.231 GB, free: 51.86 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003396/2.047, allocations: 129.4 kB / 1.231 GB, free: 51.86 MB / 0.5261 GB Notification: Performance of SimCode: time 7.01e-07/2.047, allocations: 0 / 1.231 GB, free: 51.86 MB / 0.5261 GB Notification: Performance of Templates: time 0.05992/2.107, allocations: 49.95 MB / 1.28 GB, free: 48.99 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Valves/TestDelayedValve/TestDelayedValve.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches