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.TestValveDiscrete.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 2.191/2.191, allocations: 235.1 MB / 243 MB, free: 9.5 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.18e-05/2.197e-05, allocations: 7.984 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2768, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.379/6.656, allocations: 2.587 GB / 2.937 GB, free: 108 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/6.656, allocations: 86.42 kB / 2.937 GB, free: 108 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8886/7.545, allocations: 212.7 MB / 3.144 GB, free: 74.43 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.918e-06/7.545, allocations: 0 / 3.144 GB, free: 74.43 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.763e-05/7.545, allocations: 10.22 kB / 3.144 GB, free: 74.43 MB / 474.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.004408/7.549, allocations: 1.16 MB / 3.146 GB, free: 73.75 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/7.549, allocations: 7.75 kB / 3.146 GB, free: 73.75 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00237/7.551, allocations: 225.4 kB / 3.146 GB, free: 73.71 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007724/7.552, allocations: 386 kB / 3.146 GB, free: 73.43 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.214e-05/7.552, allocations: 16.42 kB / 3.146 GB, free: 73.43 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.856e-05/7.552, allocations: 18.66 kB / 3.146 GB, free: 73.43 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006487/7.553, allocations: 304.8 kB / 3.146 GB, free: 73.31 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006441/7.554, allocations: 381.1 kB / 3.147 GB, free: 73.08 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.6e-05/7.554, allocations: 0 / 3.147 GB, free: 73.08 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.932e-05/7.554, allocations: 3.812 kB / 3.147 GB, free: 73.08 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/7.554, allocations: 7.562 kB / 3.147 GB, free: 73.08 MB / 474.7 MB Warning: The model contains alias variables with conflicting start and/or 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.006028/7.56, allocations: 3.89 MB / 3.151 GB, free: 70.05 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004907/7.56, allocations: 228 kB / 3.151 GB, free: 69.95 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002077/7.561, allocations: 114.3 kB / 3.151 GB, free: 69.9 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1231/7.684, allocations: 50.24 MB / 3.2 GB, free: 40.89 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/7.684, allocations: 38.56 kB / 3.2 GB, free: 40.85 MB / 474.7 MB Notification: Performance of pre-optimization done (n=24): time 3.491e-06/7.684, allocations: 0 / 3.2 GB, free: 40.85 MB / 474.7 MB Notification: Performance of matching and sorting (n=24): time 0.002106/7.686, allocations: 0.4982 MB / 3.201 GB, free: 40.44 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/7.686, allocations: 110.8 kB / 3.201 GB, free: 40.31 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002918/7.686, allocations: 240.3 kB / 3.201 GB, free: 40.08 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.024e-05/7.686, allocations: 25.7 kB / 3.201 GB, free: 40.05 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/7.687, allocations: 277.6 kB / 3.201 GB, free: 39.79 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.37e-05/7.687, allocations: 81.77 kB / 3.201 GB, free: 39.71 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.901e-05/7.687, allocations: 0 / 3.201 GB, free: 39.71 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 6.05e-05/7.687, allocations: 325.9 kB / 3.202 GB, free: 39.39 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/7.687, allocations: 88.34 kB / 3.202 GB, free: 39.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/7.687, allocations: 200.3 kB / 3.202 GB, free: 39.06 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008597/7.688, allocations: 165.1 kB / 3.202 GB, free: 38.93 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.249e-06/7.688, allocations: 0 / 3.202 GB, free: 38.93 MB / 474.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001253/7.689, allocations: 373.1 kB / 3.202 GB, free: 38.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/7.689, allocations: 7.938 kB / 3.202 GB, free: 38.59 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.724e-06/7.689, allocations: 4 kB / 3.202 GB, free: 38.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/7.689, allocations: 8 kB / 3.202 GB, free: 38.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004248/7.69, allocations: 93.97 kB / 3.202 GB, free: 38.5 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/7.69, allocations: 8 kB / 3.202 GB, free: 38.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004437/7.69, allocations: 54.86 kB / 3.203 GB, free: 38.45 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.357e-05/7.69, allocations: 24 kB / 3.203 GB, free: 38.43 MB / 474.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 () * 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.0001121/7.69, allocations: 124.8 kB / 3.203 GB, free: 38.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.371e-05/7.691, allocations: 31.62 kB / 3.203 GB, free: 38.27 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002246/7.693, allocations: 1.619 MB / 3.204 GB, free: 36.81 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.782e-05/7.693, allocations: 23.2 kB / 3.204 GB, free: 36.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/7.693, allocations: 4 kB / 3.204 GB, free: 36.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.806e-06/7.693, allocations: 3.891 kB / 3.204 GB, free: 36.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009742/7.694, allocations: 0.8226 MB / 3.205 GB, free: 36.05 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.804e-06/7.694, allocations: 0 / 3.205 GB, free: 36.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003603/7.694, allocations: 77.77 kB / 3.205 GB, free: 35.99 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.209e-06/7.694, allocations: 0 / 3.205 GB, free: 35.99 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.376e-05/7.694, allocations: 8 kB / 3.205 GB, free: 35.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.69e-06/7.694, allocations: 7.516 kB / 3.205 GB, free: 35.98 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.913e-06/7.694, allocations: 0 / 3.205 GB, free: 35.98 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/7.696, allocations: 0.9146 MB / 3.206 GB, free: 35.13 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001911/7.696, allocations: 210.5 kB / 3.206 GB, free: 34.92 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.199e-05/7.696, allocations: 3.953 kB / 3.206 GB, free: 34.92 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003789/7.697, allocations: 35.5 kB / 3.206 GB, free: 34.89 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.673e-05/7.697, allocations: 35.22 kB / 3.206 GB, free: 34.87 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.164e-05/7.697, allocations: 8 kB / 3.206 GB, free: 34.86 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003144/7.697, allocations: 261.9 kB / 3.207 GB, free: 34.62 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.66e-07/7.697, allocations: 0 / 3.207 GB, free: 34.62 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00394/7.701, allocations: 0.9815 MB / 3.208 GB, free: 33.67 MB / 474.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: 17 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.007547/7.709, allocations: 1.446 MB / 3.209 GB, free: 32.46 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0007955/7.709, allocations: 465.8 kB / 3.209 GB, free: 32.04 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.995e-06/7.709, allocations: 0 / 3.209 GB, free: 32.04 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004581/7.71, allocations: 419.2 kB / 3.21 GB, free: 31.65 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/7.711, allocations: 160.5 kB / 3.21 GB, free: 31.54 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.405/8.116, allocations: 54.38 MB / 3.263 GB, free: 82.62 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005836/8.117, allocations: 0.9586 MB / 3.264 GB, free: 81.93 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001951/8.117, allocations: 40.97 kB / 3.264 GB, free: 81.92 MB / 490.7 MB Notification: Performance of SimCode: time 1.843e-06/8.117, allocations: 0.625 kB / 3.264 GB, free: 81.92 MB / 490.7 MB Notification: Performance of Templates: time 0.04493/8.162, allocations: 26.63 MB / 3.29 GB, free: 80.82 MB / 490.7 MB