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.TestValveCompressible.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible,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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCompressible") Notification: Performance of loadModel(ModelicaTest): time 1.84/1.84, allocations: 209.3 MB / 224.8 MB, free: 1.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000454/0.0004541, allocations: 11.98 kB / 282.6 MB, free: 9.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08841/0.08889, allocations: 48.71 MB / 331.3 MB, free: 8.934 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.124/6.213, allocations: 2.496 GB / 2.82 GB, free: 107.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002117/6.214, allocations: 84.33 kB / 2.82 GB, free: 107.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9242/7.138, allocations: 232 MB / 3.047 GB, free: 36 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.633e-06/7.138, allocations: 0 / 3.047 GB, free: 36 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.604e-05/7.138, allocations: 11.91 kB / 3.047 GB, free: 35.99 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.004392/7.142, allocations: 1.317 MB / 3.048 GB, free: 34.64 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/7.142, allocations: 12.03 kB / 3.048 GB, free: 34.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002452/7.145, allocations: 239.2 kB / 3.048 GB, free: 34.39 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000794/7.146, allocations: 425.4 kB / 3.049 GB, free: 33.94 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.253e-05/7.146, allocations: 28.66 kB / 3.049 GB, free: 33.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.143e-05/7.146, allocations: 32 kB / 3.049 GB, free: 33.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001796/7.148, allocations: 0.6261 MB / 3.049 GB, free: 33.22 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.738e-05/7.148, allocations: 3.688 kB / 3.049 GB, free: 33.22 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.019e-05/7.148, allocations: 23.95 kB / 3.049 GB, free: 33.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.04e-05/7.148, allocations: 8 kB / 3.049 GB, free: 33.19 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001911/7.15, allocations: 0.5864 MB / 3.05 GB, free: 32.61 MB / 426.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.002958/7.153, allocations: 2.652 MB / 3.052 GB, free: 29.75 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00201/7.155, allocations: 0.53 MB / 3.053 GB, free: 29.22 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3879/7.543, allocations: 54.79 MB / 3.106 GB, free: 61.66 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.32e-05/7.543, allocations: 39.09 kB / 3.106 GB, free: 61.62 MB / 442.7 MB Notification: Performance of pre-optimization done (n=28): time 3.897e-06/7.543, allocations: 2.906 kB / 3.106 GB, free: 61.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=28): time 0.00336/7.546, allocations: 0.7913 MB / 3.107 GB, free: 61.58 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/7.546, allocations: 110.1 kB / 3.107 GB, free: 61.46 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005001/7.547, allocations: 319.8 kB / 3.108 GB, free: 61.36 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.095e-05/7.547, allocations: 32.23 kB / 3.108 GB, free: 61.32 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/7.547, allocations: 289.6 kB / 3.108 GB, free: 61.15 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.999e-05/7.547, allocations: 99.61 kB / 3.108 GB, free: 61.1 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/7.547, allocations: 10.12 kB / 3.108 GB, free: 61.1 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.532e-05/7.547, allocations: 329.8 kB / 3.108 GB, free: 60.79 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004593/7.548, allocations: 148.5 kB / 3.108 GB, free: 60.79 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005393/7.548, allocations: 305 kB / 3.109 GB, free: 60.61 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006191/7.549, allocations: 184.4 kB / 3.109 GB, free: 60.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.375e-06/7.549, allocations: 4.938 kB / 3.109 GB, free: 60.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001363/7.55, allocations: 495.5 kB / 3.109 GB, free: 60.56 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003818/7.551, allocations: 1.831 MB / 3.111 GB, free: 58.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/7.551, allocations: 5.094 kB / 3.111 GB, free: 58.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.08e-05/7.551, allocations: 11.67 kB / 3.111 GB, free: 58.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005567/7.551, allocations: 113.8 kB / 3.111 GB, free: 58.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.694e-05/7.551, allocations: 9.438 kB / 3.111 GB, free: 58.66 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005934/7.552, allocations: 82.83 kB / 3.111 GB, free: 58.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.296e-05/7.552, allocations: 22.03 kB / 3.111 GB, free: 58.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/7.552, allocations: 6.656 kB / 3.111 GB, free: 58.65 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001282/7.553, allocations: 452.3 kB / 3.112 GB, free: 58.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/7.553, allocations: 8.641 kB / 3.112 GB, free: 58.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/7.553, allocations: 8.344 kB / 3.112 GB, free: 58.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005072/7.554, allocations: 110 kB / 3.112 GB, free: 58.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.594e-05/7.554, allocations: 14.73 kB / 3.112 GB, free: 58.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004274/7.554, allocations: 67.44 kB / 3.112 GB, free: 58.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.302e-05/7.554, allocations: 23.05 kB / 3.112 GB, free: 58.63 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (49): * Single equations (assignments): 49 * 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.0003528/7.555, allocations: 252.9 kB / 3.112 GB, free: 58.44 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001317/7.555, allocations: 38.44 kB / 3.112 GB, free: 58.42 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002866/7.558, allocations: 1.944 MB / 3.114 GB, free: 58.21 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-05/7.558, allocations: 36.95 kB / 3.114 GB, free: 58.21 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.928e-06/7.558, allocations: 3.375 kB / 3.114 GB, free: 58.21 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/7.558, allocations: 2.578 kB / 3.114 GB, free: 58.21 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/7.559, allocations: 1.021 MB / 3.115 GB, free: 57.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.402e-06/7.559, allocations: 2.875 kB / 3.115 GB, free: 57.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004562/7.56, allocations: 84.36 kB / 3.115 GB, free: 57.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.239e-06/7.56, allocations: 0 / 3.115 GB, free: 57.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.307e-05/7.56, allocations: 16.91 kB / 3.115 GB, free: 57.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.16e-06/7.56, allocations: 6.453 kB / 3.115 GB, free: 57.98 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.483e-06/7.56, allocations: 3.562 kB / 3.115 GB, free: 57.98 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001739/7.562, allocations: 1.108 MB / 3.117 GB, free: 57.73 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003335/7.562, allocations: 250.6 kB / 3.117 GB, free: 57.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.616e-05/7.562, allocations: 9.234 kB / 3.117 GB, free: 57.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000463/7.563, allocations: 42.48 kB / 3.117 GB, free: 57.58 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.43e-05/7.563, allocations: 33.02 kB / 3.117 GB, free: 57.58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.085e-05/7.563, allocations: 10.03 kB / 3.117 GB, free: 57.58 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005389/7.563, allocations: 323.6 kB / 3.117 GB, free: 57.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.9e-07/7.563, allocations: 1.25 kB / 3.117 GB, free: 57.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004844/7.568, allocations: 1.151 MB / 3.118 GB, free: 57.49 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: 18 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.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 (40): * Single equations (assignments): 31 * 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.008152/7.576, allocations: 1.425 MB / 3.12 GB, free: 57.37 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002182/7.579, allocations: 0.8582 MB / 3.121 GB, free: 57.35 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.126e-06/7.579, allocations: 1.688 kB / 3.121 GB, free: 57.35 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008709/7.579, allocations: 0.517 MB / 3.121 GB, free: 57.35 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/7.581, allocations: 200.7 kB / 3.121 GB, free: 57.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1918/7.773, allocations: 80.92 MB / 3.2 GB, free: 47.98 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004506/7.773, allocations: 1.003 MB / 3.201 GB, free: 47.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/7.773, allocations: 56.55 kB / 3.201 GB, free: 47.03 MB / 442.7 MB Notification: Performance of SimCode: time 1.88e-06/7.773, allocations: 0 / 3.201 GB, free: 47.03 MB / 442.7 MB Notification: Performance of Templates: time 0.04465/7.818, allocations: 27.55 MB / 3.228 GB, free: 30.59 MB / 442.7 MB