Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002732/0.002738, allocations: 182.2 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.634/3.634, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.005986/0.005986, allocations: 98.61 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006205/0.0006208, allocations: 12 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5493/0.55, allocations: 47.58 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.02143/0.5715, allocations: 7.806 MB / 382.3 MB, free: 39.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01454/0.5861, allocations: 3.336 MB / 385.7 MB, free: 36.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002885/0.5891, allocations: 36.91 kB / 385.7 MB, free: 36.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004561/0.5937, allocations: 0.55 MB / 386.3 MB, free: 36.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006414/0.6002, allocations: 0.6952 MB / 387 MB, free: 35.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003077/0.6034, allocations: 310.3 kB / 387.3 MB, free: 35.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006418/0.6098, allocations: 1.744 MB / 389 MB, free: 34.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003494/0.6134, allocations: 1.285 MB / 390.3 MB, free: 33.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003054/0.6166, allocations: 0.8445 MB / 391.1 MB, free: 32.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003962/0.6206, allocations: 1.101 MB / 392.2 MB, free: 31.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001518/0.6222, allocations: 132 kB / 392.4 MB, free: 30.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003005/0.6253, allocations: 335.6 kB / 392.7 MB, free: 30.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002491/0.6279, allocations: 0.7868 MB / 393.5 MB, free: 29.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002019/0.63, allocations: 0.5158 MB / 394 MB, free: 29.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008085/0.6382, allocations: 3.346 MB / 397.3 MB, free: 25.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.6383, allocations: 0 / 397.3 MB, free: 25.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.859e-06/0.6383, allocations: 0 / 397.3 MB, free: 25.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001763/0.6385, allocations: 4 kB / 397.3 MB, free: 25.96 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.01348/0.652, allocations: 2.702 MB / 400 MB, free: 23.19 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.787e-05/0.6521, allocations: 12.03 kB / 400.1 MB, free: 23.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002697/0.6548, allocations: 332.2 kB / 400.4 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007857/0.6627, allocations: 1.541 MB / 401.9 MB, free: 21.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003353/0.6632, allocations: 156 kB / 402.1 MB, free: 21.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001273/0.6645, allocations: 203.9 kB / 402.3 MB, free: 20.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01429/0.6788, allocations: 2.659 MB / 404.9 MB, free: 18.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001893/0.6791, allocations: 7.906 kB / 404.9 MB, free: 18.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009331/0.68, allocations: 87.94 kB / 405 MB, free: 18.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002674/0.6804, allocations: 99.92 kB / 405.1 MB, free: 17.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01244/0.6928, allocations: 2.268 MB / 407.4 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03495/0.7279, allocations: 8.189 MB / 415.6 MB, free: 7.312 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006973/0.7349, allocations: 1.592 MB / 417.2 MB, free: 5.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005327/0.7355, allocations: 135.3 kB / 417.3 MB, free: 5.512 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.945e-05/0.7356, allocations: 43.56 kB / 417.4 MB, free: 5.461 MB / 298.7 MB Notification: Performance of pre-optimization done (n=116): time 7.695e-06/0.7356, allocations: 0 / 417.4 MB, free: 5.461 MB / 298.7 MB Notification: Performance of matching and sorting (n=132): time 0.03709/0.7727, allocations: 6.461 MB / 423.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.363e-05/0.7729, allocations: 64.72 kB / 423.9 MB, free: 14.79 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008064/0.781, allocations: 2.109 MB / 426 MB, free: 12.63 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004878/0.7815, allocations: 45.7 kB / 426 MB, free: 12.58 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001853/0.7834, allocations: 1.012 MB / 427 MB, free: 11.56 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001176/0.7847, allocations: 449.4 kB / 427.5 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002446/0.785, allocations: 28 kB / 427.5 MB, free: 11.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003157/0.7853, allocations: 366.8 kB / 427.9 MB, free: 10.72 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004178/0.7895, allocations: 0.7612 MB / 428.6 MB, free: 9.957 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00477/0.7944, allocations: 1.003 MB / 429.6 MB, free: 8.863 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004805/0.7993, allocations: 0.8925 MB / 430.5 MB, free: 7.969 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.792e-05/0.7994, allocations: 7.953 kB / 430.5 MB, free: 7.961 MB / 314.7 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.016/0.8154, allocations: 2.633 MB / 433.2 MB, free: 5.312 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.571e-05/0.8155, allocations: 15.92 kB / 433.2 MB, free: 5.297 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.88e-05/0.8156, allocations: 8.25 kB / 433.2 MB, free: 5.289 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006104/0.8217, allocations: 0.813 MB / 434 MB, free: 4.469 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002786/0.8246, allocations: 267.6 kB / 434.3 MB, free: 4.207 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03606/0.8607, allocations: 9.29 MB / 443.6 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003692/0.8645, allocations: 95.89 kB / 443.6 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005595/0.8651, allocations: 51.98 kB / 443.7 MB, free: 10.49 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 120 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003749/0.8689, allocations: 0.7394 MB / 444.4 MB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001281/0.8702, allocations: 205.5 kB / 444.6 MB, free: 9.535 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0145/0.8848, allocations: 2.504 MB / 447.1 MB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.302e-05/0.885, allocations: 12 kB / 447.2 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.038e-05/0.885, allocations: 8 kB / 447.2 MB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.838e-05/0.8851, allocations: 11.97 kB / 447.2 MB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02726/0.9124, allocations: 4.898 MB / 452.1 MB, free: 1.988 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.433e-05/0.9125, allocations: 3.938 kB / 452.1 MB, free: 1.984 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003387/0.9159, allocations: 211.7 kB / 452.3 MB, free: 1.777 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005781/0.9218, allocations: 0.6778 MB / 453 MB, free: 1.09 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004363/0.9223, allocations: 31.97 kB / 453 MB, free: 1.059 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02669/0.949, allocations: 8.344 MB / 461.3 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/0.9491, allocations: 32 / 461.3 MB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01863/0.9677, allocations: 3.61 MB / 464.9 MB, free: 4.605 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002481/0.9703, allocations: 446.3 kB / 465.4 MB, free: 4.148 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009881/0.9714, allocations: 31.92 kB / 465.4 MB, free: 4.117 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003421/0.9748, allocations: 92.16 kB / 465.5 MB, free: 4.027 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008685/0.9758, allocations: 104.8 kB / 465.6 MB, free: 3.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002753/0.9761, allocations: 39.98 kB / 465.6 MB, free: 3.887 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.006062/0.9822, allocations: 1.484 MB / 467.1 MB, free: 2.379 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.002e-06/0.9822, allocations: 0 / 467.1 MB, free: 2.379 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004878/0.9871, allocations: 0.5234 MB / 467.7 MB, free: 1.855 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * 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): 1 * Torn equation systems: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002572/0.9898, allocations: 416.9 kB / 468.1 MB, free: 1.465 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.013/1.003, allocations: 2.396 MB / 470.5 MB, free: 15.04 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/1.003, allocations: 1.312 kB / 470.5 MB, free: 15.04 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008115/1.011, allocations: 1.646 MB / 472.1 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005446/1.017, allocations: 414.3 kB / 472.5 MB, free: 12.93 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02394/1.041, allocations: 6.081 MB / 478.6 MB, free: 6.801 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005207/1.046, allocations: 1.986 MB / 480.6 MB, free: 4.781 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001406/1.047, allocations: 135.4 kB / 480.7 MB, free: 4.648 MB / 362.7 MB Notification: Performance of SimCode: time 2.054e-06/1.047, allocations: 0 / 480.7 MB, free: 4.648 MB / 362.7 MB [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(sineVoltage.v)[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({-sineVoltage.i[1], -sineVoltage.i[2], -sineVoltage.i[3]})[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor(sineVoltage.v)[1] . [CodegenCppOld.tpl:10995:11-10995:11:writable] Error: Template error: Unsupported type of array call assign: ERROR:expTypeFromExpFlag Modelica.Electrical.Machines.SpacePhasors.Functions.ToSpacePhasor({-sineVoltage.i[1], -sineVoltage.i[2], -sineVoltage.i[3]})[1] .