Running command: translateModel(Modelica.Electrical.Polyphase.Examples.TestSensors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Polyphase.Examples.TestSensors") Notification: Performance of loadModel(Modelica): time 2.298/2.298, allocations: 224.7 MB / 241.1 MB, free: 1.652 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.901e-05/2.902e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1124, allocations: 50.4 MB / 345 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Polyphase.Examples.TestSensors): time 0.01154/0.124, allocations: 4.773 MB / 349.7 MB, free: 4.137 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005304/0.1293, allocations: 1.46 MB / 351.2 MB, free: 2.672 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001243/0.1306, allocations: 71.81 kB / 351.3 MB, free: 2.602 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001039/0.1317, allocations: 254.5 kB / 351.5 MB, free: 2.352 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001795/0.1335, allocations: 263.1 kB / 351.8 MB, free: 2.094 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001125/0.1347, allocations: 207.7 kB / 352 MB, free: 1.891 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002924/0.1376, allocations: 0.9598 MB / 352.9 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003932/0.1416, allocations: 1.527 MB / 354.5 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001446/0.1431, allocations: 0.5337 MB / 355 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00191/0.145, allocations: 0.6771 MB / 355.7 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009678/0.146, allocations: 179.8 kB / 355.9 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004156/0.1465, allocations: 72 kB / 355.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000804/0.1473, allocations: 430.5 kB / 356.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007159/0.148, allocations: 168 kB / 356.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006254/0.1543, allocations: 3.047 MB / 359.6 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1544, allocations: 0 / 359.6 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.382e-06/0.1544, allocations: 0 / 359.6 MB, free: 10.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001172/0.1545, allocations: 7.938 kB / 359.6 MB, free: 10.27 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: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.007928/0.1625, allocations: 1.987 MB / 361.6 MB, free: 8.227 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/0.1626, allocations: 8.031 kB / 361.6 MB, free: 8.219 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001512/0.1641, allocations: 237.3 kB / 361.8 MB, free: 7.984 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004768/0.1689, allocations: 1.235 MB / 363 MB, free: 6.703 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002878/0.1692, allocations: 168.5 kB / 363.2 MB, free: 6.535 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008093/0.17, allocations: 220 kB / 363.4 MB, free: 6.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01036/0.1804, allocations: 2.514 MB / 365.9 MB, free: 3.754 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.959e-05/0.1806, allocations: 0 / 365.9 MB, free: 3.754 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004511/0.181, allocations: 92 kB / 366 MB, free: 3.664 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000165/0.1812, allocations: 60 kB / 366.1 MB, free: 3.605 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008232/0.1895, allocations: 2.13 MB / 368.2 MB, free: 1.461 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0208/0.2103, allocations: 7.651 MB / 375.8 MB, free: 9.594 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002115/0.2125, allocations: 1.258 MB / 377.1 MB, free: 8.203 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.266e-05/0.2126, allocations: 8.547 kB / 377.1 MB, free: 8.195 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.769e-05/0.2127, allocations: 47.11 kB / 377.2 MB, free: 8.141 MB / 314.7 MB Notification: Performance of pre-optimization done (n=63): time 3.988e-06/0.2127, allocations: 0 / 377.2 MB, free: 8.141 MB / 314.7 MB Notification: Performance of matching and sorting (n=64): time 0.006898/0.2196, allocations: 2.587 MB / 379.7 MB, free: 5.461 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.2197, allocations: 59.97 kB / 379.8 MB, free: 5.391 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001607/0.2213, allocations: 0.7026 MB / 380.5 MB, free: 4.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001279/0.2215, allocations: 37.7 kB / 380.5 MB, free: 4.637 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000839/0.2223, allocations: 0.9396 MB / 381.5 MB, free: 3.684 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003305/0.2227, allocations: 220.8 kB / 381.7 MB, free: 3.465 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/0.2228, allocations: 16 kB / 381.7 MB, free: 3.449 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.2229, allocations: 350.8 kB / 382.1 MB, free: 3.098 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001068/0.224, allocations: 369.8 kB / 382.4 MB, free: 2.734 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001228/0.2253, allocations: 0.5867 MB / 383 MB, free: 2.051 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001201/0.2265, allocations: 465.9 kB / 383.5 MB, free: 1.602 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.2265, allocations: 0 / 383.5 MB, free: 1.602 MB / 314.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002921/0.2295, allocations: 1.097 MB / 384.6 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.964e-05/0.2295, allocations: 8 kB / 384.6 MB, free: 496 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.032e-05/0.2296, allocations: 7.938 kB / 384.6 MB, free: 488 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003774/0.23, allocations: 92.72 kB / 384.7 MB, free: 392 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/0.2314, allocations: 179.8 kB / 384.8 MB, free: 212 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002938/0.2343, allocations: 1.956 MB / 386.8 MB, free: 14.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009805/0.2354, allocations: 44.03 kB / 386.8 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/0.2355, allocations: 39.92 kB / 386.9 MB, free: 14.04 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 88 * Array equations: 2 * 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 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001555/0.2371, allocations: 0.6447 MB / 387.5 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003253/0.2374, allocations: 83.02 kB / 387.6 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002765/0.2377, allocations: 99.56 kB / 387.7 MB, free: 13.2 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.081e-05/0.2377, allocations: 12 kB / 387.7 MB, free: 13.19 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.2378, allocations: 0 / 387.7 MB, free: 13.19 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.2378, allocations: 3.984 kB / 387.7 MB, free: 13.19 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006857/0.2447, allocations: 2.624 MB / 390.3 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.2447, allocations: 3.938 kB / 390.3 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001/0.2457, allocations: 111.9 kB / 390.5 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003339/0.2461, allocations: 80.86 kB / 390.5 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.721e-05/0.2462, allocations: 19.97 kB / 390.6 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002653/0.2488, allocations: 1.908 MB / 392.5 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.2489, allocations: 4.203 kB / 392.5 MB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003577/0.2525, allocations: 1.426 MB / 393.9 MB, free: 6.762 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006238/0.2531, allocations: 224 kB / 394.1 MB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002012/0.2534, allocations: 23.98 kB / 394.1 MB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007269/0.2541, allocations: 39.97 kB / 394.2 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/0.2543, allocations: 48.5 kB / 394.2 MB, free: 6.414 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.679e-05/0.2544, allocations: 20 kB / 394.2 MB, free: 6.395 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001173/0.2556, allocations: 0.5497 MB / 394.8 MB, free: 5.852 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.2556, allocations: 0 / 394.8 MB, free: 5.852 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001595/0.2572, allocations: 300.1 kB / 395.1 MB, free: 5.559 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor.inductor[2].i,inductor.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 53 * Array equations: 2 * 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 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003978/0.2576, allocations: 143.1 kB / 395.2 MB, free: 5.41 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002701/0.2604, allocations: 0.9989 MB / 396.2 MB, free: 4.398 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.2604, allocations: 0 / 396.2 MB, free: 4.398 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.2619, allocations: 0.5374 MB / 396.8 MB, free: 3.852 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/0.2636, allocations: 202.7 kB / 397 MB, free: 3.648 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2836/0.5472, allocations: 3.939 MB / 400.9 MB, free: 49.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002777/0.5501, allocations: 1.716 MB / 402.6 MB, free: 48.36 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005121/0.5506, allocations: 66 kB / 402.7 MB, free: 48.36 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5507, allocations: 0 / 402.7 MB, free: 48.36 MB / 330.7 MB [CodegenCpp.tpl:10820:11-10820:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({inductor.inductor[1].i, inductor.inductor[2].i, inductor.inductor[3].i})[1] . [CodegenCpp.tpl:10820:11-10820:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({sineVoltage.v[1] - powerSensorSpacePhasor.plug_nv.pin[3].v, sineVoltage.v[2] - powerSensorSpacePhasor.plug_nv.pin[3].v, sineVoltage.v[3] - powerSensorSpacePhasor.plug_nv.pin[3].v})[1] . [CodegenCpp.tpl:10820:11-10820:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({inductor.i[1], inductor.inductor[2].i, inductor.inductor[3].i})[1] . [CodegenCpp.tpl:10820:11-10820:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({sineVoltage.v[1] - powerSensorSpacePhasor.plug_nv.pin[3].v, sineVoltage.v[2] - powerSensorSpacePhasor.plug_nv.pin[3].v, sineVoltage.v[3] - powerSensorSpacePhasor.plug_nv.pin[3].v})[1] .