Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001025/0.001025, allocations: 200.5 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.5 MB / 243.4 MB, free: 6.359 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008631/0.0008632, allocations: 98.45 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3498/0.3498, allocations: 44.82 MB / 392.3 MB, free: 35.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004766/0.0004767, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3454, allocations: 62.96 MB / 0.5159 GB, free: 37.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve): time 0.02167/0.3671, allocations: 31.59 MB / 0.5467 GB, free: 14.59 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02147/0.3886, allocations: 18.12 MB / 0.5644 GB, free: 2.039 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002609/0.3913, allocations: 69.31 kB / 0.5645 GB, free: 2 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002254/0.3936, allocations: 0.5787 MB / 0.5651 GB, free: 1.691 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007915/0.4015, allocations: 2.494 MB / 0.5675 GB, free: 352 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0133/0.4149, allocations: 4.074 MB / 0.5715 GB, free: 13.84 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.008343/0.4232, allocations: 5.458 MB / 0.5768 GB, free: 10.6 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00237/0.4256, allocations: 1.127 MB / 0.5779 GB, free: 9.836 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003714/0.4294, allocations: 1.483 MB / 0.5794 GB, free: 8.348 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003486/0.4329, allocations: 1.713 MB / 0.581 GB, free: 6.629 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005797/0.4335, allocations: 96 kB / 0.5811 GB, free: 6.535 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006203/0.4397, allocations: 2.601 MB / 0.5837 GB, free: 3.93 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001182/0.4409, allocations: 0.5764 MB / 0.5842 GB, free: 3.352 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001519/0.4425, allocations: 0.8767 MB / 0.5851 GB, free: 2.465 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005123/0.4476, allocations: 3.017 MB / 0.588 GB, free: 15.44 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.4476, allocations: 0 / 0.588 GB, free: 15.44 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4476, allocations: 4 kB / 0.588 GB, free: 15.44 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.013e-05/0.4477, allocations: 0 / 0.588 GB, free: 15.44 MB / 410.7 MB 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.00523/0.4529, allocations: 2.131 MB / 0.5901 GB, free: 13.25 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.453, allocations: 16.03 kB / 0.5901 GB, free: 13.23 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006067/0.4536, allocations: 201.7 kB / 0.5903 GB, free: 13.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001915/0.4555, allocations: 1.118 MB / 0.5914 GB, free: 11.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001674/0.4557, allocations: 183.2 kB / 0.5916 GB, free: 11.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002167/0.4559, allocations: 115.9 kB / 0.5917 GB, free: 11.55 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003069/0.459, allocations: 1.923 MB / 0.5936 GB, free: 9.551 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.945e-05/0.4591, allocations: 0 / 0.5936 GB, free: 9.551 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001563/0.4592, allocations: 47.97 kB / 0.5936 GB, free: 9.504 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001528/0.4594, allocations: 118.2 kB / 0.5937 GB, free: 9.387 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003215/0.4626, allocations: 1.957 MB / 0.5956 GB, free: 7.418 MB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.01261/0.4752, allocations: 7.308 MB / 0.6028 GB, free: 15.74 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002141/0.4774, allocations: 1.403 MB / 0.6041 GB, free: 14.34 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001353/0.4788, allocations: 0.8494 MB / 0.605 GB, free: 13.49 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006318/0.4851, allocations: 4.525 MB / 0.6094 GB, free: 8.543 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.4852, allocations: 59.5 kB / 0.6094 GB, free: 8.477 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008162/0.486, allocations: 218.5 kB / 0.6097 GB, free: 8.262 MB / 426.7 MB Notification: Performance of pre-optimization done (n=118): time 3.136e-06/0.486, allocations: 4 kB / 0.6097 GB, free: 8.258 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.01962/0.5057, allocations: 6.673 MB / 0.6162 GB, free: 1.523 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.5058, allocations: 218.9 kB / 0.6164 GB, free: 1.258 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002013/0.5079, allocations: 1.367 MB / 0.6177 GB, free: 15.88 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001846/0.5081, allocations: 53.7 kB / 0.6178 GB, free: 15.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004823/0.5085, allocations: 0.6611 MB / 0.6184 GB, free: 15.15 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004231/0.509, allocations: 457.4 kB / 0.6189 GB, free: 14.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/0.5091, allocations: 32 kB / 0.6189 GB, free: 14.67 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.5093, allocations: 377.8 kB / 0.6192 GB, free: 14.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001406/0.5107, allocations: 0.8081 MB / 0.62 GB, free: 13.48 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001596/0.5123, allocations: 1.154 MB / 0.6212 GB, free: 12.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002926/0.5152, allocations: 1.925 MB / 0.623 GB, free: 10.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.5153, allocations: 0 / 0.623 GB, free: 10.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004631/0.5199, allocations: 2.574 MB / 0.6256 GB, free: 7.578 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002496/0.5202, allocations: 343.5 kB / 0.6259 GB, free: 7.133 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.768e-05/0.5202, allocations: 8 kB / 0.6259 GB, free: 7.125 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008696/0.5289, allocations: 1.704 MB / 0.6276 GB, free: 5.418 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001559/0.5305, allocations: 331.5 kB / 0.6279 GB, free: 5.094 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002925/0.5335, allocations: 1.774 MB / 0.6296 GB, free: 3.293 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001619/0.5351, allocations: 103.8 kB / 0.6297 GB, free: 3.191 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003084/0.5355, allocations: 79.95 kB / 0.6298 GB, free: 3.113 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.5355, allocations: 4 kB / 0.6298 GB, free: 3.109 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004195/0.5397, allocations: 2.261 MB / 0.632 GB, free: 0.8438 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.786e-05/0.5397, allocations: 8 kB / 0.632 GB, free: 0.8359 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005044/0.5448, allocations: 1.075 MB / 0.633 GB, free: 15.76 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001483/0.5463, allocations: 355.4 kB / 0.6334 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002106/0.5484, allocations: 1.47 MB / 0.6348 GB, free: 13.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001463/0.5499, allocations: 103.8 kB / 0.6349 GB, free: 13.81 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002665/0.5502, allocations: 71.97 kB / 0.635 GB, free: 13.74 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 165 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0009786/0.5512, allocations: 493.1 kB / 0.6355 GB, free: 13.25 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004048/0.5516, allocations: 173.9 kB / 0.6356 GB, free: 13.08 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00469/0.5563, allocations: 2.555 MB / 0.6381 GB, free: 10.52 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.011e-05/0.5563, allocations: 19.98 kB / 0.6381 GB, free: 10.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.5563, allocations: 3.938 kB / 0.6381 GB, free: 10.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/0.5563, allocations: 7.969 kB / 0.6382 GB, free: 10.49 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006981/0.5633, allocations: 4.192 MB / 0.6422 GB, free: 6.234 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.5634, allocations: 0 / 0.6422 GB, free: 6.234 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/0.5644, allocations: 235.7 kB / 0.6425 GB, free: 6.004 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005103/0.5696, allocations: 1.322 MB / 0.6438 GB, free: 4.68 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002147/0.5698, allocations: 39.98 kB / 0.6438 GB, free: 4.641 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002569/0.5724, allocations: 1.8 MB / 0.6456 GB, free: 2.809 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.5724, allocations: 3.938 kB / 0.6456 GB, free: 2.805 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005754/0.5782, allocations: 3.466 MB / 0.6489 GB, free: 15.31 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/0.5792, allocations: 462.6 kB / 0.6494 GB, free: 14.84 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003986/0.5796, allocations: 32 kB / 0.6494 GB, free: 14.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/0.5809, allocations: 100 kB / 0.6495 GB, free: 14.71 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002451/0.5812, allocations: 117.1 kB / 0.6496 GB, free: 14.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001642/0.5814, allocations: 59.91 kB / 0.6497 GB, free: 14.54 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001437/0.5828, allocations: 0.9148 MB / 0.6506 GB, free: 13.62 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.49e-06/0.5828, allocations: 96 / 0.6506 GB, free: 13.62 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003416/0.5862, allocations: 1.331 MB / 0.6519 GB, free: 12.29 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T,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 () * Number of clocked 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 39} Notification: Performance of Backend phase and start with SimCode phase: time 0.002426/0.5887, allocations: 0.9738 MB / 0.6528 GB, free: 11.31 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006801/0.5955, allocations: 3.255 MB / 0.656 GB, free: 8.047 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.5955, allocations: 0 / 0.656 GB, free: 8.047 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002141/0.5977, allocations: 1.039 MB / 0.657 GB, free: 7.008 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003784/0.6015, allocations: 0.7267 MB / 0.6577 GB, free: 6.293 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00697/0.6085, allocations: 4.212 MB / 0.6618 GB, free: 2.051 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.6095, allocations: 1.368 MB / 0.6632 GB, free: 0.6523 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000649/0.6102, allocations: 167.4 kB / 0.6633 GB, free: 500 kB / 474.7 MB Notification: Performance of SimCode: time 9.32e-07/0.6102, allocations: 0 / 0.6633 GB, free: 500 kB / 474.7 MB Notification: Performance of Templates: time 0.2494/0.8597, allocations: 41.47 MB / 0.7038 GB, free: 124 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches