Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCoefficients",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.162/2.162, allocations: 209.4 MB / 216.9 MB, free: 6.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.964e-05/2.981e-05, allocations: 4 kB / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1177, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.85/7.968, allocations: 2.496 GB / 2.805 GB, free: 96.98 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003121/7.968, allocations: 85.09 kB / 2.805 GB, free: 96.96 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.591/11.56, allocations: 0.6124 GB / 3.418 GB, free: 35.11 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.454e-06/11.56, allocations: 0 / 3.418 GB, free: 35.11 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001432/11.56, allocations: 46.42 kB / 3.418 GB, free: 35.11 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01109/11.57, allocations: 2.358 MB / 3.42 GB, free: 34.16 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/11.57, allocations: 9.531 kB / 3.42 GB, free: 34.16 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01145/11.58, allocations: 0.9036 MB / 3.421 GB, free: 34.08 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00554/11.59, allocations: 1.053 MB / 3.422 GB, free: 33.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002342/11.59, allocations: 55.19 kB / 3.422 GB, free: 33.75 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004439/11.59, allocations: 66.59 kB / 3.422 GB, free: 33.75 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00521/11.59, allocations: 1.21 MB / 3.423 GB, free: 33.75 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005338/11.6, allocations: 1.415 MB / 3.425 GB, free: 33.31 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-05/11.6, allocations: 7.062 kB / 3.425 GB, free: 33.31 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003468/11.6, allocations: 10.39 kB / 3.425 GB, free: 33.31 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.473e-05/11.6, allocations: 32.31 kB / 3.425 GB, free: 33.31 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.431/13.03, allocations: 265.9 MB / 3.684 GB, free: 46.41 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007736/13.03, allocations: 342.3 kB / 3.685 GB, free: 46.38 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004614/13.03, allocations: 225.8 kB / 3.685 GB, free: 46.37 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0591/13.09, allocations: 15.7 MB / 3.7 GB, free: 38.14 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.873e-05/13.09, allocations: 42.94 kB / 3.7 GB, free: 38.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=48): time 3.287e-06/13.09, allocations: 0 / 3.7 GB, free: 38.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=48): time 0.008639/13.1, allocations: 1.599 MB / 3.702 GB, free: 38.04 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.788e-05/13.1, allocations: 266.3 kB / 3.702 GB, free: 37.73 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001887/13.1, allocations: 0.8667 MB / 3.703 GB, free: 37.57 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000177/13.1, allocations: 25.7 kB / 3.703 GB, free: 37.54 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000639/13.1, allocations: 0.7845 MB / 3.704 GB, free: 37.14 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002999/13.1, allocations: 181.6 kB / 3.704 GB, free: 37.05 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/13.1, allocations: 0 / 3.704 GB, free: 37.05 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001175/13.1, allocations: 360.6 kB / 3.704 GB, free: 36.74 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008089/13.1, allocations: 310.1 kB / 3.705 GB, free: 36.73 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/13.11, allocations: 0.885 MB / 3.705 GB, free: 35.98 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004788/13.11, allocations: 0.7449 MB / 3.706 GB, free: 35.95 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.993e-05/13.11, allocations: 7.188 kB / 3.706 GB, free: 35.95 MB / 0.5105 GB Notification: Performance of matching and sorting (n=167) (initialization): time 0.007124/13.12, allocations: 1.449 MB / 3.708 GB, free: 35.86 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001753/13.12, allocations: 7.326 MB / 3.715 GB, free: 28.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.507e-05/13.12, allocations: 17.56 kB / 3.715 GB, free: 28.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.699e-05/13.12, allocations: 31.72 kB / 3.715 GB, free: 28.18 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002715/13.12, allocations: 394.6 kB / 3.715 GB, free: 28.17 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.4e-05/13.12, allocations: 35.66 kB / 3.715 GB, free: 28.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003826/13.13, allocations: 358.8 kB / 3.716 GB, free: 28.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004106/13.13, allocations: 81.61 kB / 3.716 GB, free: 28.11 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/13.13, allocations: 11.5 kB / 3.716 GB, free: 28.11 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005691/13.13, allocations: 1.241 MB / 3.717 GB, free: 28.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.267e-05/13.13, allocations: 18.22 kB / 3.717 GB, free: 28.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.856e-05/13.13, allocations: 31.06 kB / 3.717 GB, free: 28.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002524/13.14, allocations: 394.2 kB / 3.717 GB, free: 28.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.165e-05/13.14, allocations: 38.92 kB / 3.717 GB, free: 28.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002553/13.14, allocations: 233.5 kB / 3.718 GB, free: 28.03 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003234/13.14, allocations: 82.7 kB / 3.718 GB, free: 28.03 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 16 (SourceP4.medium.phase,SinkP4.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP1.medium.phase,SinkP1.medium.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 (167): * Single equations (assignments): 167 * 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.0004387/13.14, allocations: 158.3 kB / 3.718 GB, free: 27.91 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004581/13.14, allocations: 0.7836 MB / 3.719 GB, free: 27.81 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002674/13.14, allocations: 119.5 kB / 3.719 GB, free: 27.75 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003937/13.15, allocations: 1.82 MB / 3.72 GB, free: 27.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/13.15, allocations: 6.797 kB / 3.72 GB, free: 27.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/13.15, allocations: 0 / 3.72 GB, free: 27.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/13.15, allocations: 3.328 kB / 3.72 GB, free: 27.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00293/13.15, allocations: 1.361 MB / 3.722 GB, free: 27.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/13.15, allocations: 5.594 kB / 3.722 GB, free: 27.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006931/13.15, allocations: 88.73 kB / 3.722 GB, free: 27.13 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-05/13.15, allocations: 6.422 kB / 3.722 GB, free: 27.13 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.985e-05/13.15, allocations: 0 / 3.722 GB, free: 27.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/13.15, allocations: 6.375 kB / 3.722 GB, free: 27.13 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/13.15, allocations: 5.469 kB / 3.722 GB, free: 27.13 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00227/13.15, allocations: 0.6959 MB / 3.723 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/13.16, allocations: 0.6077 MB / 3.723 GB, free: 26.64 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005664/13.16, allocations: 7.953 kB / 3.723 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/13.16, allocations: 88.22 kB / 3.723 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.906e-05/13.16, allocations: 31.7 kB / 3.723 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.442e-05/13.16, allocations: 13.56 kB / 3.723 GB, free: 26.62 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003042/13.16, allocations: 1.435 MB / 3.725 GB, free: 26.47 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.81e-07/13.16, allocations: 0 / 3.725 GB, free: 26.47 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01017/13.17, allocations: 1.743 MB / 3.726 GB, free: 26.35 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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 Backend phase and start with SimCode phase: time 0.01429/13.19, allocations: 3.253 MB / 3.73 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003248/13.19, allocations: 1.248 MB / 3.731 GB, free: 25.37 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/13.19, allocations: 0.8438 kB / 3.731 GB, free: 25.37 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003837/13.19, allocations: 156.2 kB / 3.731 GB, free: 25.37 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004535/13.19, allocations: 487.3 kB / 3.731 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009943/13.2, allocations: 2.347 MB / 3.734 GB, free: 24.59 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009228/13.2, allocations: 1.351 MB / 3.735 GB, free: 23.85 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001409/13.21, allocations: 0.7084 MB / 3.736 GB, free: 23.84 MB / 0.5105 GB Notification: Performance of SimCode: time 1.432e-06/13.21, allocations: 0 / 3.736 GB, free: 23.84 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.294/17.5, allocations: 50.7 MB / 3.785 GB, free: 95.38 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCoefficients_res.mat does not exist to compare? outputFormat=mat