Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.394/2.394, allocations: 235 MB / 247.6 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.328e-05/4.339e-05, allocations: 11.94 kB / 305 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4066/0.4066, allocations: 54.85 MB / 359.9 MB, free: 2.605 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.128/8.534, allocations: 2.628 GB / 2.98 GB, free: 119.6 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/8.535, allocations: 87.02 kB / 2.98 GB, free: 119.6 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.279/10.81, allocations: 455.6 MB / 3.425 GB, free: 46.01 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.174e-06/10.81, allocations: 0 / 3.425 GB, free: 46.01 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001572/10.81, allocations: 33.17 kB / 3.425 GB, free: 46.01 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: 331 * Number of variables: 331 Notification: Performance of Generate backend data structure: time 0.01098/10.83, allocations: 2.306 MB / 3.427 GB, free: 44.67 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.025e-05/10.83, allocations: 10.34 kB / 3.427 GB, free: 44.67 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006587/10.83, allocations: 192 kB / 3.427 GB, free: 44.54 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004918/10.83, allocations: 436.3 kB / 3.427 GB, free: 44.45 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003929/10.83, allocations: 0.998 MB / 3.428 GB, free: 43.85 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002168/10.84, allocations: 104.4 kB / 3.429 GB, free: 43.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000565/10.84, allocations: 136.9 kB / 3.429 GB, free: 43.75 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005432/10.84, allocations: 1.603 MB / 3.43 GB, free: 42.98 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.832e-05/10.84, allocations: 11.91 kB / 3.43 GB, free: 42.97 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002126/10.84, allocations: 54.34 kB / 3.43 GB, free: 42.93 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.185e-05/10.84, allocations: 44.38 kB / 3.43 GB, free: 42.93 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004577/10.85, allocations: 1.223 MB / 3.432 GB, free: 42.52 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.01392/10.86, allocations: 7.663 MB / 3.439 GB, free: 36.66 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003086/10.86, allocations: 0.8288 MB / 3.44 GB, free: 36.39 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000704/10.86, allocations: 288.4 kB / 3.44 GB, free: 36.27 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05674/10.92, allocations: 18.44 MB / 3.458 GB, free: 21.98 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.918e-05/10.92, allocations: 39.12 kB / 3.458 GB, free: 21.93 MB / 490.7 MB Notification: Performance of pre-optimization done (n=68): time 2.795e-06/10.92, allocations: 0 / 3.458 GB, free: 21.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=92): time 0.05473/10.98, allocations: 5.724 MB / 3.464 GB, free: 17.26 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.618/11.59, allocations: 43.25 MB / 3.506 GB, free: 49.6 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001748/11.6, allocations: 0.7666 MB / 3.507 GB, free: 49.46 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002395/11.6, allocations: 41.27 kB / 3.507 GB, free: 49.43 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005843/11.6, allocations: 0.7168 MB / 3.507 GB, free: 49.21 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004819/11.6, allocations: 326.5 kB / 3.508 GB, free: 49.05 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/11.6, allocations: 25.94 kB / 3.508 GB, free: 49.05 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000145/11.6, allocations: 361.9 kB / 3.508 GB, free: 48.74 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/11.6, allocations: 392.7 kB / 3.508 GB, free: 48.73 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/11.6, allocations: 0.8747 MB / 3.509 GB, free: 48.12 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001634/11.6, allocations: 0.5213 MB / 3.51 GB, free: 48.11 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-05/11.6, allocations: 8.281 kB / 3.51 GB, free: 48.11 MB / 0.4948 GB Notification: Performance of matching and sorting (n=169) (initialization): time 0.004772/11.61, allocations: 1.471 MB / 3.511 GB, free: 48.02 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001451/11.61, allocations: 6.356 MB / 3.518 GB, free: 41.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.478e-05/11.61, allocations: 16.31 kB / 3.518 GB, free: 41.41 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008479/11.62, allocations: 0.9771 MB / 3.518 GB, free: 41.39 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002111/11.62, allocations: 303.3 kB / 3.519 GB, free: 41.39 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003482/11.62, allocations: 1.648 MB / 3.52 GB, free: 40.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00247/11.62, allocations: 116.6 kB / 3.52 GB, free: 40.34 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002883/11.63, allocations: 87.42 kB / 3.521 GB, free: 40.34 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/11.63, allocations: 5 kB / 3.521 GB, free: 40.34 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006159/11.63, allocations: 1.559 MB / 3.522 GB, free: 40.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.357e-05/11.63, allocations: 16.84 kB / 3.522 GB, free: 40.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004297/11.64, allocations: 0.6216 MB / 3.523 GB, free: 40.27 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00209/11.64, allocations: 306.7 kB / 3.523 GB, free: 40.27 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003163/11.64, allocations: 1.604 MB / 3.525 GB, free: 39.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001966/11.64, allocations: 112.4 kB / 3.525 GB, free: 39.22 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002354/11.64, allocations: 79.33 kB / 3.525 GB, free: 39.22 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (145): * Single equations (assignments): 143 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 10,2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0005591/11.64, allocations: 195.4 kB / 3.525 GB, free: 39.12 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004398/11.64, allocations: 123.1 kB / 3.525 GB, free: 39.05 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009765/11.65, allocations: 3.954 MB / 3.529 GB, free: 38.77 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.035e-05/11.65, allocations: 43.05 kB / 3.529 GB, free: 38.77 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/11.65, allocations: 0 / 3.529 GB, free: 38.77 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.421e-05/11.65, allocations: 3.938 kB / 3.529 GB, free: 38.77 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01269/11.67, allocations: 5.829 MB / 3.535 GB, free: 38.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.548e-05/11.67, allocations: 3.781 kB / 3.535 GB, free: 38.24 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/11.67, allocations: 159.6 kB / 3.535 GB, free: 38.24 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007581/11.68, allocations: 1.818 MB / 3.537 GB, free: 38.17 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002057/11.68, allocations: 35.78 kB / 3.537 GB, free: 38.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003782/11.68, allocations: 2.439 MB / 3.539 GB, free: 37.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.04947/11.73, allocations: 18.41 MB / 3.557 GB, free: 34.32 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008778/11.74, allocations: 3.813 MB / 3.561 GB, free: 33.86 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001164/11.74, allocations: 388 kB / 3.561 GB, free: 33.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003676/11.74, allocations: 23.66 kB / 3.561 GB, free: 33.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001684/11.74, allocations: 88.42 kB / 3.561 GB, free: 33.65 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002357/11.74, allocations: 74.38 kB / 3.561 GB, free: 33.65 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001205/11.74, allocations: 43.56 kB / 3.561 GB, free: 33.64 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001354/11.74, allocations: 0.6562 MB / 3.562 GB, free: 33.53 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.81e-07/11.74, allocations: 7.312 kB / 3.562 GB, free: 33.52 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01999/11.76, allocations: 3.993 MB / 3.566 GB, free: 33.39 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 ($STATESET1.x,motor.inertiaRotor.phi,motor.la.i) * Number of discrete variables: 21 ($cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.region3boundary,$cse13.region3boundary,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 67 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.04298/11.81, allocations: 7.48 MB / 3.573 GB, free: 31.85 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007166/11.81, allocations: 2.148 MB / 3.575 GB, free: 31.84 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/11.81, allocations: 0 / 3.575 GB, free: 31.84 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002803/11.82, allocations: 1.054 MB / 3.576 GB, free: 31.82 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003652/11.82, allocations: 410.6 kB / 3.577 GB, free: 31.79 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2955/12.12, allocations: 79.53 MB / 3.654 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001888/12.12, allocations: 1.436 MB / 3.656 GB, free: 28.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006103/12.12, allocations: 0.7191 MB / 3.656 GB, free: 27.94 MB / 0.5105 GB Notification: Performance of SimCode: time 1.553e-06/12.12, allocations: 0 / 3.656 GB, free: 27.94 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.79/18.91, allocations: 125.3 MB / 3.779 GB, free: 39.92 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor_res.mat does not exist to compare? outputFormat=mat