Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve") Notification: Performance of loadModel(ModelicaTest): time 1.848/1.848, allocations: 209.3 MB / 224.8 MB, free: 204 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004328/0.0004326, allocations: 12 kB / 282.5 MB, free: 9.645 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2816, allocations: 48.71 MB / 331.2 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve): time 0.03961/0.3213, allocations: 28.09 MB / 359.3 MB, free: 1.426 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03308/0.3544, allocations: 17.01 MB / 376.3 MB, free: 1.367 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002473/0.3569, allocations: 63.44 kB / 376.4 MB, free: 1.305 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002319/0.3593, allocations: 0.614 MB / 377 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007886/0.3672, allocations: 2.119 MB / 379.1 MB, free: 14.56 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01426/0.3815, allocations: 3.986 MB / 383.1 MB, free: 10.57 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005699/0.3872, allocations: 2.838 MB / 385.9 MB, free: 7.727 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002181/0.3894, allocations: 1.085 MB / 387 MB, free: 6.617 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00336/0.3928, allocations: 1.316 MB / 388.3 MB, free: 5.293 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002685/0.3955, allocations: 1.223 MB / 389.5 MB, free: 4.066 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004735/0.396, allocations: 96 kB / 389.6 MB, free: 3.973 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006699/0.4027, allocations: 2.493 MB / 392.1 MB, free: 1.477 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001205/0.404, allocations: 0.5376 MB / 392.7 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007569/0.4048, allocations: 348.8 kB / 393 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006738/0.4115, allocations: 2.962 MB / 396 MB, free: 13.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.4116, allocations: 0 / 396 MB, free: 13.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.757e-06/0.4116, allocations: 0 / 396 MB, free: 13.62 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.221e-05/0.4116, allocations: 0 / 396 MB, free: 13.62 MB / 330.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.006647/0.4183, allocations: 2.139 MB / 398.1 MB, free: 11.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.4184, allocations: 19.95 kB / 398.1 MB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009365/0.4193, allocations: 201.7 kB / 398.3 MB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002853/0.4222, allocations: 1.072 MB / 399.4 MB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002466/0.4225, allocations: 191.2 kB / 399.6 MB, free: 9.871 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003338/0.4228, allocations: 111.9 kB / 399.7 MB, free: 9.762 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004823/0.4276, allocations: 1.927 MB / 401.6 MB, free: 7.762 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.32e-05/0.4277, allocations: 7.938 kB / 401.6 MB, free: 7.754 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002251/0.428, allocations: 47.97 kB / 401.7 MB, free: 7.707 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002174/0.4282, allocations: 118.2 kB / 401.8 MB, free: 7.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005163/0.4334, allocations: 1.949 MB / 403.7 MB, free: 5.633 MB / 330.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.01798/0.4514, allocations: 7.385 MB / 411.1 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003314/0.4547, allocations: 1.421 MB / 412.5 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01055/0.4653, allocations: 4.568 MB / 417.1 MB, free: 7.465 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.126e-05/0.4655, allocations: 59.56 kB / 417.2 MB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001952/0.4674, allocations: 226.4 kB / 417.4 MB, free: 7.176 MB / 346.7 MB Notification: Performance of pre-optimization done (n=118): time 8.33e-06/0.4675, allocations: 0 / 417.4 MB, free: 7.176 MB / 346.7 MB Notification: Performance of matching and sorting (n=133): time 0.03232/0.4998, allocations: 6.649 MB / 424 MB, free: 472 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001681/0.5, allocations: 226.9 kB / 424.3 MB, free: 196 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002625/0.5027, allocations: 1.356 MB / 425.6 MB, free: 14.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000301/0.503, allocations: 53.7 kB / 425.7 MB, free: 14.76 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000637/0.5036, allocations: 0.6193 MB / 426.3 MB, free: 14.14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006353/0.5043, allocations: 465.3 kB / 426.7 MB, free: 13.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001567/0.5045, allocations: 36 kB / 426.8 MB, free: 13.64 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002472/0.5047, allocations: 378.7 kB / 427.1 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002151/0.5069, allocations: 0.8081 MB / 428 MB, free: 12.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002518/0.5094, allocations: 1.166 MB / 429.1 MB, free: 11.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002379/0.5118, allocations: 0.9383 MB / 430.1 MB, free: 10.22 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.119e-06/0.5119, allocations: 0 / 430.1 MB, free: 10.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006473/0.5183, allocations: 2.486 MB / 432.5 MB, free: 7.727 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003209/0.5187, allocations: 342.5 kB / 432.9 MB, free: 7.277 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.352e-05/0.5188, allocations: 8 kB / 432.9 MB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01138/0.5301, allocations: 1.688 MB / 434.6 MB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001923/0.5321, allocations: 331.5 kB / 434.9 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004135/0.5363, allocations: 1.785 MB / 436.7 MB, free: 3.441 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001982/0.5383, allocations: 99.78 kB / 436.8 MB, free: 3.344 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002778/0.5386, allocations: 79.91 kB / 436.9 MB, free: 3.266 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.5386, allocations: 4 kB / 436.9 MB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005734/0.5444, allocations: 2.159 MB / 439 MB, free: 1.098 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.616e-05/0.5445, allocations: 8.594 kB / 439 MB, free: 1.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006215/0.5507, allocations: 0.9528 MB / 440 MB, free: 136 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002043/0.5528, allocations: 351.7 kB / 440.3 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002574/0.5554, allocations: 1.309 MB / 441.6 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.5568, allocations: 95.8 kB / 441.7 MB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002242/0.557, allocations: 75.95 kB / 441.8 MB, free: 14.29 MB / 378.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.001201/0.5583, allocations: 493.9 kB / 442.3 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000464/0.5587, allocations: 166 kB / 442.5 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006753/0.5655, allocations: 2.566 MB / 445 MB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-05/0.5656, allocations: 16 kB / 445 MB, free: 11.03 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.11e-06/0.5656, allocations: 4 kB / 445 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.739e-05/0.5656, allocations: 8.156 kB / 445 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01153/0.5772, allocations: 4.219 MB / 449.3 MB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/0.5772, allocations: 3.938 kB / 449.3 MB, free: 6.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00148/0.5787, allocations: 227.7 kB / 449.5 MB, free: 6.508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006894/0.5857, allocations: 1.295 MB / 450.8 MB, free: 5.211 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003003/0.586, allocations: 47.97 kB / 450.8 MB, free: 5.164 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00379/0.5898, allocations: 1.8 MB / 452.6 MB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.5898, allocations: 0 / 452.6 MB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008676/0.5985, allocations: 3.466 MB / 456.1 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001453/0.6, allocations: 474.7 kB / 456.6 MB, free: 15.36 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003499/0.6004, allocations: 35.94 kB / 456.6 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/0.6019, allocations: 103.8 kB / 456.7 MB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003267/0.6023, allocations: 125.1 kB / 456.8 MB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002096/0.6025, allocations: 59.97 kB / 456.9 MB, free: 15.04 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001854/0.6044, allocations: 0.9109 MB / 457.8 MB, free: 14.13 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.6044, allocations: 0 / 457.8 MB, free: 14.13 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004256/0.6087, allocations: 1.312 MB / 459.1 MB, free: 12.82 MB / 394.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.002675/0.6114, allocations: 0.9595 MB / 460.1 MB, free: 11.85 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.009607/0.621, allocations: 3.198 MB / 463.3 MB, free: 8.645 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.798e-06/0.6211, allocations: 0 / 463.3 MB, free: 8.645 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003277/0.6244, allocations: 1.047 MB / 464.3 MB, free: 7.602 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004119/0.6285, allocations: 0.6901 MB / 465 MB, free: 6.914 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009484/0.638, allocations: 4.201 MB / 469.2 MB, free: 2.688 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00146/0.6395, allocations: 1.406 MB / 470.6 MB, free: 1.25 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008326/0.6404, allocations: 163.4 kB / 470.8 MB, free: 1.09 MB / 394.7 MB Notification: Performance of SimCode: time 1.517e-06/0.6404, allocations: 0 / 470.8 MB, free: 1.09 MB / 394.7 MB Notification: Performance of Templates: time 0.3385/0.9789, allocations: 41.1 MB / 0.4999 GB, free: 123.7 MB / 410.7 MB