Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.907/1.907, allocations: 171.2 MB / 178.1 MB, free: 8.281 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2118/2.119, allocations: 41.11 MB / 219.3 MB, free: 11.18 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09553/2.214, allocations: 38.75 MB / 258 MB, free: 4.359 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2913/2.506, allocations: 83.27 MB / 341.3 MB, free: 4.91 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003431/2.506, allocations: 77.83 kB / 341.3 MB, free: 4.871 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.6023/3.108, allocations: 76.49 MB / 417.8 MB, free: 115.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/3.108, allocations: 9.375 kB / 417.8 MB, free: 115.5 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00316/3.112, allocations: 0.8365 MB / 418.7 MB, free: 115 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01222/3.124, allocations: 3.48 MB / 422.2 MB, free: 114 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001441/3.124, allocations: 70.5 kB / 422.2 MB, free: 114 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005575/3.125, allocations: 121 kB / 422.4 MB, free: 114 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006344/3.131, allocations: 1.611 MB / 424 MB, free: 114 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007475/3.139, allocations: 1.659 MB / 425.6 MB, free: 113.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.972e-05/3.139, allocations: 10 kB / 425.6 MB, free: 113.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002727/3.139, allocations: 3.156 kB / 425.6 MB, free: 113.8 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-05/3.139, allocations: 46.84 kB / 425.7 MB, free: 113.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03052/3.17, allocations: 9.631 MB / 435.3 MB, free: 112.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003995/3.174, allocations: 1.2 MB / 436.5 MB, free: 112.1 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00362/3.177, allocations: 1.131 MB / 437.6 MB, free: 112.1 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003454/3.178, allocations: 121.3 kB / 437.8 MB, free: 112 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002836/3.181, allocations: 0.9642 MB / 438.7 MB, free: 111.9 MB / 346.7 MB Notification: Performance of pre-optimization done (n=230): time 7.875e-06/3.181, allocations: 2.562 kB / 438.7 MB, free: 111.9 MB / 346.7 MB Notification: Performance of matching and sorting (n=355): time 0.1136/3.294, allocations: 16.79 MB / 455.5 MB, free: 105.2 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/3.294, allocations: 276.6 kB / 455.8 MB, free: 104.9 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1899/3.484, allocations: 12.86 MB / 468.6 MB, free: 97.91 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000879/3.485, allocations: 25.7 kB / 468.7 MB, free: 97.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003159/3.488, allocations: 1.448 MB / 470.1 MB, free: 96.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002278/3.491, allocations: 1.127 MB / 471.2 MB, free: 95.67 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007026/3.492, allocations: 4 kB / 471.2 MB, free: 95.66 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002862/3.492, allocations: 429 kB / 471.7 MB, free: 95.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006113/3.498, allocations: 1.24 MB / 472.9 MB, free: 94.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008275/3.506, allocations: 1.54 MB / 474.4 MB, free: 92.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006461/3.513, allocations: 1.524 MB / 476 MB, free: 91.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.42e-05/3.513, allocations: 3.906 kB / 476 MB, free: 91.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=418) (initialization): time 0.01648/3.53, allocations: 4.649 MB / 480.6 MB, free: 86.9 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/3.53, allocations: 4 kB / 480.6 MB, free: 86.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.03e-05/3.53, allocations: 6.531 kB / 480.6 MB, free: 86.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005991/3.536, allocations: 1.051 MB / 481.7 MB, free: 86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006957/3.543, allocations: 0.5834 MB / 482.3 MB, free: 85.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01482/3.558, allocations: 12.74 MB / 495 MB, free: 72.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01088/3.568, allocations: 96.39 kB / 495.1 MB, free: 72.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001678/3.57, allocations: 132.7 kB / 495.2 MB, free: 72.31 MB / 346.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: 17 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (297): * Single equations (assignments): 287 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {3 37,3 49} Notification: Performance of prepare postOptimizeDAE: time 0.002552/3.573, allocations: 157.3 kB / 495.4 MB, free: 72.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004905/3.578, allocations: 0.8059 MB / 496.2 MB, free: 71.36 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02222/3.6, allocations: 4.799 MB / 0.4892 GB, free: 67.2 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.698e-05/3.6, allocations: 36 kB / 0.4893 GB, free: 67.16 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.17e-05/3.6, allocations: 8.875 kB / 0.4893 GB, free: 67.16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000126/3.6, allocations: 14.77 kB / 0.4893 GB, free: 67.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04751/3.648, allocations: 12.86 MB / 0.5019 GB, free: 56.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-05/3.648, allocations: 6.438 kB / 0.5019 GB, free: 56.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00741/3.655, allocations: 0.5192 MB / 0.5024 GB, free: 56.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008948/3.664, allocations: 0.9568 MB / 0.5033 GB, free: 55.72 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001166/3.666, allocations: 53.91 kB / 0.5034 GB, free: 55.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01549/3.681, allocations: 12.22 MB / 0.5153 GB, free: 43.06 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.07024/3.752, allocations: 12.34 MB / 0.5273 GB, free: 32.06 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02386/3.775, allocations: 7.171 MB / 0.5343 GB, free: 25.12 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03532/3.811, allocations: 9.623 MB / 0.5437 GB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005141/3.816, allocations: 1.576 MB / 0.5453 GB, free: 13.76 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002996/3.819, allocations: 11.75 kB / 0.5453 GB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007096/3.826, allocations: 87.92 kB / 0.5454 GB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001084/3.827, allocations: 206.9 kB / 0.5456 GB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006368/3.828, allocations: 119.8 kB / 0.5457 GB, free: 13.35 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.02755/3.856, allocations: 10.28 MB / 0.5557 GB, free: 3.121 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.008852/3.865, allocations: 1.311 MB / 0.557 GB, free: 1.816 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedSolenoid.g_mLeakWork.Phi,$STATESET139666770804328.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 6 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent) * Number of discrete states: 1 (comparisonWithFEA.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 243 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {3 42,3 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.001799/3.866, allocations: 314.2 kB / 0.5573 GB, free: 1.617 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.1572/4.024, allocations: 4.052 MB / 0.5613 GB, free: 106.4 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.378e-06/4.024, allocations: 6.172 kB / 0.5613 GB, free: 106.4 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007819/4.032, allocations: 2.585 MB / 0.5638 GB, free: 105.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006536/4.038, allocations: 399.4 kB / 0.5642 GB, free: 105.7 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05973/4.098, allocations: 16.65 MB / 0.5804 GB, free: 103.1 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01731/4.115, allocations: 4.583 MB / 0.5849 GB, free: 102.2 MB / 346.7 MB Notification: Performance of SimCode: time 2.104e-06/4.115, allocations: 0 / 0.5849 GB, free: 102.2 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat does not exist to compare? outputFormat=mat