Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.908/1.908, allocations: 209.3 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000431/0.0004312, allocations: 12 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3591, allocations: 48.71 MB / 331.8 MB, free: 6.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.065/7.425, allocations: 2.477 GB / 2.801 GB, free: 46.09 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/7.425, allocations: 91.81 kB / 2.801 GB, free: 46.04 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.087/8.512, allocations: 212.2 MB / 3.008 GB, free: 19.47 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.575e-06/8.512, allocations: 3.938 kB / 3.008 GB, free: 19.47 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.135e-05/8.512, allocations: 8 kB / 3.008 GB, free: 19.46 MB / 442.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.005478/8.518, allocations: 1.182 MB / 3.01 GB, free: 18.23 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/8.518, allocations: 8.031 kB / 3.01 GB, free: 18.22 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002369/8.52, allocations: 207.7 kB / 3.01 GB, free: 18.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009229/8.521, allocations: 394.6 kB / 3.01 GB, free: 17.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.079e-05/8.521, allocations: 28.66 kB / 3.01 GB, free: 17.57 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.561e-05/8.521, allocations: 28 kB / 3.01 GB, free: 17.54 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002221/8.523, allocations: 0.5926 MB / 3.011 GB, free: 16.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/8.524, allocations: 0 / 3.011 GB, free: 16.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.258e-05/8.524, allocations: 16 kB / 3.011 GB, free: 16.89 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/8.524, allocations: 8 kB / 3.011 GB, free: 16.88 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002465/8.526, allocations: 0.5562 MB / 3.011 GB, free: 16.33 MB / 442.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.003407/8.53, allocations: 2.539 MB / 3.014 GB, free: 13.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002232/8.532, allocations: 454.1 kB / 3.014 GB, free: 13.1 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4925/9.024, allocations: 51.3 MB / 3.064 GB, free: 48.21 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.817e-05/9.024, allocations: 35.02 kB / 3.064 GB, free: 48.18 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 2.795e-06/9.024, allocations: 2.656 kB / 3.064 GB, free: 48.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.004001/9.028, allocations: 0.7865 MB / 3.065 GB, free: 48.14 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.121e-05/9.029, allocations: 111.8 kB / 3.065 GB, free: 48.02 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003991/9.029, allocations: 286.3 kB / 3.065 GB, free: 47.91 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.411e-05/9.029, allocations: 32.83 kB / 3.066 GB, free: 47.88 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001351/9.029, allocations: 262.8 kB / 3.066 GB, free: 47.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.712e-05/9.029, allocations: 86.8 kB / 3.066 GB, free: 47.66 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.708e-05/9.029, allocations: 10.56 kB / 3.066 GB, free: 47.66 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.856e-05/9.029, allocations: 325 kB / 3.066 GB, free: 47.34 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006072/9.03, allocations: 138.5 kB / 3.066 GB, free: 47.34 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006736/9.031, allocations: 271.7 kB / 3.067 GB, free: 47.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006448/9.031, allocations: 160.2 kB / 3.067 GB, free: 47.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/9.031, allocations: 3.812 kB / 3.067 GB, free: 47.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001583/9.033, allocations: 437.1 kB / 3.067 GB, free: 47.16 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.731e-05/9.033, allocations: 10.72 kB / 3.067 GB, free: 47.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/9.033, allocations: 7.891 kB / 3.067 GB, free: 47.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.734e-05/9.033, allocations: 6.594 kB / 3.067 GB, free: 47.15 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006237/9.034, allocations: 94.06 kB / 3.067 GB, free: 47.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.486e-05/9.034, allocations: 12.03 kB / 3.067 GB, free: 47.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006046/9.034, allocations: 60.83 kB / 3.067 GB, free: 47.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.095e-05/9.034, allocations: 20.53 kB / 3.067 GB, free: 47.14 MB / 442.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.0002802/9.035, allocations: 167.4 kB / 3.067 GB, free: 47.03 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.009e-05/9.035, allocations: 32.56 kB / 3.068 GB, free: 47.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003393/9.038, allocations: 1.907 MB / 3.069 GB, free: 46.82 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.954e-05/9.038, allocations: 31.05 kB / 3.069 GB, free: 46.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/9.038, allocations: 0 / 3.069 GB, free: 46.82 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/9.038, allocations: 6.594 kB / 3.069 GB, free: 46.82 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001346/9.04, allocations: 0.9752 MB / 3.07 GB, free: 46.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/9.04, allocations: 0 / 3.07 GB, free: 46.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005714/9.04, allocations: 78.61 kB / 3.07 GB, free: 46.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.166e-06/9.04, allocations: 0 / 3.07 GB, free: 46.59 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.907e-05/9.04, allocations: 11.28 kB / 3.07 GB, free: 46.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/9.04, allocations: 3.938 kB / 3.07 GB, free: 46.59 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/9.04, allocations: 3.953 kB / 3.07 GB, free: 46.59 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002064/9.043, allocations: 1.073 MB / 3.072 GB, free: 46.37 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002419/9.043, allocations: 210.1 kB / 3.072 GB, free: 46.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/9.043, allocations: 5.062 kB / 3.072 GB, free: 46.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000504/9.043, allocations: 46.45 kB / 3.072 GB, free: 46.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/9.044, allocations: 37.52 kB / 3.072 GB, free: 46.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.687e-05/9.044, allocations: 11.44 kB / 3.072 GB, free: 46.23 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003861/9.044, allocations: 258 kB / 3.072 GB, free: 46.14 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.51e-07/9.044, allocations: 0 / 3.072 GB, free: 46.14 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00502/9.049, allocations: 1.001 MB / 3.073 GB, free: 46.14 MB / 442.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,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.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.009637/9.059, allocations: 1.376 MB / 3.074 GB, free: 46.03 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001765/9.061, allocations: 0.602 MB / 3.075 GB, free: 46.02 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/9.061, allocations: 1.719 kB / 3.075 GB, free: 46.02 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009687/9.062, allocations: 0.5133 MB / 3.075 GB, free: 46.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001633/9.063, allocations: 172.9 kB / 3.076 GB, free: 46.01 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2375/9.301, allocations: 75.84 MB / 3.15 GB, free: 32.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004526/9.301, allocations: 0.9797 MB / 3.151 GB, free: 31.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000208/9.302, allocations: 38.62 kB / 3.151 GB, free: 31.47 MB / 442.7 MB Notification: Performance of SimCode: time 1.553e-06/9.302, allocations: 4 kB / 3.151 GB, free: 31.46 MB / 442.7 MB Notification: Performance of Templates: time 0.05462/9.356, allocations: 26.22 MB / 3.176 GB, free: 13.85 MB / 442.7 MB