Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") [: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(HanserModelica): time 1.772/1.772, allocations: 214.7 MB / 221.7 MB, free: 4.898 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.084e-05/1.092e-05, allocations: 4 kB / 273.6 MB, free: 1.77 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08725/0.08728, allocations: 49.72 MB / 323.4 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3326/0.4199, allocations: 116.3 MB / 439.6 MB, free: 7.523 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002315/0.4202, allocations: 74.41 kB / 439.7 MB, free: 7.488 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.7897/1.21, allocations: 155.8 MB / 0.5816 GB, free: 77.5 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003333/1.21, allocations: 93.78 kB / 0.5817 GB, free: 77.49 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01324/1.224, allocations: 3.603 MB / 0.5852 GB, free: 75.13 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/1.224, allocations: 9.531 kB / 0.5852 GB, free: 75.13 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008405/1.232, allocations: 0.895 MB / 0.5861 GB, free: 74.69 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01247/1.245, allocations: 3.622 MB / 0.5896 GB, free: 72.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002531/1.245, allocations: 118.3 kB / 0.5897 GB, free: 72.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001261/1.246, allocations: 224 kB / 0.59 GB, free: 72.31 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00977/1.256, allocations: 3.529 MB / 0.5934 GB, free: 69 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01283/1.269, allocations: 4.113 MB / 0.5974 GB, free: 64.77 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001455/1.269, allocations: 0 / 0.5974 GB, free: 64.77 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009076/1.27, allocations: 4 kB / 0.5974 GB, free: 64.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001373/1.27, allocations: 151.4 kB / 0.5976 GB, free: 64.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03299/1.303, allocations: 15.21 MB / 0.6124 GB, free: 49.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00227/1.305, allocations: 1.133 MB / 0.6135 GB, free: 47.95 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003089/1.308, allocations: 1.563 MB / 0.615 GB, free: 46.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01068/1.319, allocations: 4.314 MB / 0.6193 GB, free: 42.01 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.779e-05/1.319, allocations: 55.78 kB / 0.6193 GB, free: 41.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=166): time 5.607e-06/1.319, allocations: 0 / 0.6193 GB, free: 41.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=188): time 0.01674/1.336, allocations: 5.63 MB / 0.6248 GB, free: 36.24 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/1.336, allocations: 69.41 kB / 0.6249 GB, free: 36.16 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00339/1.34, allocations: 1.572 MB / 0.6264 GB, free: 34.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003301/1.34, allocations: 33.69 kB / 0.6264 GB, free: 34.51 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00082/1.341, allocations: 1.398 MB / 0.6278 GB, free: 33.09 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006939/1.341, allocations: 0.6197 MB / 0.6284 GB, free: 32.46 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/1.342, allocations: 0 / 0.6284 GB, free: 32.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/1.342, allocations: 402.8 kB / 0.6288 GB, free: 32.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001813/1.344, allocations: 0.8639 MB / 0.6296 GB, free: 31.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002298/1.346, allocations: 1.6 MB / 0.6312 GB, free: 29.26 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003072/1.349, allocations: 1.212 MB / 0.6324 GB, free: 28.05 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-05/1.349, allocations: 8 kB / 0.6324 GB, free: 28.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=309) (initialization): time 0.007807/1.357, allocations: 2.995 MB / 0.6353 GB, free: 25.02 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/1.357, allocations: 8.062 kB / 0.6353 GB, free: 25.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.745e-05/1.357, allocations: 24 kB / 0.6354 GB, free: 24.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/1.358, allocations: 311.6 kB / 0.6357 GB, free: 24.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002918/1.361, allocations: 0.5421 MB / 0.6362 GB, free: 24.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00531/1.366, allocations: 4.163 MB / 0.6402 GB, free: 19.74 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002702/1.369, allocations: 71.69 kB / 0.6403 GB, free: 19.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005089/1.37, allocations: 108 kB / 0.6404 GB, free: 19.56 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (289): * Single equations (assignments): 286 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005276/1.37, allocations: 172.4 kB / 0.6406 GB, free: 19.39 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006383/1.371, allocations: 225.2 kB / 0.6408 GB, free: 19.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006211/1.377, allocations: 2.559 MB / 0.6433 GB, free: 16.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-05/1.377, allocations: 16.84 kB / 0.6433 GB, free: 16.54 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.59e-05/1.377, allocations: 4 kB / 0.6433 GB, free: 16.54 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.042e-05/1.377, allocations: 7.969 kB / 0.6433 GB, free: 16.53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01367/1.391, allocations: 5.794 MB / 0.649 GB, free: 10.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-05/1.391, allocations: 8 kB / 0.649 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00208/1.393, allocations: 319.8 kB / 0.6493 GB, free: 10.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001219/1.394, allocations: 330.2 kB / 0.6496 GB, free: 9.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003111/1.395, allocations: 15.98 kB / 0.6496 GB, free: 9.965 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007409/1.402, allocations: 5.971 MB / 0.6555 GB, free: 3.656 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.166e-06/1.402, allocations: 0 / 0.6555 GB, free: 3.656 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008666/1.411, allocations: 3.94 MB / 0.6593 GB, free: 15.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002044/1.413, allocations: 0.4904 MB / 0.6598 GB, free: 15.06 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009115/1.414, allocations: 11.91 kB / 0.6598 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002376/1.416, allocations: 51.95 kB / 0.6598 GB, free: 15 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005548/1.417, allocations: 101.8 kB / 0.6599 GB, free: 14.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002327/1.417, allocations: 52 kB / 0.66 GB, free: 14.85 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.003401/1.421, allocations: 1.157 MB / 0.6611 GB, free: 13.67 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004542/1.425, allocations: 0.6135 MB / 0.6617 GB, free: 13.05 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.strayReluctance.Phi.re,smee.stator.strayReluctance.Phi.im,constantTorque.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009382/1.426, allocations: 360.8 kB / 0.6621 GB, free: 12.73 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006302/1.433, allocations: 2.519 MB / 0.6645 GB, free: 10.17 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.979e-06/1.433, allocations: 0 / 0.6645 GB, free: 10.17 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003553/1.436, allocations: 1.423 MB / 0.6659 GB, free: 8.723 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003346/1.44, allocations: 386.6 kB / 0.6663 GB, free: 8.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01816/1.458, allocations: 5.352 MB / 0.6715 GB, free: 2.91 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006059/1.464, allocations: 2.767 MB / 0.6742 GB, free: 112 kB / 442.7 MB Notification: Performance of SimCode: time 2.141e-06/1.464, allocations: 4 kB / 0.6742 GB, free: 108 kB / 442.7 MB Notification: Performance of Templates: time 0.2221/1.686, allocations: 30.58 MB / 0.7041 GB, free: 132.4 MB / 442.7 MB