Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.679/2.679, allocations: 270 MB / 282.7 MB, free: 1.82 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.756e-05/3.76e-05, allocations: 0 / 347.1 MB, free: 3.105 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4207/0.4208, allocations: 61.86 MB / 408.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.739/9.16, allocations: 2.777 GB / 3.177 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/9.16, allocations: 90.62 kB / 3.177 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.331/12.49, allocations: 0.5839 GB / 3.761 GB, free: 50.42 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.425e-06/12.49, allocations: 0 / 3.761 GB, free: 50.42 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000188/12.49, allocations: 41.95 kB / 3.761 GB, free: 50.41 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.01593/12.51, allocations: 2.556 MB / 3.763 GB, free: 49.42 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.193e-05/12.51, allocations: 7.781 kB / 3.763 GB, free: 49.42 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006663/12.51, allocations: 171.2 kB / 3.763 GB, free: 49.38 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0104/12.52, allocations: 0.8663 MB / 3.764 GB, free: 49.29 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003712/12.52, allocations: 1.037 MB / 3.765 GB, free: 48.96 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/12.52, allocations: 100.5 kB / 3.765 GB, free: 48.96 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005624/12.52, allocations: 116.7 kB / 3.766 GB, free: 48.96 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007816/12.53, allocations: 2.146 MB / 3.768 GB, free: 48.6 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.832e-05/12.53, allocations: 6.969 kB / 3.768 GB, free: 48.6 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000283/12.53, allocations: 52.84 kB / 3.768 GB, free: 48.6 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.049e-05/12.53, allocations: 32.19 kB / 3.768 GB, free: 48.6 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008092/12.54, allocations: 1.946 MB / 3.77 GB, free: 48.6 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02063/12.56, allocations: 8.726 MB / 3.778 GB, free: 43.35 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008361/12.57, allocations: 1.875 MB / 3.78 GB, free: 43.32 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001615/12.57, allocations: 0.529 MB / 3.78 GB, free: 43.31 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07687/12.65, allocations: 24.03 MB / 3.804 GB, free: 28.53 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.52e-05/12.65, allocations: 47.31 kB / 3.804 GB, free: 28.49 MB / 0.5417 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001622/12.65, allocations: 169.2 kB / 3.804 GB, free: 28.42 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=108): time 5.441e-06/12.65, allocations: 0 / 3.804 GB, free: 28.42 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108): time 0.01194/12.66, allocations: 2.462 MB / 3.807 GB, free: 28.27 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.956e-05/12.66, allocations: 192.6 kB / 3.807 GB, free: 28.05 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001821/12.66, allocations: 0.8989 MB / 3.808 GB, free: 27.88 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0004339/12.66, allocations: 50.3 kB / 3.808 GB, free: 27.85 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000456/12.66, allocations: 0.5537 MB / 3.808 GB, free: 27.56 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004575/12.66, allocations: 366.4 kB / 3.809 GB, free: 27.32 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/12.66, allocations: 25.91 kB / 3.809 GB, free: 27.32 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001158/12.66, allocations: 362.1 kB / 3.809 GB, free: 27.01 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/12.67, allocations: 460 kB / 3.809 GB, free: 27.01 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00162/12.67, allocations: 0.7624 MB / 3.81 GB, free: 26.66 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001579/12.67, allocations: 0.5283 MB / 3.811 GB, free: 26.63 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/12.67, allocations: 0 / 3.811 GB, free: 26.63 MB / 0.5417 GB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004474/12.67, allocations: 1.477 MB / 3.812 GB, free: 26.52 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007098/12.67, allocations: 3.142 MB / 3.815 GB, free: 23.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.15e-05/12.67, allocations: 7.812 kB / 3.815 GB, free: 23.23 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01262/12.69, allocations: 1.169 MB / 3.816 GB, free: 23.18 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003312/12.69, allocations: 419.6 kB / 3.817 GB, free: 23.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001748/12.69, allocations: 0.9255 MB / 3.818 GB, free: 22.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003304/12.7, allocations: 181.1 kB / 3.818 GB, free: 22.62 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004452/12.7, allocations: 79.91 kB / 3.818 GB, free: 22.62 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/12.7, allocations: 6.719 kB / 3.818 GB, free: 22.62 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004237/12.7, allocations: 1.321 MB / 3.819 GB, free: 22.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.118e-05/12.7, allocations: 15.23 kB / 3.819 GB, free: 22.57 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004564/12.7, allocations: 78.36 kB / 3.819 GB, free: 22.56 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003583/12.7, allocations: 454.7 kB / 3.82 GB, free: 22.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002736/12.71, allocations: 1.728 MB / 3.821 GB, free: 21.18 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002477/12.71, allocations: 177.6 kB / 3.821 GB, free: 21.16 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000254/12.71, allocations: 74.97 kB / 3.822 GB, free: 21.16 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 15 (SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase,V5.state_b.phase,V5.state_a.phase,V4.state_b.phase,V4.state_a.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 147 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 22} Notification: Performance of prepare postOptimizeDAE: time 0.0005299/12.71, allocations: 196.8 kB / 3.822 GB, free: 21.05 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004864/12.71, allocations: 138.5 kB / 3.822 GB, free: 20.98 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0113/12.72, allocations: 6.685 MB / 3.828 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001055/12.72, allocations: 87.44 kB / 3.828 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/12.72, allocations: 0 / 3.828 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.811e-05/12.72, allocations: 11.17 kB / 3.829 GB, free: 20.25 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01423/12.74, allocations: 8.566 MB / 3.837 GB, free: 19.56 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/12.74, allocations: 0 / 3.837 GB, free: 19.56 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002135/12.74, allocations: 297.8 kB / 3.837 GB, free: 19.55 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01105/12.75, allocations: 2.296 MB / 3.839 GB, free: 19.47 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003624/12.75, allocations: 44.84 kB / 3.839 GB, free: 19.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003205/12.75, allocations: 1.604 MB / 3.841 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/12.75, allocations: 3.75 kB / 3.841 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006511/12.76, allocations: 3.514 MB / 3.844 GB, free: 34.38 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001822/12.76, allocations: 0.7451 MB / 3.845 GB, free: 34.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000536/12.76, allocations: 27.5 kB / 3.845 GB, free: 34.04 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002425/12.77, allocations: 157.3 kB / 3.845 GB, free: 34.02 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003595/12.77, allocations: 120.6 kB / 3.845 GB, free: 34.01 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/12.77, allocations: 56.92 kB / 3.846 GB, free: 34.01 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002411/12.77, allocations: 1.18 MB / 3.847 GB, free: 33.85 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.122e-06/12.77, allocations: 3.094 kB / 3.847 GB, free: 33.85 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00962/12.78, allocations: 1.846 MB / 3.848 GB, free: 33.64 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 51 ($cse5.phase,$cse5.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse38.phase,$cse38.region,$cse39.phase,$cse39.region,$cse41.phase,$cse41.region,$cse42.phase,$cse42.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse55.phase,$cse55.region,$cse56.phase,$cse56.region,$cse59.phase,$cse59.region,$cse63.phase,$cse63.region,$cse67.phase,$cse67.region,SourceP1.medium.phase,SourceP2.medium.phase,SinkP1.medium.phase,SinkP2.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 34} Notification: Performance of Backend phase and start with SimCode phase: time 0.0187/12.8, allocations: 5.886 MB / 3.854 GB, free: 32.14 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006732/12.8, allocations: 2.68 MB / 3.857 GB, free: 31.98 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/12.8, allocations: 7.656 kB / 3.857 GB, free: 31.98 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002818/12.81, allocations: 1.536 MB / 3.858 GB, free: 31.96 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006937/12.81, allocations: 0.7338 MB / 3.859 GB, free: 31.89 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01419/12.83, allocations: 4.718 MB / 3.864 GB, free: 30.49 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001431/12.83, allocations: 1.774 MB / 3.865 GB, free: 29.71 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001944/12.83, allocations: 1.028 MB / 3.866 GB, free: 28.88 MB / 0.5573 GB Notification: Performance of SimCode: time 1.984e-06/12.83, allocations: 4 kB / 3.866 GB, free: 28.88 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.667/17.5, allocations: 68.49 MB / 3.933 GB, free: 63.46 MB / 0.5573 GB