Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.726/1.726, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.019e-05/2.028e-05, allocations: 8 kB / 219.6 MB, free: 7.312 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2767, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1395/0.4162, allocations: 78.53 MB / 336.9 MB, free: 15.28 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000342/0.4166, allocations: 83.95 kB / 336.9 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09584/0.5125, allocations: 21.1 MB / 358 MB, free: 10.02 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5126, allocations: 0 / 358 MB, free: 10.02 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.235e-05/0.5127, allocations: 24 kB / 358.1 MB, free: 9.996 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.004427/0.5171, allocations: 1.249 MB / 359.3 MB, free: 8.695 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.5172, allocations: 8.031 kB / 359.3 MB, free: 8.688 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005087/0.5177, allocations: 131.1 kB / 359.4 MB, free: 8.559 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001765/0.5195, allocations: 0.6484 MB / 360.1 MB, free: 7.863 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001836/0.5197, allocations: 46 kB / 360.1 MB, free: 7.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002265/0.5199, allocations: 56 kB / 360.2 MB, free: 7.766 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002329/0.5223, allocations: 0.7147 MB / 360.9 MB, free: 7.051 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002417/0.5247, allocations: 0.8018 MB / 361.7 MB, free: 6.234 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.677e-05/0.5248, allocations: 3.906 kB / 361.7 MB, free: 6.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001177/0.5249, allocations: 0 / 361.7 MB, free: 6.23 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.105e-05/0.525, allocations: 24 kB / 361.7 MB, free: 6.207 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009394/0.5344, allocations: 3.657 MB / 365.4 MB, free: 2.359 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003307/0.5377, allocations: 0.8186 MB / 366.2 MB, free: 1.523 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009245/0.5387, allocations: 354.2 kB / 366.6 MB, free: 1.176 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.73e-05/0.5388, allocations: 16.53 kB / 366.6 MB, free: 1.16 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.351e-05/0.5388, allocations: 43.12 kB / 366.6 MB, free: 1.109 MB / 314.7 MB Notification: Performance of pre-optimization done (n=68): time 5.77e-06/0.5389, allocations: 4 kB / 366.6 MB, free: 1.105 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.2142/0.7531, allocations: 1.382 MB / 368 MB, free: 84.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.177e-05/0.7532, allocations: 87.55 kB / 368.1 MB, free: 84.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002032/0.7552, allocations: 0.6818 MB / 368.8 MB, free: 84.57 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001964/0.7555, allocations: 26.33 kB / 368.8 MB, free: 84.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004241/0.7559, allocations: 0.5315 MB / 369.3 MB, free: 84.36 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003922/0.7563, allocations: 277.5 kB / 369.6 MB, free: 84.22 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/0.7564, allocations: 1 kB / 369.6 MB, free: 84.22 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.7565, allocations: 346.7 kB / 369.9 MB, free: 83.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009921/0.7576, allocations: 282.6 kB / 370.2 MB, free: 83.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/0.7587, allocations: 445.4 kB / 370.6 MB, free: 83.75 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009577/0.7597, allocations: 324.4 kB / 371 MB, free: 83.74 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.7597, allocations: 1.156 kB / 371 MB, free: 83.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002288/0.762, allocations: 0.785 MB / 371.7 MB, free: 83.68 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.159e-05/0.7621, allocations: 32.36 kB / 371.8 MB, free: 83.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.7622, allocations: 3.656 kB / 371.8 MB, free: 83.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.873e-05/0.7622, allocations: 9.156 kB / 371.8 MB, free: 83.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002936/0.7652, allocations: 350.7 kB / 372.1 MB, free: 83.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.471e-05/0.7652, allocations: 14.34 kB / 372.1 MB, free: 83.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002072/0.7673, allocations: 102.7 kB / 372.2 MB, free: 83.64 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002308/0.7676, allocations: 39.17 kB / 372.3 MB, free: 83.64 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 1 * 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.0002777/0.7679, allocations: 130.6 kB / 372.4 MB, free: 83.54 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001833/0.7697, allocations: 0.622 MB / 373 MB, free: 83.45 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003555/0.7701, allocations: 87.83 kB / 373.1 MB, free: 83.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001034/0.7712, allocations: 329.9 kB / 373.4 MB, free: 83.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.57e-05/0.7712, allocations: 11.44 kB / 373.5 MB, free: 83.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.66e-05/0.7713, allocations: 5.125 kB / 373.5 MB, free: 83.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.7713, allocations: 3.656 kB / 373.5 MB, free: 83.34 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006666/0.778, allocations: 2.674 MB / 376.1 MB, free: 82.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.666e-05/0.778, allocations: 9.625 kB / 376.1 MB, free: 82.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001994/0.78, allocations: 273.8 kB / 376.4 MB, free: 82.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-05/0.7801, allocations: 15.47 kB / 376.4 MB, free: 82.61 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001316/0.7803, allocations: 19.22 kB / 376.4 MB, free: 82.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.765e-05/0.7803, allocations: 19.44 kB / 376.5 MB, free: 82.61 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.514e-05/0.7803, allocations: 15.41 kB / 376.5 MB, free: 82.61 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002105/0.7824, allocations: 1.626 MB / 378.1 MB, free: 81.21 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003791/0.7829, allocations: 196.2 kB / 378.3 MB, free: 81.07 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002246/0.7831, allocations: 11.66 kB / 378.3 MB, free: 81.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/0.7844, allocations: 72.58 kB / 378.4 MB, free: 81.07 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001916/0.7846, allocations: 95.33 kB / 378.5 MB, free: 81.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.319e-05/0.7847, allocations: 35.66 kB / 378.5 MB, free: 81.06 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009171/0.7856, allocations: 0.5201 MB / 379 MB, free: 80.97 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.7857, allocations: 0 / 379 MB, free: 80.97 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001432/0.7871, allocations: 197.5 kB / 379.2 MB, free: 80.97 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * 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.003141/0.7903, allocations: 5.445 MB / 384.7 MB, free: 75.82 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002568/0.7929, allocations: 0.7126 MB / 385.4 MB, free: 75.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.998e-05/0.793, allocations: 3.969 kB / 385.4 MB, free: 75.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/0.7946, allocations: 382.1 kB / 385.8 MB, free: 75.32 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00289/0.7975, allocations: 157.4 kB / 385.9 MB, free: 75.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009579/0.8072, allocations: 1.668 MB / 387.6 MB, free: 74.26 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001062/0.8083, allocations: 1.048 MB / 388.6 MB, free: 73.54 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002124/0.8105, allocations: 405.1 kB / 389 MB, free: 73.25 MB / 314.7 MB Notification: Performance of SimCode: time 2.003e-06/0.8105, allocations: 0 / 389 MB, free: 73.25 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.839/3.65, allocations: 17.5 MB / 406.5 MB, free: 64.79 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat