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.TestValveVaporizing.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.TestValveVaporizing,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|V1.minLimiter.y|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.TestValveVaporizing") Notification: Performance of loadModel(ModelicaTest): time 2.172/2.172, allocations: 234.9 MB / 250.5 MB, free: 9.523 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004277/0.0004278, allocations: 8 kB / 314.4 MB, free: 9.543 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2699, allocations: 54.87 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.252/6.522, allocations: 2.635 GB / 2.996 GB, free: 151.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/6.522, allocations: 84.33 kB / 2.996 GB, free: 151.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.023/7.546, allocations: 236.3 MB / 3.226 GB, free: 74.74 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.257e-06/7.546, allocations: 0 / 3.226 GB, free: 74.74 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.597e-05/7.546, allocations: 11.84 kB / 3.226 GB, free: 74.74 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.00492/7.551, allocations: 1.355 MB / 3.228 GB, free: 73.88 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/7.551, allocations: 11.59 kB / 3.228 GB, free: 73.88 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002887/7.554, allocations: 261.3 kB / 3.228 GB, free: 73.84 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009064/7.555, allocations: 428.3 kB / 3.228 GB, free: 73.53 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.083e-05/7.555, allocations: 31.41 kB / 3.228 GB, free: 73.52 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.577e-05/7.555, allocations: 33.56 kB / 3.228 GB, free: 73.5 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002067/7.557, allocations: 0.6706 MB / 3.229 GB, free: 73.23 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/7.557, allocations: 3.938 kB / 3.229 GB, free: 73.22 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.019e-05/7.557, allocations: 15.78 kB / 3.229 GB, free: 73.21 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/7.557, allocations: 9.781 kB / 3.229 GB, free: 73.21 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002356/7.559, allocations: 0.6519 MB / 3.23 GB, free: 73.07 MB / 490.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.003253/7.563, allocations: 2.76 MB / 3.232 GB, free: 70.75 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002081/7.565, allocations: 0.5128 MB / 3.233 GB, free: 70.62 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1268/7.692, allocations: 51.48 MB / 3.283 GB, free: 34.88 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/7.692, allocations: 35.03 kB / 3.283 GB, free: 34.84 MB / 490.7 MB Notification: Performance of pre-optimization done (n=27): time 3.081e-06/7.692, allocations: 0 / 3.283 GB, free: 34.84 MB / 490.7 MB Notification: Performance of matching and sorting (n=27): time 0.003699/7.695, allocations: 0.8747 MB / 3.284 GB, free: 34.14 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.979e-05/7.695, allocations: 110.4 kB / 3.284 GB, free: 34.01 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004312/7.696, allocations: 306.8 kB / 3.284 GB, free: 33.73 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/7.696, allocations: 29.27 kB / 3.285 GB, free: 33.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/7.696, allocations: 289.9 kB / 3.285 GB, free: 33.43 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.52e-05/7.696, allocations: 101.7 kB / 3.285 GB, free: 33.34 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.507e-05/7.696, allocations: 7.938 kB / 3.285 GB, free: 33.33 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.207e-05/7.696, allocations: 326.6 kB / 3.285 GB, free: 33.01 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000628/7.697, allocations: 177 kB / 3.285 GB, free: 32.87 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006779/7.698, allocations: 310.5 kB / 3.286 GB, free: 32.54 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006602/7.698, allocations: 206.7 kB / 3.286 GB, free: 32.36 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.763e-06/7.698, allocations: 3.938 kB / 3.286 GB, free: 32.36 MB / 490.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001597/7.7, allocations: 0.5009 MB / 3.286 GB, free: 31.92 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003022/7.7, allocations: 1.484 MB / 3.288 GB, free: 30.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/7.7, allocations: 4 kB / 3.288 GB, free: 30.32 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/7.7, allocations: 8 kB / 3.288 GB, free: 30.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005829/7.701, allocations: 118.6 kB / 3.288 GB, free: 30.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/7.701, allocations: 15.73 kB / 3.288 GB, free: 30.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006366/7.702, allocations: 82.66 kB / 3.288 GB, free: 30.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.282e-05/7.702, allocations: 23.56 kB / 3.288 GB, free: 30.11 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/7.702, allocations: 4 kB / 3.288 GB, free: 30.11 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001501/7.703, allocations: 481.2 kB / 3.289 GB, free: 29.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.41e-06/7.703, allocations: 4 kB / 3.289 GB, free: 29.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/7.703, allocations: 8 kB / 3.289 GB, free: 29.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005434/7.704, allocations: 114.4 kB / 3.289 GB, free: 29.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/7.704, allocations: 19.69 kB / 3.289 GB, free: 29.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004859/7.704, allocations: 74.91 kB / 3.289 GB, free: 29.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.44e-05/7.704, allocations: 19.8 kB / 3.289 GB, free: 29.51 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (SourceP1.medium.phase,SinkP1.medium.phase,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 (44): * Single equations (assignments): 44 * 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.0003015/7.705, allocations: 237 kB / 3.289 GB, free: 29.27 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/7.705, allocations: 42.33 kB / 3.289 GB, free: 29.23 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002971/7.708, allocations: 1.997 MB / 3.291 GB, free: 27.45 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-05/7.708, allocations: 34.53 kB / 3.291 GB, free: 27.43 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.031e-06/7.708, allocations: 3.953 kB / 3.291 GB, free: 27.43 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.886e-06/7.708, allocations: 3.703 kB / 3.291 GB, free: 27.43 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/7.709, allocations: 1.015 MB / 3.292 GB, free: 26.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.634e-06/7.709, allocations: 0 / 3.292 GB, free: 26.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004866/7.71, allocations: 98.31 kB / 3.292 GB, free: 26.43 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/7.71, allocations: 4 kB / 3.292 GB, free: 26.42 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.846e-05/7.71, allocations: 12 kB / 3.292 GB, free: 26.41 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.159e-06/7.71, allocations: 0 / 3.292 GB, free: 26.41 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.946e-06/7.71, allocations: 0 / 3.292 GB, free: 26.41 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/7.712, allocations: 1.15 MB / 3.293 GB, free: 25.36 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003295/7.712, allocations: 253.1 kB / 3.293 GB, free: 25.12 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.608e-05/7.712, allocations: 12 kB / 3.293 GB, free: 25.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005188/7.713, allocations: 57.69 kB / 3.294 GB, free: 25.07 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/7.713, allocations: 27.2 kB / 3.294 GB, free: 25.05 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/7.713, allocations: 8 kB / 3.294 GB, free: 25.04 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004466/7.713, allocations: 319.7 kB / 3.294 GB, free: 24.77 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.84e-07/7.713, allocations: 0 / 3.294 GB, free: 24.77 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004455/7.718, allocations: 1.172 MB / 3.295 GB, free: 23.63 MB / 490.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: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 29 * 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.007516/7.725, allocations: 1.433 MB / 3.296 GB, free: 22.48 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002533/7.728, allocations: 0.9195 MB / 3.297 GB, free: 21.69 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/7.728, allocations: 0 / 3.297 GB, free: 21.69 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009349/7.729, allocations: 0.546 MB / 3.298 GB, free: 21.19 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/7.73, allocations: 200.7 kB / 3.298 GB, free: 21.05 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.467/8.197, allocations: 77.24 MB / 3.373 GB, free: 73.17 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004414/8.198, allocations: 0.9971 MB / 3.374 GB, free: 72.46 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002054/8.198, allocations: 51.72 kB / 3.375 GB, free: 72.46 MB / 490.7 MB Notification: Performance of SimCode: time 1.583e-06/8.198, allocations: 0 / 3.375 GB, free: 72.46 MB / 490.7 MB Notification: Performance of Templates: time 0.04544/8.243, allocations: 27.73 MB / 3.402 GB, free: 69.46 MB / 490.7 MB