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.TestValveDiscrete.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.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 1.825/1.825, allocations: 209.3 MB / 224.8 MB, free: 1.227 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004372/0.0004375, allocations: 12 kB / 282.5 MB, free: 9.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08796/0.08843, allocations: 48.72 MB / 331.2 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.2665/0.355, allocations: 23.48 MB / 354.7 MB, free: 3.941 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03165/0.3867, allocations: 11.25 MB / 365.9 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005601/0.3873, allocations: 13.72 kB / 366 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008388/0.3882, allocations: 200.9 kB / 366.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01133/0.3995, allocations: 2.802 MB / 368.9 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00793/0.4075, allocations: 1.857 MB / 370.8 MB, free: 8.672 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001362/0.4089, allocations: 0.5691 MB / 371.4 MB, free: 8.301 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004902/0.4094, allocations: 202.8 kB / 371.6 MB, free: 8.176 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001126/0.4105, allocations: 400.5 kB / 372 MB, free: 7.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003892/0.4109, allocations: 192.2 kB / 372.2 MB, free: 7.824 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.495e-05/0.411, allocations: 14.91 kB / 372.2 MB, free: 7.824 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01706/0.4281, allocations: 6.907 MB / 379.1 MB, free: 4.605 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001955/0.4284, allocations: 76.34 kB / 379.1 MB, free: 4.551 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002254/0.4286, allocations: 101.4 kB / 379.2 MB, free: 4.488 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007256/0.4359, allocations: 2.909 MB / 382.2 MB, free: 2.055 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.202e-06/0.4359, allocations: 0 / 382.2 MB, free: 2.055 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.772e-06/0.4359, allocations: 0 / 382.2 MB, free: 2.055 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.572e-06/0.436, allocations: 0 / 382.2 MB, free: 2.055 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003729/0.4397, allocations: 1.146 MB / 383.3 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.4398, allocations: 8.031 kB / 383.3 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002273/0.4421, allocations: 211.3 kB / 383.5 MB, free: 0.6406 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007556/0.4428, allocations: 370 kB / 383.9 MB, free: 244 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.426e-05/0.4429, allocations: 24.66 kB / 383.9 MB, free: 220 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.3e-05/0.443, allocations: 31.94 kB / 383.9 MB, free: 188 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002163/0.4452, allocations: 0.594 MB / 384.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.4452, allocations: 3.938 kB / 384.5 MB, free: 15.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.73e-05/0.4453, allocations: 16 kB / 384.5 MB, free: 15.53 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.4453, allocations: 8 kB / 384.6 MB, free: 15.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002285/0.4476, allocations: 0.5602 MB / 385.1 MB, free: 14.96 MB / 314.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.004031/0.4517, allocations: 2.562 MB / 387.7 MB, free: 12.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002061/0.4538, allocations: 482.1 kB / 388.1 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1414/0.5952, allocations: 51.96 MB / 440.1 MB, free: 2.266 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.804e-05/0.5953, allocations: 38.56 kB / 440.1 MB, free: 2.219 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 4.247e-06/0.5953, allocations: 0 / 440.1 MB, free: 2.219 MB / 362.7 MB Notification: Performance of matching and sorting (n=25): time 0.003728/0.5991, allocations: 0.8286 MB / 441 MB, free: 1.383 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.667e-05/0.5992, allocations: 110.8 kB / 441.1 MB, free: 1.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004353/0.5997, allocations: 284.4 kB / 441.4 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.215e-05/0.5997, allocations: 29.7 kB / 441.4 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002235/0.6, allocations: 270.3 kB / 441.6 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.6001, allocations: 86.73 kB / 441.7 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.522e-05/0.6001, allocations: 8 kB / 441.7 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.6003, allocations: 322.8 kB / 442.1 MB, free: 252 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005491/0.6009, allocations: 152.5 kB / 442.2 MB, free: 96 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006513/0.6015, allocations: 276.5 kB / 442.5 MB, free: 15.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005507/0.6021, allocations: 175.9 kB / 442.6 MB, free: 15.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.6021, allocations: 4 kB / 442.7 MB, free: 15.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001381/0.6035, allocations: 453.7 kB / 443.1 MB, free: 15.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.6036, allocations: 8 kB / 443.1 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.6036, allocations: 4 kB / 443.1 MB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.681e-05/0.6036, allocations: 11.92 kB / 443.1 MB, free: 15.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004596/0.6041, allocations: 100.4 kB / 443.2 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.712e-05/0.6042, allocations: 7.938 kB / 443.2 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000441/0.6046, allocations: 67.66 kB / 443.3 MB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.078e-05/0.6047, allocations: 16 kB / 443.3 MB, free: 14.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002972/0.605, allocations: 165.7 kB / 443.5 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.6051, allocations: 31.62 kB / 443.5 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003536/0.6087, allocations: 1.928 MB / 445.4 MB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.89e-05/0.6088, allocations: 28.64 kB / 445.5 MB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.291e-06/0.6088, allocations: 4 kB / 445.5 MB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/0.6088, allocations: 3.984 kB / 445.5 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.6104, allocations: 0.9882 MB / 446.4 MB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.054e-06/0.6104, allocations: 0 / 446.4 MB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004302/0.6109, allocations: 80.75 kB / 446.5 MB, free: 11.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.411e-06/0.6109, allocations: 4 kB / 446.5 MB, free: 11.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.611, allocations: 8 kB / 446.5 MB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.647e-06/0.611, allocations: 4 kB / 446.5 MB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.431e-06/0.611, allocations: 0 / 446.5 MB, free: 11.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00211/0.6131, allocations: 1.088 MB / 447.6 MB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002616/0.6134, allocations: 207.6 kB / 447.8 MB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.133e-05/0.6135, allocations: 12 kB / 447.8 MB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000388/0.6139, allocations: 39.91 kB / 447.9 MB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.614, allocations: 31.95 kB / 447.9 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.17e-05/0.6141, allocations: 15.98 kB / 447.9 MB, free: 10.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004182/0.6145, allocations: 267.1 kB / 448.2 MB, free: 9.934 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.37e-07/0.6145, allocations: 0 / 448.2 MB, free: 9.934 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003252/0.6178, allocations: 0.9798 MB / 449.2 MB, free: 8.953 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006031/0.6239, allocations: 1.167 MB / 450.3 MB, free: 7.785 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.6256, allocations: 0.6304 MB / 451 MB, free: 7.156 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.751e-06/0.6256, allocations: 0 / 451 MB, free: 7.156 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009936/0.6266, allocations: 0.5172 MB / 451.5 MB, free: 6.637 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.6278, allocations: 177.7 kB / 451.7 MB, free: 6.461 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003513/0.6313, allocations: 2.004 MB / 453.7 MB, free: 4.418 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007768/0.6322, allocations: 0.9719 MB / 454.6 MB, free: 3.418 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001802/0.6324, allocations: 47.42 kB / 454.7 MB, free: 3.371 MB / 378.7 MB Notification: Performance of SimCode: time 1.646e-06/0.6324, allocations: 0 / 454.7 MB, free: 3.371 MB / 378.7 MB Notification: Performance of Templates: time 0.05521/0.6876, allocations: 26.75 MB / 481.4 MB, free: 8.605 MB / 410.7 MB