Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValvesCompressibleReverse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.997/1.997, allocations: 209.4 MB / 216.9 MB, free: 6.652 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.21e-05/3.221e-05, allocations: 4 kB / 267.6 MB, free: 5.305 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1128, allocations: 48.7 MB / 316.3 MB, free: 4.508 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.688/7.801, allocations: 2.497 GB / 2.805 GB, free: 99.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003103/7.802, allocations: 84.08 kB / 2.806 GB, free: 99.29 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.985/10.79, allocations: 0.5557 GB / 3.361 GB, free: 26.97 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.575e-06/10.79, allocations: 0 / 3.361 GB, free: 26.97 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001363/10.79, allocations: 35.53 kB / 3.361 GB, free: 26.96 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: 284 * Number of variables: 284 Notification: Performance of Generate backend data structure: time 0.01507/10.8, allocations: 2.475 MB / 3.364 GB, free: 25.67 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/10.8, allocations: 10.69 kB / 3.364 GB, free: 25.67 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009979/10.81, allocations: 0.8157 MB / 3.364 GB, free: 25.51 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003697/10.82, allocations: 1.063 MB / 3.366 GB, free: 24.92 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/10.82, allocations: 50.44 kB / 3.366 GB, free: 24.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003424/10.82, allocations: 68.41 kB / 3.366 GB, free: 24.91 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003574/10.82, allocations: 1.372 MB / 3.367 GB, free: 24.41 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003103/10.82, allocations: 1.365 MB / 3.368 GB, free: 23.68 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.725e-05/10.82, allocations: 3.062 kB / 3.368 GB, free: 23.68 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001911/10.82, allocations: 3.406 kB / 3.368 GB, free: 23.68 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.087e-05/10.82, allocations: 31.12 kB / 3.368 GB, free: 23.67 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.659/12.48, allocations: 231.1 MB / 3.594 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003649/12.49, allocations: 0.9113 MB / 3.595 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001058/12.49, allocations: 376.7 kB / 3.595 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1684/12.66, allocations: 48.05 MB / 3.642 GB, free: 83.44 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.716e-05/12.66, allocations: 37.91 kB / 3.642 GB, free: 83.4 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001478/12.66, allocations: 127 kB / 3.642 GB, free: 83.39 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=82): time 5.711e-06/12.66, allocations: 0 / 3.642 GB, free: 83.39 MB / 0.5105 GB Notification: Performance of matching and sorting (n=82): time 0.01046/12.67, allocations: 1.984 MB / 3.644 GB, free: 83.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.106e-05/12.67, allocations: 192.9 kB / 3.645 GB, free: 83.08 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001608/12.67, allocations: 0.8185 MB / 3.645 GB, free: 82.92 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002779/12.67, allocations: 29.7 kB / 3.645 GB, free: 82.89 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005352/12.67, allocations: 0.6804 MB / 3.646 GB, free: 82.55 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003481/12.67, allocations: 285.2 kB / 3.646 GB, free: 82.41 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/12.67, allocations: 0 / 3.646 GB, free: 82.41 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001185/12.67, allocations: 363.4 kB / 3.647 GB, free: 82.09 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/12.67, allocations: 420 kB / 3.647 GB, free: 82.09 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/12.67, allocations: 0.8351 MB / 3.648 GB, free: 81.59 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006301/12.68, allocations: 0.9587 MB / 3.649 GB, free: 81.56 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-05/12.68, allocations: 7.922 kB / 3.649 GB, free: 81.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=187) (initialization): time 0.008978/12.69, allocations: 1.882 MB / 3.651 GB, free: 81.45 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001151/12.69, allocations: 4.971 MB / 3.655 GB, free: 76.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.383e-05/12.69, allocations: 16.66 kB / 3.655 GB, free: 76.24 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006425/12.7, allocations: 0.6512 MB / 3.656 GB, free: 76.21 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003199/12.7, allocations: 443.9 kB / 3.657 GB, free: 76.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002712/12.7, allocations: 1.074 MB / 3.658 GB, free: 75.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003544/12.71, allocations: 229.9 kB / 3.658 GB, free: 75.65 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002879/12.71, allocations: 87.38 kB / 3.658 GB, free: 75.65 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/12.71, allocations: 7.453 kB / 3.658 GB, free: 75.65 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007307/12.71, allocations: 1.542 MB / 3.659 GB, free: 75.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.957e-05/12.71, allocations: 12.28 kB / 3.659 GB, free: 75.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004412/12.71, allocations: 91.08 kB / 3.66 GB, free: 75.59 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003349/12.72, allocations: 471.5 kB / 3.66 GB, free: 75.58 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002722/12.72, allocations: 1.704 MB / 3.662 GB, free: 74.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00264/12.72, allocations: 169 kB / 3.662 GB, free: 74.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000227/12.72, allocations: 89.75 kB / 3.662 GB, free: 74.25 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * 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 (163): * Single equations (assignments): 162 * 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.0004701/12.72, allocations: 153.5 kB / 3.662 GB, free: 74.14 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00658/12.73, allocations: 1.258 MB / 3.663 GB, free: 74.01 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003023/12.73, allocations: 123.7 kB / 3.663 GB, free: 73.95 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008876/12.74, allocations: 3.693 MB / 3.667 GB, free: 73.63 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.673e-05/12.74, allocations: 37.41 kB / 3.667 GB, free: 73.63 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/12.74, allocations: 7.953 kB / 3.667 GB, free: 73.62 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.123e-05/12.74, allocations: 9.094 kB / 3.667 GB, free: 73.62 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003253/12.74, allocations: 1.751 MB / 3.669 GB, free: 73.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/12.74, allocations: 0 / 3.669 GB, free: 73.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001227/12.74, allocations: 172.1 kB / 3.669 GB, free: 73.38 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005363/12.75, allocations: 1.822 MB / 3.671 GB, free: 73.32 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002351/12.75, allocations: 18.09 kB / 3.671 GB, free: 73.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003239/12.75, allocations: 1.826 MB / 3.672 GB, free: 72.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/12.75, allocations: 0 / 3.672 GB, free: 72.75 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006824/12.76, allocations: 2.452 MB / 3.675 GB, free: 72.38 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001546/12.76, allocations: 0.548 MB / 3.675 GB, free: 72.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005712/12.76, allocations: 3.469 kB / 3.675 GB, free: 72.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001913/12.76, allocations: 99.28 kB / 3.675 GB, free: 72.11 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000248/12.76, allocations: 76.47 kB / 3.676 GB, free: 72.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/12.77, allocations: 37.91 kB / 3.676 GB, free: 72.11 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002009/12.77, allocations: 1.035 MB / 3.677 GB, free: 72 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.61e-07/12.77, allocations: 2.938 kB / 3.677 GB, free: 72 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01111/12.78, allocations: 1.729 MB / 3.678 GB, free: 71.88 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: 18 ($cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse32.phase,$cse32.region,$cse41.phase,$cse41.region,$cse42.phase,$cse42.region,$cse47.phase,$cse47.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.01899/12.8, allocations: 4.649 MB / 3.683 GB, free: 70.83 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005624/12.8, allocations: 2.109 MB / 3.685 GB, free: 70.69 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/12.8, allocations: 0.9375 kB / 3.685 GB, free: 70.69 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001696/12.8, allocations: 0.7836 MB / 3.686 GB, free: 70.68 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004916/12.81, allocations: 494.3 kB / 3.686 GB, free: 70.64 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01146/12.82, allocations: 3.097 MB / 3.689 GB, free: 69.84 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/12.82, allocations: 1.469 MB / 3.691 GB, free: 69.08 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001645/12.82, allocations: 0.771 MB / 3.691 GB, free: 69.07 MB / 0.5105 GB Notification: Performance of SimCode: time 1.623e-06/12.82, allocations: 0 / 3.691 GB, free: 69.07 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.138/16.96, allocations: 59.07 MB / 3.749 GB, free: 49.98 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesCompressibleReverse_res.mat does not exist to compare? outputFormat=mat