Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonQuasiStationary",fmuType="cs",version="2.0",platforms={"dynamic"}) [: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.842/1.842, allocations: 194.9 MB / 202.6 MB, free: 6.879 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2282/2.071, allocations: 46.83 MB / 249.4 MB, free: 5.305 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09116/2.162, allocations: 44.5 MB / 293.9 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3136/2.475, allocations: 86.42 MB / 380.3 MB, free: 5.969 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003076/2.476, allocations: 82.77 kB / 380.4 MB, free: 5.957 MB / 298.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.2526/2.728, allocations: 51.09 MB / 431.5 MB, free: 7.512 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/2.728, allocations: 8 kB / 431.5 MB, free: 7.504 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001411/2.73, allocations: 296.4 kB / 431.8 MB, free: 7.211 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005577/2.735, allocations: 1.339 MB / 433.1 MB, free: 5.852 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001524/2.736, allocations: 64 kB / 433.2 MB, free: 5.789 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006606/2.736, allocations: 132 kB / 433.3 MB, free: 5.66 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007564/2.744, allocations: 1.656 MB / 435 MB, free: 3.996 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006627/2.751, allocations: 1.487 MB / 436.5 MB, free: 2.461 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.797e-05/2.751, allocations: 11.89 kB / 436.5 MB, free: 2.449 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003024/2.751, allocations: 3.938 kB / 436.5 MB, free: 2.445 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.095e-05/2.751, allocations: 48 kB / 436.5 MB, free: 2.398 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02755/2.779, allocations: 7.281 MB / 443.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004679/2.783, allocations: 1.229 MB / 445 MB, free: 9.715 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004238/2.788, allocations: 1.162 MB / 446.2 MB, free: 8.555 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002447/2.788, allocations: 37.58 kB / 446.2 MB, free: 8.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.142e-05/2.788, allocations: 60.56 kB / 446.3 MB, free: 8.453 MB / 346.7 MB Notification: Performance of pre-optimization done (n=240): time 5.881e-06/2.788, allocations: 3.938 kB / 446.3 MB, free: 8.449 MB / 346.7 MB Notification: Performance of matching and sorting (n=372): time 0.07824/2.866, allocations: 12.13 MB / 458.4 MB, free: 12.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.2e-05/2.866, allocations: 94.33 kB / 458.5 MB, free: 12.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004606/2.871, allocations: 1.485 MB / 460 MB, free: 10.69 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008003/2.872, allocations: 25.7 kB / 460 MB, free: 10.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006827/2.873, allocations: 0.6608 MB / 460.7 MB, free: 9.984 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001918/2.875, allocations: 1.182 MB / 461.9 MB, free: 8.785 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003937/2.875, allocations: 4 kB / 461.9 MB, free: 8.781 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003324/2.875, allocations: 429 kB / 462.3 MB, free: 8.355 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004794/2.88, allocations: 1.155 MB / 463.5 MB, free: 7.195 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005358/2.886, allocations: 1.42 MB / 464.9 MB, free: 5.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005466/2.891, allocations: 1.325 MB / 466.2 MB, free: 4.398 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.143e-05/2.891, allocations: 0 / 466.2 MB, free: 4.398 MB / 362.7 MB Notification: Performance of matching and sorting (n=432) (initialization): time 0.02257/2.914, allocations: 4.214 MB / 470.4 MB, free: 172 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/2.914, allocations: 7.906 kB / 470.4 MB, free: 164 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.207e-05/2.914, allocations: 4 kB / 470.4 MB, free: 160 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01279/2.927, allocations: 1.353 MB / 471.8 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007362/2.934, allocations: 0.5851 MB / 472.4 MB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05134/2.985, allocations: 18.36 MB / 490.7 MB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005625/2.991, allocations: 79.98 kB / 490.8 MB, free: 10.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000786/2.992, allocations: 116 kB / 490.9 MB, free: 10.86 MB / 394.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 (310): * Single equations (assignments): 302 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 7} * Non-linear torn systems: 2 {3 55,3 42} Notification: Performance of prepare postOptimizeDAE: time 0.0009894/2.993, allocations: 152.8 kB / 491.1 MB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009877/2.994, allocations: 252.9 kB / 491.3 MB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02094/3.015, allocations: 4.112 MB / 495.4 MB, free: 6.305 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.288e-05/3.015, allocations: 36 kB / 495.5 MB, free: 6.27 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.967e-05/3.015, allocations: 4 kB / 495.5 MB, free: 6.266 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.182e-05/3.015, allocations: 15.94 kB / 495.5 MB, free: 6.25 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1728/3.188, allocations: 8.653 MB / 0.4923 GB, free: 140.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.237e-05/3.188, allocations: 3.781 kB / 0.4923 GB, free: 140.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006463/3.195, allocations: 0.5088 MB / 0.4928 GB, free: 140.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01085/3.205, allocations: 1.257 MB / 0.494 GB, free: 140.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007427/3.206, allocations: 34.02 kB / 0.4941 GB, free: 140.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03838/3.245, allocations: 16.48 MB / 0.5102 GB, free: 132.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.05442/3.299, allocations: 11.71 MB / 0.5216 GB, free: 128.9 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02447/3.324, allocations: 6.211 MB / 0.5277 GB, free: 125.8 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03039/3.354, allocations: 8.435 MB / 0.5359 GB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002595/3.357, allocations: 0.6768 MB / 0.5366 GB, free: 120.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009712/3.358, allocations: 11.84 kB / 0.5366 GB, free: 120.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00483/3.363, allocations: 95 kB / 0.5367 GB, free: 120.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007575/3.363, allocations: 194 kB / 0.5369 GB, free: 120.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004156/3.364, allocations: 102.8 kB / 0.537 GB, free: 120.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002829/3.367, allocations: 1.131 MB / 0.5381 GB, free: 120.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006412/3.373, allocations: 0.7942 MB / 0.5388 GB, free: 120.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 9 ($STATESET1.x,advancedSolenoid.coil1.i,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedSolenoid.g_mLeakWork.Phi,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 (261): * Single equations (assignments): 254 * 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%) 4,(1,100.0%) 4,(1,100.0%) 6} * Non-linear torn systems: 2 {3 43,3 47} Notification: Performance of Backend phase and start with SimCode phase: time 0.001397/3.375, allocations: 257 kB / 0.5391 GB, free: 120.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01275/3.387, allocations: 4.03 MB / 0.543 GB, free: 118.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/3.387, allocations: 0 / 0.543 GB, free: 118.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008738/3.396, allocations: 2.64 MB / 0.5456 GB, free: 116.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003258/3.399, allocations: 226.5 kB / 0.5458 GB, free: 116.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0223/3.422, allocations: 5.3 MB / 0.551 GB, free: 114.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004305/3.426, allocations: 1.995 MB / 0.5529 GB, free: 112.8 MB / 394.7 MB Notification: Performance of SimCode: time 1.633e-06/3.426, allocations: 0 / 0.5529 GB, free: 112.8 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonQuasiStationary_res.mat does not exist to compare? outputFormat=mat