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.000918/0.000918, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.215/1.215, allocations: 226.5 MB / 243.1 MB, free: 12.37 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007053/0.0007053, allocations: 99.66 kB / 295.1 MB, free: 4.453 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1704/0.1704, allocations: 44.83 MB / 392 MB, free: 11.34 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002407/0.0002407, allocations: 4 kB / 464.7 MB, free: 68.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07668/0.07694, allocations: 62.95 MB / 0.5153 GB, free: 5.09 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve): time 0.02535/0.1023, allocations: 31.47 MB / 0.5461 GB, free: 5.52 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.1892/0.2916, allocations: 18.09 MB / 0.5637 GB, free: 11.26 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001252/0.2929, allocations: 70.34 kB / 0.5638 GB, free: 11.26 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001262/0.2942, allocations: 0.5749 MB / 0.5644 GB, free: 11.25 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004606/0.2988, allocations: 2.383 MB / 0.5667 GB, free: 10.81 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009584/0.3084, allocations: 4.059 MB / 0.5707 GB, free: 10.39 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005703/0.3141, allocations: 5.432 MB / 0.576 GB, free: 9.711 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001469/0.3156, allocations: 1.077 MB / 0.577 GB, free: 9.312 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002223/0.3178, allocations: 1.544 MB / 0.5785 GB, free: 8.793 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002099/0.3199, allocations: 1.728 MB / 0.5802 GB, free: 8.176 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002485/0.3202, allocations: 95.25 kB / 0.5803 GB, free: 8.176 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005012/0.3252, allocations: 2.42 MB / 0.5827 GB, free: 7.395 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005197/0.3257, allocations: 0.5711 MB / 0.5832 GB, free: 7.016 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004073/0.3261, allocations: 355.3 kB / 0.5836 GB, free: 6.832 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002844/0.329, allocations: 2.957 MB / 0.5864 GB, free: 5.207 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.329, allocations: 0 / 0.5864 GB, free: 5.207 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.329, allocations: 0 / 0.5864 GB, free: 5.207 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.224e-05/0.329, allocations: 0 / 0.5864 GB, free: 5.207 MB / 378.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.003908/0.333, allocations: 2.16 MB / 0.5886 GB, free: 3.684 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.944e-05/0.333, allocations: 11.59 kB / 0.5886 GB, free: 3.684 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004059/0.3334, allocations: 199 kB / 0.5888 GB, free: 3.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/0.3347, allocations: 1.072 MB / 0.5898 GB, free: 2.797 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.3348, allocations: 184 kB / 0.59 GB, free: 2.664 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001664/0.335, allocations: 112.8 kB / 0.5901 GB, free: 2.633 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002403/0.3374, allocations: 1.938 MB / 0.592 GB, free: 1.461 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.645e-05/0.3374, allocations: 1.891 kB / 0.592 GB, free: 1.461 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001322/0.3376, allocations: 47.98 kB / 0.592 GB, free: 1.434 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001166/0.3377, allocations: 112.5 kB / 0.5921 GB, free: 1.398 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002482/0.3402, allocations: 1.956 MB / 0.594 GB, free: 176 kB / 378.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.01084/0.351, allocations: 7.311 MB / 0.6012 GB, free: 8.582 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001942/0.353, allocations: 1.405 MB / 0.6026 GB, free: 7.18 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/0.3542, allocations: 0.8468 MB / 0.6034 GB, free: 6.336 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005469/0.3597, allocations: 4.524 MB / 0.6078 GB, free: 1.438 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.3597, allocations: 51.56 kB / 0.6079 GB, free: 1.379 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007006/0.3604, allocations: 218.1 kB / 0.6081 GB, free: 1.168 MB / 394.7 MB Notification: Performance of pre-optimization done (n=118): time 2.514e-06/0.3604, allocations: 0 / 0.6081 GB, free: 1.168 MB / 394.7 MB Notification: Performance of matching and sorting (n=133): time 0.01746/0.3779, allocations: 6.641 MB / 0.6145 GB, free: 10.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.378, allocations: 222.9 kB / 0.6148 GB, free: 10.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001546/0.3796, allocations: 1.363 MB / 0.6161 GB, free: 8.855 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.3797, allocations: 53.7 kB / 0.6161 GB, free: 8.797 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004572/0.3802, allocations: 0.6587 MB / 0.6168 GB, free: 8.137 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003268/0.3805, allocations: 463.9 kB / 0.6172 GB, free: 7.688 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.27e-05/0.3806, allocations: 32 kB / 0.6173 GB, free: 7.656 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.3807, allocations: 369.9 kB / 0.6176 GB, free: 7.289 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.382, allocations: 0.812 MB / 0.6184 GB, free: 6.477 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001427/0.3834, allocations: 1.154 MB / 0.6195 GB, free: 5.191 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/0.3848, allocations: 0.9344 MB / 0.6204 GB, free: 4.262 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.3848, allocations: 0 / 0.6204 GB, free: 4.262 MB / 410.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00388/0.3887, allocations: 2.567 MB / 0.6229 GB, free: 1.684 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001805/0.3889, allocations: 342.1 kB / 0.6233 GB, free: 1.234 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.3889, allocations: 8 kB / 0.6233 GB, free: 1.227 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008661/0.3976, allocations: 1.696 MB / 0.6249 GB, free: 15.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0013/0.3989, allocations: 343.5 kB / 0.6253 GB, free: 15.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002544/0.4014, allocations: 1.774 MB / 0.627 GB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.4028, allocations: 107.8 kB / 0.6271 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001588/0.4029, allocations: 75.95 kB / 0.6272 GB, free: 13.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.085e-06/0.4029, allocations: 4 kB / 0.6272 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003538/0.4065, allocations: 2.257 MB / 0.6294 GB, free: 10.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.975e-05/0.4065, allocations: 14.3 kB / 0.6294 GB, free: 10.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005197/0.4117, allocations: 1.065 MB / 0.6304 GB, free: 9.875 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/0.4131, allocations: 359.5 kB / 0.6308 GB, free: 9.523 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002046/0.4152, allocations: 1.481 MB / 0.6322 GB, free: 8.016 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/0.4166, allocations: 99.78 kB / 0.6323 GB, free: 7.918 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001483/0.4167, allocations: 71.97 kB / 0.6324 GB, free: 7.848 MB / 426.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.0007643/0.4175, allocations: 490.8 kB / 0.6329 GB, free: 7.359 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000255/0.4178, allocations: 174 kB / 0.633 GB, free: 7.188 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004138/0.4219, allocations: 2.567 MB / 0.6355 GB, free: 4.617 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.828e-05/0.4219, allocations: 19.98 kB / 0.6355 GB, free: 4.598 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4219, allocations: 0 / 0.6355 GB, free: 4.598 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.422, allocations: 7.969 kB / 0.6356 GB, free: 4.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005963/0.4279, allocations: 4.2 MB / 0.6397 GB, free: 376 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.428, allocations: 0 / 0.6397 GB, free: 376 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.429, allocations: 227.7 kB / 0.6399 GB, free: 148 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004872/0.4339, allocations: 1.322 MB / 0.6412 GB, free: 14.82 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/0.434, allocations: 43.98 kB / 0.6412 GB, free: 14.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00229/0.4363, allocations: 1.796 MB / 0.643 GB, free: 12.95 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4363, allocations: 4.031 kB / 0.643 GB, free: 12.94 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005069/0.4414, allocations: 3.469 MB / 0.6464 GB, free: 9.449 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008696/0.4423, allocations: 458.6 kB / 0.6468 GB, free: 8.98 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002116/0.4425, allocations: 32.19 kB / 0.6468 GB, free: 8.949 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/0.4436, allocations: 103.8 kB / 0.6469 GB, free: 8.848 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002203/0.4438, allocations: 121.1 kB / 0.647 GB, free: 8.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/0.444, allocations: 55.97 kB / 0.6471 GB, free: 8.676 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001152/0.4451, allocations: 0.9148 MB / 0.648 GB, free: 7.762 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4451, allocations: 0 / 0.648 GB, free: 7.762 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002852/0.448, allocations: 1.327 MB / 0.6493 GB, free: 6.434 MB / 442.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.00189/0.4499, allocations: 0.9668 MB / 0.6502 GB, free: 5.527 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006398/0.4563, allocations: 3.256 MB / 0.6534 GB, free: 2.273 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/0.4563, allocations: 7.859 kB / 0.6534 GB, free: 2.266 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002006/0.4583, allocations: 1.043 MB / 0.6544 GB, free: 1.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003327/0.4617, allocations: 0.7332 MB / 0.6551 GB, free: 0.5078 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006048/0.4677, allocations: 4.206 MB / 0.6593 GB, free: 12.29 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008368/0.4686, allocations: 1.375 MB / 0.6606 GB, free: 10.88 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004958/0.4691, allocations: 159.4 kB / 0.6607 GB, free: 10.73 MB / 458.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4691, allocations: 0 / 0.6607 GB, free: 10.73 MB / 458.7 MB Notification: Performance of Templates: time 0.04659/0.5157, allocations: 41.46 MB / 0.7012 GB, free: 1.387 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