Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve") Notification: Performance of loadModel(ModelicaTest): time 2.314/2.314, allocations: 234.9 MB / 250.5 MB, free: 9.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004344/0.0004347, allocations: 15.94 kB / 314.3 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2913, allocations: 54.87 MB / 369.2 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve): time 0.04124/0.3326, allocations: 28.11 MB / 397.3 MB, free: 0.543 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03247/0.3651, allocations: 17 MB / 414.3 MB, free: 15.52 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002298/0.3674, allocations: 67.38 kB / 414.4 MB, free: 15.46 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002318/0.3698, allocations: 0.6179 MB / 415 MB, free: 14.84 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007771/0.3776, allocations: 2.095 MB / 417.1 MB, free: 12.73 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01414/0.3917, allocations: 3.969 MB / 421 MB, free: 8.762 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005564/0.3973, allocations: 2.842 MB / 423.9 MB, free: 5.914 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002125/0.3995, allocations: 1.089 MB / 425 MB, free: 4.793 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003276/0.4028, allocations: 1.316 MB / 426.3 MB, free: 3.473 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002791/0.4056, allocations: 1.215 MB / 427.5 MB, free: 2.254 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004396/0.4061, allocations: 96 kB / 427.6 MB, free: 2.16 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006681/0.4128, allocations: 2.504 MB / 430.1 MB, free: 15.65 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001087/0.4139, allocations: 0.522 MB / 430.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007337/0.4147, allocations: 352.8 kB / 431 MB, free: 14.78 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006498/0.4212, allocations: 2.958 MB / 433.9 MB, free: 11.81 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.253e-06/0.4212, allocations: 0 / 433.9 MB, free: 11.81 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.712e-06/0.4212, allocations: 0 / 433.9 MB, free: 11.81 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.901e-05/0.4213, allocations: 0 / 433.9 MB, free: 11.81 MB / 362.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.006438/0.4277, allocations: 2.151 MB / 436.1 MB, free: 9.605 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.4278, allocations: 12.03 kB / 436.1 MB, free: 9.594 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000891/0.4287, allocations: 193.8 kB / 436.3 MB, free: 9.402 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002782/0.4315, allocations: 1.076 MB / 437.4 MB, free: 8.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002456/0.4318, allocations: 187.2 kB / 437.5 MB, free: 8.066 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004041/0.4322, allocations: 119.9 kB / 437.7 MB, free: 7.949 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004607/0.4368, allocations: 1.934 MB / 439.6 MB, free: 5.941 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.875e-05/0.4369, allocations: 0 / 439.6 MB, free: 5.941 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002242/0.4371, allocations: 47.97 kB / 439.6 MB, free: 5.895 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002227/0.4374, allocations: 122.1 kB / 439.8 MB, free: 5.773 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0051/0.4425, allocations: 1.961 MB / 441.7 MB, free: 3.805 MB / 362.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.01838/0.4609, allocations: 7.384 MB / 449.1 MB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003408/0.4643, allocations: 1.4 MB / 450.5 MB, free: 10.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009446/0.4738, allocations: 4.593 MB / 455.1 MB, free: 5.637 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.451e-05/0.4739, allocations: 43.56 kB / 455.1 MB, free: 5.586 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001152/0.4751, allocations: 226.5 kB / 455.4 MB, free: 5.363 MB / 378.7 MB Notification: Performance of pre-optimization done (n=118): time 5.219e-06/0.4751, allocations: 3.938 kB / 455.4 MB, free: 5.359 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.0261/0.5012, allocations: 6.649 MB / 462 MB, free: 14.65 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/0.5014, allocations: 222.9 kB / 462.2 MB, free: 14.38 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002589/0.504, allocations: 1.356 MB / 463.6 MB, free: 13.02 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002869/0.5043, allocations: 57.7 kB / 463.6 MB, free: 12.95 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006331/0.505, allocations: 0.6193 MB / 464.3 MB, free: 12.33 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006408/0.5056, allocations: 469.3 kB / 464.7 MB, free: 11.86 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001542/0.5058, allocations: 32 kB / 464.8 MB, free: 11.83 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002464/0.5061, allocations: 374.8 kB / 465.1 MB, free: 11.46 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002104/0.5082, allocations: 0.8042 MB / 465.9 MB, free: 10.65 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002429/0.5106, allocations: 1.169 MB / 467.1 MB, free: 9.352 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002377/0.513, allocations: 0.9383 MB / 468 MB, free: 8.414 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/0.5131, allocations: 7.922 kB / 468 MB, free: 8.406 MB / 394.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006614/0.5197, allocations: 2.478 MB / 470.5 MB, free: 5.922 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003325/0.5201, allocations: 338.7 kB / 470.8 MB, free: 5.473 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.318e-05/0.5201, allocations: 12 kB / 470.9 MB, free: 5.461 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01177/0.5319, allocations: 1.687 MB / 472.5 MB, free: 3.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001911/0.5339, allocations: 339.5 kB / 472.9 MB, free: 3.438 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004116/0.538, allocations: 1.77 MB / 474.6 MB, free: 1.641 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002053/0.5401, allocations: 107.8 kB / 474.8 MB, free: 1.535 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003346/0.5405, allocations: 88.05 kB / 474.8 MB, free: 1.449 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.5405, allocations: 8.562 kB / 474.8 MB, free: 1.441 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005839/0.5463, allocations: 2.148 MB / 477 MB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.512e-05/0.5464, allocations: 12 kB / 477 MB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006241/0.5527, allocations: 0.9529 MB / 478 MB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001991/0.5547, allocations: 351.5 kB / 478.3 MB, free: 13.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002601/0.5574, allocations: 1.305 MB / 479.6 MB, free: 12.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001456/0.5589, allocations: 107.7 kB / 479.7 MB, free: 12.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002513/0.5591, allocations: 71.97 kB / 479.8 MB, free: 12.47 MB / 410.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.001205/0.5604, allocations: 484.6 kB / 480.3 MB, free: 11.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000474/0.5608, allocations: 162 kB / 480.4 MB, free: 11.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006764/0.5676, allocations: 2.574 MB / 483 MB, free: 9.238 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.092e-05/0.5677, allocations: 19.95 kB / 483 MB, free: 9.219 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.326e-06/0.5677, allocations: 0 / 483 MB, free: 9.219 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.761e-05/0.5678, allocations: 7.969 kB / 483 MB, free: 9.211 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/0.5781, allocations: 4.211 MB / 487.2 MB, free: 4.934 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.5782, allocations: 0 / 487.2 MB, free: 4.934 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001495/0.5797, allocations: 223.8 kB / 487.4 MB, free: 4.715 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006934/0.5867, allocations: 1.31 MB / 488.8 MB, free: 3.398 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003193/0.587, allocations: 43.97 kB / 488.8 MB, free: 3.355 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003722/0.5908, allocations: 1.804 MB / 490.6 MB, free: 1.523 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.5908, allocations: 0 / 490.6 MB, free: 1.523 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008497/0.5993, allocations: 3.462 MB / 494.1 MB, free: 14.04 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001439/0.6008, allocations: 474.5 kB / 494.5 MB, free: 13.56 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003591/0.6012, allocations: 31.94 kB / 494.6 MB, free: 13.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001593/0.6028, allocations: 111.8 kB / 494.7 MB, free: 13.42 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00037/0.6032, allocations: 113.1 kB / 494.8 MB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002115/0.6034, allocations: 59.97 kB / 494.8 MB, free: 13.25 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001839/0.6053, allocations: 0.9148 MB / 495.8 MB, free: 12.33 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.76e-07/0.6053, allocations: 0 / 495.8 MB, free: 12.33 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004478/0.6098, allocations: 1.308 MB / 497.1 MB, free: 11.02 MB / 426.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.002732/0.6126, allocations: 0.9646 MB / 498 MB, free: 10.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009515/0.6221, allocations: 3.194 MB / 0.4895 GB, free: 6.848 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.42e-05/0.6222, allocations: 4 kB / 0.4895 GB, free: 6.844 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003406/0.6256, allocations: 1.047 MB / 0.4905 GB, free: 5.797 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004126/0.6297, allocations: 0.7027 MB / 0.4912 GB, free: 5.094 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00938/0.6392, allocations: 4.193 MB / 0.4953 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2448/0.884, allocations: 1.402 MB / 0.4966 GB, free: 124.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009039/0.885, allocations: 162.1 kB / 0.4968 GB, free: 124.2 MB / 426.7 MB Notification: Performance of SimCode: time 1.59e-06/0.885, allocations: 0.5 kB / 0.4968 GB, free: 124.2 MB / 426.7 MB Notification: Performance of Templates: time 0.06187/0.9469, allocations: 41.12 MB / 0.537 GB, free: 92.96 MB / 426.7 MB