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.TestValveLinear.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.TestValveLinear,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.TestValveLinear") Notification: Performance of loadModel(ModelicaTest): time 2.121/2.121, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.508e-05/1.515e-05, allocations: 4 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2688, allocations: 54.86 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.587/6.856, allocations: 2.587 GB / 2.936 GB, free: 107.8 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/6.856, allocations: 82.33 kB / 2.936 GB, free: 107.8 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8942/7.751, allocations: 212.8 MB / 3.144 GB, free: 75.05 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.406e-06/7.751, allocations: 3.406 kB / 3.144 GB, free: 75.05 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.904e-05/7.751, allocations: 15.25 kB / 3.144 GB, free: 75.05 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.004297/7.755, allocations: 1.18 MB / 3.145 GB, free: 74.36 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/7.755, allocations: 10.66 kB / 3.145 GB, free: 74.36 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002207/7.757, allocations: 223.3 kB / 3.146 GB, free: 74.32 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007068/7.758, allocations: 379 kB / 3.146 GB, free: 74.04 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.74e-05/7.758, allocations: 15.92 kB / 3.146 GB, free: 74.04 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.573e-05/7.758, allocations: 15.81 kB / 3.146 GB, free: 74.04 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006746/7.759, allocations: 298.6 kB / 3.146 GB, free: 73.93 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000648/7.76, allocations: 384.2 kB / 3.147 GB, free: 73.7 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/7.76, allocations: 1.969 kB / 3.147 GB, free: 73.7 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.882e-05/7.76, allocations: 3.344 kB / 3.147 GB, free: 73.7 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/7.76, allocations: 14.53 kB / 3.147 GB, free: 73.7 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.006059/7.766, allocations: 3.889 MB / 3.15 GB, free: 70.66 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005087/7.766, allocations: 227.4 kB / 3.151 GB, free: 70.57 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002251/7.766, allocations: 119.9 kB / 3.151 GB, free: 70.52 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1261/7.893, allocations: 50.24 MB / 3.2 GB, free: 41.15 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.781e-05/7.893, allocations: 34.42 kB / 3.2 GB, free: 41.11 MB / 474.7 MB Notification: Performance of pre-optimization done (n=24): time 3.415e-06/7.893, allocations: 0 / 3.2 GB, free: 41.11 MB / 474.7 MB Notification: Performance of matching and sorting (n=24): time 0.002137/7.895, allocations: 0.4996 MB / 3.2 GB, free: 40.7 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/7.895, allocations: 114.6 kB / 3.201 GB, free: 40.56 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003008/7.895, allocations: 242.9 kB / 3.201 GB, free: 40.34 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/7.895, allocations: 25.7 kB / 3.201 GB, free: 40.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/7.895, allocations: 276.2 kB / 3.201 GB, free: 40.04 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.607e-05/7.896, allocations: 74 kB / 3.201 GB, free: 39.98 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.896e-05/7.896, allocations: 0 / 3.201 GB, free: 39.98 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 6.036e-05/7.896, allocations: 334.5 kB / 3.201 GB, free: 39.64 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000173/7.896, allocations: 88.11 kB / 3.202 GB, free: 39.56 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002185/7.896, allocations: 199.2 kB / 3.202 GB, free: 39.32 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008894/7.897, allocations: 171.7 kB / 3.202 GB, free: 39.18 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.713e-06/7.897, allocations: 0 / 3.202 GB, free: 39.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001261/7.898, allocations: 368.6 kB / 3.202 GB, free: 38.85 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/7.898, allocations: 7.703 kB / 3.202 GB, free: 38.85 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/7.898, allocations: 4 kB / 3.202 GB, free: 38.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/7.898, allocations: 8 kB / 3.202 GB, free: 38.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004843/7.899, allocations: 107.1 kB / 3.202 GB, free: 38.75 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.044e-06/7.899, allocations: 11.94 kB / 3.202 GB, free: 38.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004862/7.899, allocations: 58.72 kB / 3.202 GB, free: 38.69 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.3e-05/7.899, allocations: 27.75 kB / 3.202 GB, free: 38.66 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: 4 (SourceP1.medium.phase,SinkP1.medium.phase,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.0001083/7.9, allocations: 120.8 kB / 3.203 GB, free: 38.54 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.38e-05/7.9, allocations: 31.62 kB / 3.203 GB, free: 38.51 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002212/7.902, allocations: 1.614 MB / 3.204 GB, free: 37.05 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.857e-05/7.902, allocations: 31.53 kB / 3.204 GB, free: 37.04 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.572e-06/7.902, allocations: 0 / 3.204 GB, free: 37.04 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.788e-06/7.902, allocations: 3.656 kB / 3.204 GB, free: 37.04 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009587/7.903, allocations: 0.8263 MB / 3.205 GB, free: 36.29 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/7.903, allocations: 0 / 3.205 GB, free: 36.29 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004327/7.903, allocations: 90.12 kB / 3.205 GB, free: 36.22 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.866e-06/7.903, allocations: 0 / 3.205 GB, free: 36.22 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.444e-05/7.903, allocations: 8 kB / 3.205 GB, free: 36.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.678e-06/7.903, allocations: 0 / 3.205 GB, free: 36.21 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.909e-06/7.903, allocations: 3.938 kB / 3.205 GB, free: 36.21 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/7.905, allocations: 0.9111 MB / 3.206 GB, free: 35.37 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000193/7.905, allocations: 218.2 kB / 3.206 GB, free: 35.15 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.15e-05/7.905, allocations: 3.953 kB / 3.206 GB, free: 35.15 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004165/7.906, allocations: 50.75 kB / 3.206 GB, free: 35.11 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.294e-05/7.906, allocations: 27.06 kB / 3.206 GB, free: 35.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.907e-05/7.906, allocations: 8 kB / 3.206 GB, free: 35.09 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003192/7.906, allocations: 265.1 kB / 3.207 GB, free: 34.85 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.438e-06/7.906, allocations: 4 kB / 3.207 GB, free: 34.85 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003941/7.91, allocations: 0.9854 MB / 3.207 GB, free: 33.88 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: 16 ($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) * 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.007432/7.918, allocations: 1.435 MB / 3.209 GB, free: 32.68 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0008119/7.918, allocations: 468.4 kB / 3.209 GB, free: 32.25 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.826e-06/7.918, allocations: 0 / 3.209 GB, free: 32.25 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004561/7.919, allocations: 416.2 kB / 3.21 GB, free: 31.87 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/7.92, allocations: 170 kB / 3.21 GB, free: 31.76 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4139/8.334, allocations: 54.37 MB / 3.263 GB, free: 82.66 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005664/8.335, allocations: 0.9612 MB / 3.264 GB, free: 81.96 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000201/8.335, allocations: 39.8 kB / 3.264 GB, free: 81.95 MB / 490.7 MB Notification: Performance of SimCode: time 1.907e-06/8.335, allocations: 1.938 kB / 3.264 GB, free: 81.95 MB / 490.7 MB Notification: Performance of Templates: time 0.04571/8.381, allocations: 26.68 MB / 3.29 GB, free: 80.84 MB / 490.7 MB