Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestDelayedValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.35/2.35, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006034/0.0006034, allocations: 8 kB / 314.4 MB, free: 9.52 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.3413, allocations: 54.87 MB / 369.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve): time 0.04858/0.3899, allocations: 28.12 MB / 397.4 MB, free: 14.51 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03593/0.4259, allocations: 16.99 MB / 414.4 MB, free: 13.49 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002449/0.4284, allocations: 63.44 kB / 414.4 MB, free: 13.43 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002991/0.4315, allocations: 0.614 MB / 415.1 MB, free: 12.81 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008885/0.4404, allocations: 2.107 MB / 417.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01584/0.4563, allocations: 3.973 MB / 421.1 MB, free: 6.723 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.006726/0.463, allocations: 2.838 MB / 424 MB, free: 3.879 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002653/0.4657, allocations: 1.077 MB / 425.1 MB, free: 2.77 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004086/0.4699, allocations: 1.324 MB / 426.4 MB, free: 1.441 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003477/0.4734, allocations: 1.219 MB / 427.6 MB, free: 224 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007526/0.4742, allocations: 96 kB / 427.7 MB, free: 128 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007958/0.4822, allocations: 2.493 MB / 430.2 MB, free: 13.63 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001449/0.4837, allocations: 0.5298 MB / 430.7 MB, free: 13.1 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008254/0.4845, allocations: 352.8 kB / 431.1 MB, free: 12.75 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007745/0.4923, allocations: 2.958 MB / 434 MB, free: 9.781 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.4924, allocations: 0 / 434 MB, free: 9.781 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.897e-06/0.4924, allocations: 0 / 434 MB, free: 9.781 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.502e-05/0.4924, allocations: 0 / 434 MB, free: 9.781 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.008538/0.501, allocations: 2.147 MB / 436.2 MB, free: 7.578 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.5011, allocations: 12.03 kB / 436.2 MB, free: 7.566 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006689/0.5017, allocations: 177.2 kB / 436.4 MB, free: 7.383 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008381/0.5026, allocations: 201.8 kB / 436.5 MB, free: 7.184 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003198/0.5058, allocations: 1.076 MB / 437.6 MB, free: 6.051 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002511/0.5061, allocations: 191.2 kB / 437.8 MB, free: 5.844 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004088/0.5065, allocations: 119.9 kB / 437.9 MB, free: 5.727 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00551/0.5121, allocations: 1.931 MB / 439.9 MB, free: 3.723 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.857e-05/0.5122, allocations: 4 kB / 439.9 MB, free: 3.719 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002541/0.5124, allocations: 51.91 kB / 439.9 MB, free: 3.668 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002691/0.5127, allocations: 118.2 kB / 440 MB, free: 3.551 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005921/0.5186, allocations: 1.949 MB / 442 MB, free: 1.594 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.02237/0.5411, allocations: 7.392 MB / 449.4 MB, free: 9.836 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003992/0.5451, allocations: 1.396 MB / 450.8 MB, free: 8.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01183/0.557, allocations: 4.589 MB / 455.4 MB, free: 3.426 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.387e-05/0.5571, allocations: 59.44 kB / 455.4 MB, free: 3.359 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001511/0.5586, allocations: 222.5 kB / 455.6 MB, free: 3.141 MB / 378.7 MB Notification: Performance of pre-optimization done (n=118): time 4.648e-06/0.5586, allocations: 0 / 455.6 MB, free: 3.141 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.03592/0.5946, allocations: 6.65 MB / 462.3 MB, free: 12.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/0.5947, allocations: 230.9 kB / 462.5 MB, free: 12.16 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002759/0.5975, allocations: 1.359 MB / 463.9 MB, free: 10.79 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004017/0.5979, allocations: 49.7 kB / 463.9 MB, free: 10.73 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006356/0.5986, allocations: 0.6233 MB / 464.5 MB, free: 10.11 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006488/0.5993, allocations: 465.3 kB / 465 MB, free: 9.645 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.5995, allocations: 35.98 kB / 465 MB, free: 9.609 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.5997, allocations: 370.8 kB / 465.4 MB, free: 9.238 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00249/0.6022, allocations: 0.812 MB / 466.2 MB, free: 8.426 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002851/0.605, allocations: 1.162 MB / 467.4 MB, free: 7.133 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002854/0.6079, allocations: 0.9422 MB / 468.3 MB, free: 6.191 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.608, allocations: 4 kB / 468.3 MB, free: 6.188 MB / 394.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.007597/0.6156, allocations: 2.486 MB / 470.8 MB, free: 3.695 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002967/0.6159, allocations: 334.8 kB / 471.1 MB, free: 3.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.384e-05/0.616, allocations: 8 kB / 471.1 MB, free: 3.242 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01711/0.6331, allocations: 1.691 MB / 472.8 MB, free: 1.547 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002698/0.6358, allocations: 327.5 kB / 473.1 MB, free: 1.227 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.296/0.9319, allocations: 1.774 MB / 474.9 MB, free: 92.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002772/0.9347, allocations: 98.42 kB / 475 MB, free: 92.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003631/0.9351, allocations: 80.3 kB / 475.1 MB, free: 92.73 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.9351, allocations: 3.844 kB / 475.1 MB, free: 92.73 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006655/0.9418, allocations: 2.161 MB / 477.3 MB, free: 92.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.83e-05/0.9419, allocations: 9.719 kB / 477.3 MB, free: 92.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009805/0.9517, allocations: 0.9466 MB / 478.2 MB, free: 92.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002869/0.9546, allocations: 350.9 kB / 478.6 MB, free: 92.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002843/0.9575, allocations: 1.31 MB / 479.9 MB, free: 91.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001969/0.9595, allocations: 101 kB / 480 MB, free: 91.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002459/0.9598, allocations: 71.86 kB / 480 MB, free: 91.42 MB / 394.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.001318/0.9611, allocations: 497.3 kB / 480.5 MB, free: 91.09 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004896/0.9616, allocations: 167.6 kB / 480.7 MB, free: 91.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007336/0.969, allocations: 2.564 MB / 483.2 MB, free: 90.12 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.271e-05/0.9691, allocations: 22.52 kB / 483.3 MB, free: 90.12 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.9691, allocations: 0 / 483.3 MB, free: 90.12 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.107e-05/0.9691, allocations: 7.594 kB / 483.3 MB, free: 90.12 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009963/0.9791, allocations: 4.215 MB / 487.5 MB, free: 88.37 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/0.9791, allocations: 9.109 kB / 487.5 MB, free: 88.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001954/0.9811, allocations: 226.1 kB / 487.7 MB, free: 88.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008454/0.9896, allocations: 1.302 MB / 489 MB, free: 87.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003242/0.99, allocations: 47.31 kB / 489.1 MB, free: 87.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003769/0.9938, allocations: 1.8 MB / 490.9 MB, free: 86.61 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.9938, allocations: 4.797 kB / 490.9 MB, free: 86.61 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008474/1.002, allocations: 3.468 MB / 494.3 MB, free: 84.07 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00133/1.004, allocations: 475.7 kB / 494.8 MB, free: 83.59 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000461/1.004, allocations: 28 kB / 494.8 MB, free: 83.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002098/1.006, allocations: 107.1 kB / 494.9 MB, free: 83.47 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003284/1.007, allocations: 117.1 kB / 495 MB, free: 83.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002029/1.007, allocations: 55.97 kB / 495.1 MB, free: 83.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001646/1.008, allocations: 0.9148 MB / 496 MB, free: 82.39 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.008, allocations: 3.391 kB / 496 MB, free: 82.39 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004533/1.013, allocations: 1.309 MB / 497.3 MB, free: 81.22 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.01133/1.024, allocations: 4.871 MB / 0.4904 GB, free: 76.54 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01053/1.035, allocations: 3.204 MB / 0.4936 GB, free: 73.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/1.035, allocations: 4 kB / 0.4936 GB, free: 73.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00368/1.039, allocations: 1.039 MB / 0.4946 GB, free: 72.3 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005496/1.044, allocations: 0.7038 MB / 0.4953 GB, free: 71.63 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01243/1.057, allocations: 5.647 MB / 0.5008 GB, free: 65.83 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009535/1.058, allocations: 1.406 MB / 0.5022 GB, free: 64.39 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001545/1.059, allocations: 0.6516 MB / 0.5028 GB, free: 63.74 MB / 394.7 MB Notification: Performance of SimCode: time 1.303e-06/1.059, allocations: 0 / 0.5028 GB, free: 63.74 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.815/4.874, allocations: 47.66 MB / 0.5493 GB, free: 16.06 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestDelayedValve_res.mat does not exist to compare? outputFormat=mat