Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.012/2.012, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.972e-05/1.987e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3063, allocations: 44.51 MB / 294.2 MB, free: 14.28 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1574/0.4637, allocations: 86.47 MB / 380.7 MB, free: 11.47 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003434/0.4641, allocations: 83.95 kB / 380.8 MB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4731/0.9372, allocations: 48.88 MB / 429.6 MB, free: 91.29 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.427e-06/0.9372, allocations: 1.031 kB / 429.6 MB, free: 91.29 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002457/0.9375, allocations: 52.48 kB / 429.7 MB, free: 91.29 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 527 * Number of variables: 527 Notification: Performance of Generate backend data structure: time 0.01077/0.9483, allocations: 2.325 MB / 432 MB, free: 90.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.361e-05/0.9483, allocations: 9.938 kB / 432 MB, free: 90.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001851/0.9502, allocations: 287.8 kB / 432.3 MB, free: 90.12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005361/0.9556, allocations: 1.322 MB / 433.6 MB, free: 89.69 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001933/0.9559, allocations: 71.84 kB / 433.7 MB, free: 89.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008972/0.9568, allocations: 118 kB / 433.8 MB, free: 89.69 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006557/0.9634, allocations: 1.667 MB / 435.5 MB, free: 89.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006612/0.97, allocations: 1.488 MB / 437 MB, free: 89.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001089/0.9702, allocations: 11.45 kB / 437 MB, free: 89.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003365/0.9705, allocations: 0 / 437 MB, free: 89.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.521e-05/0.9706, allocations: 57.28 kB / 437 MB, free: 89.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02369/0.9943, allocations: 7.281 MB / 444.3 MB, free: 87.87 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005081/0.9994, allocations: 2.124 MB / 446.5 MB, free: 86.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003789/1.003, allocations: 1.219 MB / 447.7 MB, free: 86.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003666/1.004, allocations: 39.94 kB / 447.7 MB, free: 86.28 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.08e-05/1.004, allocations: 58.94 kB / 447.8 MB, free: 86.22 MB / 362.7 MB Notification: Performance of pre-optimization done (n=240): time 6.352e-06/1.004, allocations: 0 / 447.8 MB, free: 86.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=372): time 0.08341/1.087, allocations: 12.49 MB / 460.3 MB, free: 81.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/1.087, allocations: 95.91 kB / 460.3 MB, free: 81.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004178/1.092, allocations: 1.488 MB / 461.8 MB, free: 80.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007685/1.092, allocations: 27.86 kB / 461.9 MB, free: 80.63 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007878/1.093, allocations: 0.8885 MB / 462.8 MB, free: 79.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001622/1.095, allocations: 1.181 MB / 463.9 MB, free: 78.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004297/1.095, allocations: 0 / 463.9 MB, free: 78.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002495/1.096, allocations: 436.3 kB / 464.4 MB, free: 78.55 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003553/1.099, allocations: 1.192 MB / 465.5 MB, free: 77.45 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004003/1.103, allocations: 1.458 MB / 467 MB, free: 76 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004274/1.107, allocations: 1.361 MB / 468.4 MB, free: 74.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.02e-05/1.108, allocations: 4 kB / 468.4 MB, free: 74.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=434) (initialization): time 0.01693/1.125, allocations: 4.153 MB / 472.5 MB, free: 71.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.275e-05/1.125, allocations: 33.7 kB / 472.6 MB, free: 70.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.826e-05/1.125, allocations: 8 kB / 472.6 MB, free: 70.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009474/1.134, allocations: 1.3 MB / 473.9 MB, free: 69.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005832/1.14, allocations: 0.5845 MB / 474.5 MB, free: 69.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03687/1.177, allocations: 18.51 MB / 493 MB, free: 51.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005068/1.182, allocations: 99.89 kB / 493.1 MB, free: 51.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009765/1.183, allocations: 118.8 kB / 493.2 MB, free: 51.24 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference between both ports" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (315): * Single equations (assignments): 305 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 51,3 42} Notification: Performance of prepare postOptimizeDAE: time 0.00115/1.184, allocations: 159.5 kB / 493.3 MB, free: 51.08 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01657/1.201, allocations: 3.993 MB / 497.3 MB, free: 47.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001381/1.202, allocations: 256.8 kB / 497.6 MB, free: 47.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01684/1.219, allocations: 4.26 MB / 0.4901 GB, free: 43.53 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01549/1.235, allocations: 3.758 MB / 0.4937 GB, free: 40.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.962e-05/1.235, allocations: 4 kB / 0.4937 GB, free: 40.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001229/1.235, allocations: 21.89 kB / 0.4938 GB, free: 40.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03768/1.273, allocations: 9.148 MB / 0.5027 GB, free: 30.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.448e-05/1.273, allocations: 7.312 kB / 0.5027 GB, free: 30.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006981/1.28, allocations: 0.4994 MB / 0.5032 GB, free: 30.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01313/1.293, allocations: 1.354 MB / 0.5045 GB, free: 28.94 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008673/1.294, allocations: 27.95 kB / 0.5045 GB, free: 28.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04148/1.335, allocations: 17.1 MB / 0.5212 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.09882/1.434, allocations: 26.47 MB / 0.5471 GB, free: 116 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02403/1.458, allocations: 6.358 MB / 0.5533 GB, free: 9.531 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002804/1.461, allocations: 0.6852 MB / 0.554 GB, free: 8.824 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001217/1.462, allocations: 15.89 kB / 0.554 GB, free: 8.809 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004576/1.467, allocations: 99.89 kB / 0.5541 GB, free: 8.711 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001547/1.469, allocations: 275 kB / 0.5543 GB, free: 8.441 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007647/1.469, allocations: 111.3 kB / 0.5544 GB, free: 8.336 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003046/1.473, allocations: 1.132 MB / 0.5555 GB, free: 7.211 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.81e-07/1.473, allocations: 0 / 0.5555 GB, free: 7.211 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006429/1.479, allocations: 0.9062 MB / 0.5564 GB, free: 6.305 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],$STATESET1.x,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedFeed_x.s,advancedFeed_x.v,simpleFeed_x.s,simpleFeed_x.v) * Number of discrete variables: 4 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (256): * Single equations (assignments): 249 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 43,4 53} Notification: Performance of Backend phase and start with SimCode phase: time 0.3175/1.797, allocations: 8.042 MB / 0.5643 GB, free: 106.8 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01223/1.809, allocations: 4.345 MB / 0.5685 GB, free: 105.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/1.809, allocations: 1.125 kB / 0.5685 GB, free: 105.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008227/1.817, allocations: 2.956 MB / 0.5714 GB, free: 105 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002926/1.82, allocations: 244 kB / 0.5717 GB, free: 105 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01914/1.839, allocations: 6.159 MB / 0.5777 GB, free: 103.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001965/1.841, allocations: 1.839 MB / 0.5795 GB, free: 102.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00345/1.845, allocations: 1.11 MB / 0.5805 GB, free: 102.6 MB / 394.7 MB Notification: Performance of SimCode: time 2.094e-06/1.845, allocations: 0 / 0.5805 GB, free: 102.6 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.693/6.538, allocations: 139.2 MB / 0.7165 GB, free: 121 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat does not exist to compare? outputFormat=mat