Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.614/2.614, allocations: 235 MB / 247.6 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.773e-05/3.783e-05, allocations: 0 / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4156/0.4157, allocations: 54.87 MB / 359.9 MB, free: 2.711 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.847/8.262, allocations: 2.587 GB / 2.939 GB, free: 106.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003434/8.263, allocations: 82 kB / 2.939 GB, free: 106.4 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.18/9.443, allocations: 215.5 MB / 3.149 GB, free: 80.74 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.814e-06/9.443, allocations: 0 / 3.149 GB, free: 80.74 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.969e-05/9.443, allocations: 3.969 kB / 3.149 GB, free: 80.74 MB / 490.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.005666/9.449, allocations: 1.185 MB / 3.15 GB, free: 80.16 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/9.449, allocations: 11.19 kB / 3.15 GB, free: 80.16 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001147/9.449, allocations: 69.67 kB / 3.151 GB, free: 80.12 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002466/9.451, allocations: 219.5 kB / 3.151 GB, free: 80.11 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008527/9.452, allocations: 387.1 kB / 3.151 GB, free: 79.89 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.602e-05/9.452, allocations: 28.12 kB / 3.151 GB, free: 79.89 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.714e-05/9.452, allocations: 34.7 kB / 3.151 GB, free: 79.89 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/9.454, allocations: 0.5721 MB / 3.152 GB, free: 79.75 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/9.454, allocations: 1.125 kB / 3.152 GB, free: 79.75 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.264e-05/9.454, allocations: 18.12 kB / 3.152 GB, free: 79.75 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/9.454, allocations: 4.812 kB / 3.152 GB, free: 79.75 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00173/9.456, allocations: 492.2 kB / 3.152 GB, free: 79.75 MB / 490.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.003475/9.46, allocations: 2.544 MB / 3.155 GB, free: 77.88 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/9.461, allocations: 411.6 kB / 3.155 GB, free: 77.85 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003048/9.462, allocations: 121.8 kB / 3.155 GB, free: 77.84 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1841/9.646, allocations: 51.65 MB / 3.206 GB, free: 49.65 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.827e-05/9.646, allocations: 39.16 kB / 3.206 GB, free: 49.61 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 2.775e-06/9.646, allocations: 0 / 3.206 GB, free: 49.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.002787/9.649, allocations: 0.6199 MB / 3.206 GB, free: 49.55 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/9.649, allocations: 108.7 kB / 3.206 GB, free: 49.43 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003977/9.649, allocations: 253.4 kB / 3.207 GB, free: 49.32 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/9.649, allocations: 29.2 kB / 3.207 GB, free: 49.29 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/9.649, allocations: 268 kB / 3.207 GB, free: 49.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.9e-05/9.649, allocations: 88.72 kB / 3.207 GB, free: 49.06 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.583e-05/9.649, allocations: 3.062 kB / 3.207 GB, free: 49.06 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.815e-05/9.65, allocations: 341.3 kB / 3.207 GB, free: 48.73 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002419/9.65, allocations: 91.33 kB / 3.207 GB, free: 48.73 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003148/9.65, allocations: 210.8 kB / 3.208 GB, free: 48.59 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002821/9.65, allocations: 111.6 kB / 3.208 GB, free: 48.58 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/9.65, allocations: 3.625 kB / 3.208 GB, free: 48.58 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008348/9.651, allocations: 331.6 kB / 3.208 GB, free: 48.53 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/9.651, allocations: 7.406 kB / 3.208 GB, free: 48.53 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/9.651, allocations: 3.656 kB / 3.208 GB, free: 48.53 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.806e-05/9.651, allocations: 3.844 kB / 3.208 GB, free: 48.53 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007166/9.652, allocations: 110.6 kB / 3.208 GB, free: 48.53 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.59e-05/9.652, allocations: 11.03 kB / 3.208 GB, free: 48.53 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006442/9.653, allocations: 67.89 kB / 3.208 GB, free: 48.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-05/9.653, allocations: 22.02 kB / 3.208 GB, free: 48.52 MB / 490.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: 4 (SourceP1.medium.phase,SinkP1.medium.phase,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.0001434/9.653, allocations: 129.7 kB / 3.208 GB, free: 48.41 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.239e-05/9.653, allocations: 31.53 kB / 3.208 GB, free: 48.39 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002615/9.656, allocations: 1.855 MB / 3.21 GB, free: 48.17 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.862e-05/9.656, allocations: 26.11 kB / 3.21 GB, free: 48.17 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/9.656, allocations: 0 / 3.21 GB, free: 48.17 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/9.656, allocations: 3.844 kB / 3.21 GB, free: 48.17 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00135/9.657, allocations: 0.982 MB / 3.211 GB, free: 47.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.982e-06/9.657, allocations: 2.062 kB / 3.211 GB, free: 47.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006463/9.658, allocations: 89.38 kB / 3.211 GB, free: 47.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/9.658, allocations: 0 / 3.211 GB, free: 47.91 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.373e-05/9.658, allocations: 14.47 kB / 3.211 GB, free: 47.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/9.658, allocations: 3.875 kB / 3.211 GB, free: 47.91 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/9.658, allocations: 0 / 3.211 GB, free: 47.91 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/9.659, allocations: 0.9791 MB / 3.212 GB, free: 47.69 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002344/9.66, allocations: 206.9 kB / 3.212 GB, free: 47.52 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.01e-05/9.66, allocations: 11.08 kB / 3.212 GB, free: 47.52 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005832/9.66, allocations: 53.11 kB / 3.213 GB, free: 47.51 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/9.661, allocations: 33.22 kB / 3.213 GB, free: 47.51 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.271e-05/9.661, allocations: 6.922 kB / 3.213 GB, free: 47.51 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004001/9.661, allocations: 257.4 kB / 3.213 GB, free: 47.42 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.41e-07/9.661, allocations: 0 / 3.213 GB, free: 47.42 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005192/9.666, allocations: 1.005 MB / 3.214 GB, free: 47.27 MB / 490.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,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * 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.01135/9.678, allocations: 2.807 MB / 3.217 GB, free: 46.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001061/9.679, allocations: 0.4995 MB / 3.217 GB, free: 46.29 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/9.679, allocations: 4 kB / 3.217 GB, free: 46.29 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006634/9.679, allocations: 470.9 kB / 3.217 GB, free: 46.29 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/9.681, allocations: 173.5 kB / 3.218 GB, free: 46.28 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2383/9.92, allocations: 76.76 MB / 3.293 GB, free: 12.05 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004258/9.92, allocations: 0.9785 MB / 3.294 GB, free: 11.15 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004007/9.92, allocations: 258.1 kB / 3.294 GB, free: 10.93 MB / 490.7 MB Notification: Performance of SimCode: time 1.232e-06/9.92, allocations: 4 kB / 3.294 GB, free: 10.92 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.904/13.82, allocations: 29.09 MB / 3.322 GB, free: 67.15 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveLinear_res.mat does not exist to compare? outputFormat=mat