Running command: translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance") Notification: Performance of loadModel(Modelica): time 1.957/1.957, allocations: 171.1 MB / 186.3 MB, free: 1.41 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.057e-05/3.094e-05, allocations: 0 / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08988/0.08995, allocations: 38.76 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance): time 0.004548/0.09456, allocations: 2.609 MB / 269.5 MB, free: 14.5 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002447/0.09706, allocations: 0.9391 MB / 270.4 MB, free: 13.56 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002555/0.09737, allocations: 12 kB / 270.4 MB, free: 13.55 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003725/0.09776, allocations: 95.36 kB / 270.5 MB, free: 13.45 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002182/0.09799, allocations: 67.81 kB / 270.6 MB, free: 13.39 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001794/0.0998, allocations: 0.5295 MB / 271.1 MB, free: 12.86 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005048/0.1003, allocations: 179.6 kB / 271.3 MB, free: 12.68 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001689/0.102, allocations: 0.6596 MB / 272 MB, free: 11.99 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003031/0.1023, allocations: 103.8 kB / 272.1 MB, free: 11.89 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002721/0.1026, allocations: 131.6 kB / 272.2 MB, free: 11.76 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004432/0.1031, allocations: 99.88 kB / 272.3 MB, free: 11.66 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.82e-05/0.1032, allocations: 16 kB / 272.3 MB, free: 11.65 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.793e-05/0.1033, allocations: 55.77 kB / 272.4 MB, free: 11.59 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.992e-05/0.1034, allocations: 24 kB / 272.4 MB, free: 11.57 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007141/0.1041, allocations: 411.2 kB / 272.8 MB, free: 11.17 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.1041, allocations: 0 / 272.8 MB, free: 11.17 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1041, allocations: 0 / 272.8 MB, free: 11.17 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.1041, allocations: 4 kB / 272.8 MB, free: 11.16 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 99 * Number of variables: 99 Notification: Performance of Generate backend data structure: time 0.002915/0.1071, allocations: 0.7374 MB / 273.5 MB, free: 10.38 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.1071, allocations: 16.02 kB / 273.6 MB, free: 10.36 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004365/0.1076, allocations: 55.61 kB / 273.6 MB, free: 10.31 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004342/0.108, allocations: 270.4 kB / 273.9 MB, free: 10 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.3e-05/0.1081, allocations: 29 kB / 273.9 MB, free: 9.973 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.1082, allocations: 47.94 kB / 273.9 MB, free: 9.926 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.1092, allocations: 346.5 kB / 274.3 MB, free: 9.582 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/0.1093, allocations: 0 / 274.3 MB, free: 9.582 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.108e-05/0.1094, allocations: 19.94 kB / 274.3 MB, free: 9.562 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.1094, allocations: 8 kB / 274.3 MB, free: 9.555 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009431/0.1103, allocations: 283.9 kB / 274.6 MB, free: 9.281 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002885/0.1133, allocations: 1.339 MB / 275.9 MB, free: 7.844 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008328/0.1141, allocations: 194.7 kB / 276.1 MB, free: 7.645 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.465e-05/0.1142, allocations: 0 / 276.1 MB, free: 7.645 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.27e-05/0.1142, allocations: 38.52 kB / 276.2 MB, free: 7.598 MB / 234.7 MB Notification: Performance of pre-optimization done (n=16): time 2.184e-06/0.1142, allocations: 0 / 276.2 MB, free: 7.598 MB / 234.7 MB Notification: Performance of matching and sorting (n=16): time 0.002414/0.1166, allocations: 0.4912 MB / 276.6 MB, free: 7.078 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.1167, allocations: 55.41 kB / 276.7 MB, free: 7.012 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00023/0.117, allocations: 150.7 kB / 276.8 MB, free: 6.855 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.117, allocations: 33.7 kB / 276.9 MB, free: 6.816 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001856/0.1172, allocations: 274 kB / 277.1 MB, free: 6.547 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.003e-05/0.1173, allocations: 55.25 kB / 277.2 MB, free: 6.492 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.723e-05/0.1173, allocations: 4 kB / 277.2 MB, free: 6.488 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1175, allocations: 322.8 kB / 277.5 MB, free: 6.164 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002817/0.1178, allocations: 71.95 kB / 277.6 MB, free: 6.094 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/0.1181, allocations: 126.8 kB / 277.7 MB, free: 5.945 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003265/0.1184, allocations: 86.05 kB / 277.8 MB, free: 5.863 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.1185, allocations: 0 / 277.8 MB, free: 5.863 MB / 234.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001084/0.1196, allocations: 314.2 kB / 278.1 MB, free: 5.547 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.1196, allocations: 9.562 kB / 278.1 MB, free: 5.539 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.1196, allocations: 0 / 278.1 MB, free: 5.539 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005268/0.1202, allocations: 84.77 kB / 278.2 MB, free: 5.453 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002854/0.1205, allocations: 47.91 kB / 278.2 MB, free: 5.406 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00311/0.1236, allocations: 1.87 MB / 280.1 MB, free: 3.398 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003026/0.1239, allocations: 35.7 kB / 280.1 MB, free: 3.363 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.124, allocations: 8.062 kB / 280.2 MB, free: 3.355 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002506/0.1242, allocations: 153.8 kB / 280.3 MB, free: 3.195 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.525e-05/0.1243, allocations: 11.86 kB / 280.3 MB, free: 3.184 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001017/0.1253, allocations: 264.6 kB / 280.6 MB, free: 2.918 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.847e-06/0.1254, allocations: 4 kB / 280.6 MB, free: 2.914 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.1254, allocations: 4 kB / 280.6 MB, free: 2.91 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.1254, allocations: 3.984 kB / 280.6 MB, free: 2.906 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005831/0.126, allocations: 337.3 kB / 280.9 MB, free: 2.527 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.126, allocations: 0 / 280.9 MB, free: 2.527 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002154/0.1262, allocations: 19.98 kB / 280.9 MB, free: 2.508 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000471/0.1267, allocations: 92.7 kB / 281 MB, free: 2.414 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.1268, allocations: 4 kB / 281 MB, free: 2.41 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002953/0.1297, allocations: 1.866 MB / 282.9 MB, free: 416 kB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1298, allocations: 0 / 282.9 MB, free: 416 kB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.1311, allocations: 432.4 kB / 283.3 MB, free: 15.96 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.217e-05/0.1312, allocations: 92.97 kB / 283.4 MB, free: 15.85 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.869e-05/0.1313, allocations: 4 kB / 283.4 MB, free: 15.85 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002515/0.1315, allocations: 19.92 kB / 283.4 MB, free: 15.83 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.054e-05/0.1316, allocations: 16.05 kB / 283.4 MB, free: 15.81 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.1317, allocations: 8 kB / 283.5 MB, free: 15.8 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001489/0.1318, allocations: 124.9 kB / 283.6 MB, free: 15.68 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-07/0.1318, allocations: 0 / 283.6 MB, free: 15.68 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0006916/0.1325, allocations: 95.59 kB / 283.7 MB, free: 15.59 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000227/0.1328, allocations: 119.2 kB / 283.8 MB, free: 15.46 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.1339, allocations: 346.4 kB / 284.1 MB, free: 15.11 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1339, allocations: 0 / 284.1 MB, free: 15.11 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006344/0.1346, allocations: 242.9 kB / 284.4 MB, free: 14.86 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003185/0.1349, allocations: 19.95 kB / 284.4 MB, free: 14.84 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.1366, allocations: 0.7461 MB / 285.1 MB, free: 14.07 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000527/0.1371, allocations: 0.7716 MB / 285.9 MB, free: 13.27 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.369e-05/0.1372, allocations: 15.42 kB / 285.9 MB, free: 13.25 MB / 250.7 MB Notification: Performance of SimCode: time 1.593e-06/0.1372, allocations: 0 / 285.9 MB, free: 13.25 MB / 250.7 MB Notification: Performance of Templates: time 0.008887/0.1461, allocations: 3.989 MB / 289.9 MB, free: 9.258 MB / 250.7 MB