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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.932/1.932, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.75e-05/1.772e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2653, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.724/5.989, allocations: 2.476 GB / 2.789 GB, free: 31.32 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003563/5.989, allocations: 83.7 kB / 2.789 GB, free: 31.28 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.138/7.128, allocations: 208.9 MB / 2.993 GB, free: 62.28 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.37e-06/7.128, allocations: 0 / 2.993 GB, free: 62.28 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.646e-05/7.128, allocations: 17 kB / 2.993 GB, free: 62.28 MB / 426.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.004238/7.132, allocations: 1.147 MB / 2.994 GB, free: 61.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/7.132, allocations: 9.469 kB / 2.994 GB, free: 61.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00222/7.134, allocations: 201.2 kB / 2.994 GB, free: 61.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007472/7.135, allocations: 394.9 kB / 2.995 GB, free: 61.51 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.192e-05/7.135, allocations: 18.53 kB / 2.995 GB, free: 61.51 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.39e-05/7.135, allocations: 16.34 kB / 2.995 GB, free: 61.51 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007248/7.136, allocations: 298.9 kB / 2.995 GB, free: 61.51 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007223/7.137, allocations: 377.3 kB / 2.995 GB, free: 61.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/7.137, allocations: 2.906 kB / 2.995 GB, free: 61.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.077e-05/7.137, allocations: 2.656 kB / 2.995 GB, free: 61.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/7.137, allocations: 11.78 kB / 2.995 GB, free: 61.38 MB / 426.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.005828/7.143, allocations: 3.864 MB / 2.999 GB, free: 58.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004918/7.143, allocations: 222.3 kB / 2.999 GB, free: 58.66 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/7.143, allocations: 122.1 kB / 2.999 GB, free: 58.65 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1208/7.264, allocations: 50.19 MB / 3.048 GB, free: 31.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.583e-05/7.264, allocations: 40.64 kB / 3.048 GB, free: 31.35 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 3.423e-06/7.264, allocations: 4 kB / 3.048 GB, free: 31.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=24): time 0.002189/7.267, allocations: 0.4993 MB / 3.049 GB, free: 31.29 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/7.267, allocations: 111.2 kB / 3.049 GB, free: 31.17 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002992/7.267, allocations: 244.3 kB / 3.049 GB, free: 31.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/7.267, allocations: 25.7 kB / 3.049 GB, free: 31.03 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/7.267, allocations: 279 kB / 3.05 GB, free: 30.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.871e-05/7.267, allocations: 70.12 kB / 3.05 GB, free: 30.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.928e-05/7.267, allocations: 3.875 kB / 3.05 GB, free: 30.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 5.851e-05/7.267, allocations: 320 kB / 3.05 GB, free: 30.49 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/7.267, allocations: 83.91 kB / 3.05 GB, free: 30.48 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002223/7.268, allocations: 209.2 kB / 3.05 GB, free: 30.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008678/7.269, allocations: 167.5 kB / 3.05 GB, free: 30.33 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.397e-06/7.269, allocations: 3.172 kB / 3.05 GB, free: 30.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001315/7.27, allocations: 362.9 kB / 3.051 GB, free: 30.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/7.27, allocations: 7.734 kB / 3.051 GB, free: 30.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.832e-06/7.27, allocations: 3.906 kB / 3.051 GB, free: 30.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/7.27, allocations: 7.5 kB / 3.051 GB, free: 30.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004326/7.27, allocations: 104.3 kB / 3.051 GB, free: 30.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/7.27, allocations: 15.58 kB / 3.051 GB, free: 30.28 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004989/7.271, allocations: 53.2 kB / 3.051 GB, free: 30.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.493e-05/7.271, allocations: 23.16 kB / 3.051 GB, free: 30.27 MB / 426.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.0001159/7.271, allocations: 119.9 kB / 3.051 GB, free: 30.16 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.976e-05/7.271, allocations: 30.75 kB / 3.051 GB, free: 30.14 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002382/7.274, allocations: 1.622 MB / 3.053 GB, free: 29.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.904e-05/7.274, allocations: 25.64 kB / 3.053 GB, free: 29.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.83e-06/7.274, allocations: 7.953 kB / 3.053 GB, free: 29.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.665e-06/7.274, allocations: 0 / 3.053 GB, free: 29.95 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001036/7.275, allocations: 0.8177 MB / 3.053 GB, free: 29.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.427e-06/7.275, allocations: 3.891 kB / 3.053 GB, free: 29.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000402/7.275, allocations: 77.41 kB / 3.054 GB, free: 29.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.556e-06/7.275, allocations: 4 kB / 3.054 GB, free: 29.72 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/7.275, allocations: 10.16 kB / 3.054 GB, free: 29.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.457e-06/7.275, allocations: 0 / 3.054 GB, free: 29.72 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/7.275, allocations: 4.688 kB / 3.054 GB, free: 29.72 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001549/7.277, allocations: 0.9136 MB / 3.054 GB, free: 29.51 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002283/7.277, allocations: 211.4 kB / 3.055 GB, free: 29.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.154e-05/7.277, allocations: 3.75 kB / 3.055 GB, free: 29.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004226/7.278, allocations: 33.75 kB / 3.055 GB, free: 29.34 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.857e-05/7.278, allocations: 28.64 kB / 3.055 GB, free: 29.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.193e-05/7.278, allocations: 15.08 kB / 3.055 GB, free: 29.34 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003301/7.278, allocations: 256.1 kB / 3.055 GB, free: 29.25 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.43e-07/7.278, allocations: 0 / 3.055 GB, free: 29.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004049/7.282, allocations: 0.9832 MB / 3.056 GB, free: 29.09 MB / 426.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.007366/7.29, allocations: 1.429 MB / 3.057 GB, free: 28.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008151/7.291, allocations: 470.1 kB / 3.058 GB, free: 28.78 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.099e-06/7.291, allocations: 0 / 3.058 GB, free: 28.78 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004987/7.291, allocations: 420.4 kB / 3.058 GB, free: 28.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/7.292, allocations: 161 kB / 3.058 GB, free: 28.77 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1391/7.431, allocations: 54.38 MB / 3.111 GB, free: 18.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/7.432, allocations: 0.9565 MB / 3.112 GB, free: 17.89 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/7.432, allocations: 43.33 kB / 3.112 GB, free: 17.86 MB / 426.7 MB Notification: Performance of SimCode: time 2.129e-06/7.432, allocations: 0 / 3.112 GB, free: 17.86 MB / 426.7 MB Notification: Performance of Templates: time 0.04171/7.474, allocations: 26.47 MB / 3.138 GB, free: 15.84 MB / 442.7 MB