Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL.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.SynchronousInductionMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002613/0.002613, allocations: 182.6 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.804/3.804, 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.001724/0.001724, allocations: 100.3 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006291/0.0006293, allocations: 8 kB / 327 MB, free: 196 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5962/0.5969, allocations: 47.56 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL): time 0.02528/0.6222, allocations: 9.533 MB / 384.1 MB, free: 38.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01642/0.6388, allocations: 3.87 MB / 387.9 MB, free: 34.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004476/0.6433, allocations: 49.75 kB / 388 MB, free: 34.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005573/0.649, allocations: 0.6868 MB / 388.7 MB, free: 34.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008141/0.6572, allocations: 0.8529 MB / 389.5 MB, free: 33.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003494/0.6608, allocations: 339.8 kB / 389.9 MB, free: 33.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00956/0.6705, allocations: 2.237 MB / 392.1 MB, free: 31.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006673/0.6772, allocations: 1.81 MB / 393.9 MB, free: 29.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004137/0.6815, allocations: 1.078 MB / 395 MB, free: 28.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005168/0.6868, allocations: 1.401 MB / 396.4 MB, free: 26.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001798/0.6886, allocations: 172 kB / 396.6 MB, free: 26.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003608/0.6923, allocations: 371.7 kB / 396.9 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002896/0.6953, allocations: 0.8218 MB / 397.7 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002648/0.6981, allocations: 0.625 MB / 398.4 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01093/0.7091, allocations: 4.25 MB / 402.6 MB, free: 20.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.7092, allocations: 3.938 kB / 402.6 MB, free: 20.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.757e-06/0.7092, allocations: 0 / 402.6 MB, free: 20.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002895/0.7095, allocations: 0 / 402.6 MB, free: 20.67 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.01702/0.7265, allocations: 3.166 MB / 405.8 MB, free: 17.44 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.565e-05/0.7266, allocations: 8.031 kB / 405.8 MB, free: 17.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004217/0.7309, allocations: 439.7 kB / 406.2 MB, free: 17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009045/0.74, allocations: 1.79 MB / 408 MB, free: 15.15 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005044/0.7406, allocations: 205.4 kB / 408.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001899/0.7425, allocations: 271.9 kB / 408.5 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02296/0.7655, allocations: 3.494 MB / 412 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000393/0.766, allocations: 7.844 kB / 412 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001351/0.7674, allocations: 116 kB / 412.1 MB, free: 10.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003199/0.7678, allocations: 129.2 kB / 412.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01594/0.7838, allocations: 2.968 MB / 415.2 MB, free: 7.879 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04924/0.8331, allocations: 11.15 MB / 426.3 MB, free: 12.39 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008332/0.8415, allocations: 2.302 MB / 428.6 MB, free: 9.922 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008022/0.8424, allocations: 199.5 kB / 428.8 MB, free: 9.691 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.013e-05/0.8425, allocations: 55.83 kB / 428.9 MB, free: 9.629 MB / 314.7 MB Notification: Performance of pre-optimization done (n=131): time 7.885e-06/0.8425, allocations: 0 / 428.9 MB, free: 9.629 MB / 314.7 MB Notification: Performance of matching and sorting (n=148): time 0.06144/0.904, allocations: 7.775 MB / 436.7 MB, free: 1.684 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.695e-05/0.9041, allocations: 72.7 kB / 436.7 MB, free: 1.602 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008343/0.9125, allocations: 1.94 MB / 438.7 MB, free: 15.62 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005221/0.9131, allocations: 53.7 kB / 438.7 MB, free: 15.56 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002256/0.9154, allocations: 1.229 MB / 439.9 MB, free: 14.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001337/0.9168, allocations: 0.5083 MB / 440.5 MB, free: 13.8 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003186/0.9172, allocations: 39.98 kB / 440.5 MB, free: 13.76 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0004376/0.9177, allocations: 382.8 kB / 440.9 MB, free: 13.38 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004717/0.9224, allocations: 0.894 MB / 441.8 MB, free: 12.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005624/0.9281, allocations: 1.375 MB / 443.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005728/0.9339, allocations: 1.099 MB / 444.2 MB, free: 9.805 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.749e-05/0.934, allocations: 4 kB / 444.2 MB, free: 9.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.01508/0.9491, allocations: 2.842 MB / 447.1 MB, free: 6.922 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.811e-05/0.9493, allocations: 12 kB / 447.1 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.176e-05/0.9494, allocations: 16 kB / 447.1 MB, free: 6.895 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003178/0.9526, allocations: 437 kB / 447.5 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005661/0.9584, allocations: 447.3 kB / 448 MB, free: 6.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01668/0.9751, allocations: 5.487 MB / 453.5 MB, free: 280 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004788/0.98, allocations: 127.9 kB / 453.6 MB, free: 152 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007196/0.9808, allocations: 75.98 kB / 453.7 MB, free: 76 kB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (202): * Single equations (assignments): 197 * 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: 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 {(3,100.0%) 16,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004375/0.9852, allocations: 0.8447 MB / 454.5 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00128/0.9865, allocations: 213.4 kB / 454.7 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01393/1, allocations: 2.602 MB / 457.3 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001048/1.001, allocations: 16 kB / 457.3 MB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-05/1.001, allocations: 4 kB / 457.3 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.003e-05/1.001, allocations: 7.969 kB / 457.3 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02949/1.03, allocations: 5.628 MB / 463 MB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.485e-05/1.03, allocations: 4 kB / 463 MB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004182/1.035, allocations: 296 kB / 463.3 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0038/1.038, allocations: 474.4 kB / 463.7 MB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005202/1.039, allocations: 35.98 kB / 463.8 MB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01984/1.059, allocations: 7 MB / 470.8 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.466e-05/1.059, allocations: 7.938 kB / 470.8 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01895/1.078, allocations: 4.068 MB / 474.8 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003039/1.081, allocations: 482.3 kB / 475.3 MB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001407/1.083, allocations: 44.05 kB / 475.4 MB, free: 9.543 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004328/1.087, allocations: 107.9 kB / 475.5 MB, free: 9.438 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001018/1.088, allocations: 125 kB / 475.6 MB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003551/1.089, allocations: 43.98 kB / 475.6 MB, free: 9.27 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006257/1.095, allocations: 1.332 MB / 477 MB, free: 7.914 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.603e-06/1.095, allocations: 0 / 477 MB, free: 7.914 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005934/1.101, allocations: 0.5859 MB / 477.5 MB, free: 7.328 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 123 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 16,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001326/1.102, allocations: 178.4 kB / 477.7 MB, free: 7.148 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0131/1.115, allocations: 2.607 MB / 480.3 MB, free: 4.492 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.727e-05/1.115, allocations: 0 / 480.3 MB, free: 4.492 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008012/1.124, allocations: 1.613 MB / 481.9 MB, free: 2.848 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006209/1.13, allocations: 452.9 kB / 482.4 MB, free: 2.406 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02844/1.158, allocations: 6.722 MB / 489.1 MB, free: 11.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006352/1.165, allocations: 2.159 MB / 491.3 MB, free: 9.418 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00182/1.167, allocations: 155.3 kB / 491.4 MB, free: 9.266 MB / 378.7 MB Notification: Performance of SimCode: time 2.495e-06/1.167, allocations: 0 / 491.4 MB, free: 9.266 MB / 378.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(smee.is)[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({currentQuasiRMSSensor.plug_p.pin[1].v - terminalBox.plug_sn.pin[3].v, currentQuasiRMSSensor.plug_p.pin[2].v - terminalBox.plug_sn.pin[3].v, currentQuasiRMSSensor.plug_p.pin[3].v - terminalBox.plug_sn.pin[3].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(smee.is)[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({currentQuasiRMSSensor.plug_p.pin[1].v - terminalBox.plug_sn.pin[3].v, currentQuasiRMSSensor.plug_p.pin[2].v - terminalBox.plug_sn.pin[3].v, currentQuasiRMSSensor.plug_p.pin[3].v - terminalBox.plug_sn.pin[3].v})[1] .