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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00153/0.00153, allocations: 182.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.076/2.076, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001133/0.001133, allocations: 94.41 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004166/0.0004168, allocations: 8 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4691/0.4696, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_DOL): time 0.02134/0.491, allocations: 9.536 MB / 384.2 MB, free: 38.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01388/0.5049, allocations: 3.858 MB / 388 MB, free: 34.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003151/0.5082, allocations: 54.84 kB / 388.1 MB, free: 34.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004508/0.5127, allocations: 0.6863 MB / 388.8 MB, free: 34.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0064/0.5192, allocations: 0.8565 MB / 389.6 MB, free: 33.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002903/0.5221, allocations: 340.9 kB / 390 MB, free: 33.39 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00744/0.5296, allocations: 2.244 MB / 392.2 MB, free: 31.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004947/0.5346, allocations: 1.802 MB / 394 MB, free: 29.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003328/0.538, allocations: 1.074 MB / 395.1 MB, free: 28.31 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00428/0.5423, allocations: 1.405 MB / 396.5 MB, free: 26.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001504/0.5439, allocations: 172 kB / 396.6 MB, free: 26.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002895/0.5469, allocations: 367.7 kB / 397 MB, free: 26.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002367/0.5493, allocations: 0.8295 MB / 397.8 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002341/0.5517, allocations: 0.6212 MB / 398.5 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008681/0.5604, allocations: 4.25 MB / 402.7 MB, free: 20.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.5605, allocations: 0 / 402.7 MB, free: 20.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.5605, allocations: 0 / 402.7 MB, free: 20.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001995/0.5607, allocations: 0 / 402.7 MB, free: 20.65 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.01363/0.5744, allocations: 3.177 MB / 405.9 MB, free: 17.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.33e-05/0.5744, allocations: 8.031 kB / 405.9 MB, free: 17.4 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001789/0.5762, allocations: 383.9 kB / 406.3 MB, free: 17.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003014/0.5793, allocations: 435.7 kB / 406.7 MB, free: 16.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006934/0.5863, allocations: 1.794 MB / 408.5 MB, free: 14.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003655/0.5867, allocations: 205.4 kB / 408.7 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001029/0.5877, allocations: 271.9 kB / 409 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01436/0.6021, allocations: 3.501 MB / 412.5 MB, free: 10.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001594/0.6023, allocations: 11.91 kB / 412.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005503/0.6029, allocations: 108 kB / 412.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002636/0.6032, allocations: 117.3 kB / 412.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01346/0.6167, allocations: 2.972 MB / 415.7 MB, free: 7.469 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0425/0.6592, allocations: 11.14 MB / 426.8 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008141/0.6674, allocations: 2.298 MB / 429.1 MB, free: 9.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007027/0.6682, allocations: 207.4 kB / 429.3 MB, free: 9.281 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.642e-05/0.6683, allocations: 55.83 kB / 429.4 MB, free: 9.219 MB / 314.7 MB Notification: Performance of pre-optimization done (n=131): time 4.027e-06/0.6683, allocations: 4 kB / 429.4 MB, free: 9.215 MB / 314.7 MB Notification: Performance of matching and sorting (n=148): time 0.02944/0.6977, allocations: 7.779 MB / 437.1 MB, free: 1.266 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.041e-05/0.6979, allocations: 68.72 kB / 437.2 MB, free: 1.188 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004732/0.7026, allocations: 1.94 MB / 439.1 MB, free: 15.2 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000374/0.703, allocations: 53.7 kB / 439.2 MB, free: 15.14 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001333/0.7044, allocations: 1.233 MB / 440.4 MB, free: 13.9 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008075/0.7052, allocations: 0.5083 MB / 440.9 MB, free: 13.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001657/0.7054, allocations: 39.94 kB / 441 MB, free: 13.34 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002386/0.7056, allocations: 378.8 kB / 441.3 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002873/0.7085, allocations: 0.8979 MB / 442.2 MB, free: 12.06 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003458/0.712, allocations: 1.375 MB / 443.6 MB, free: 10.49 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003473/0.7155, allocations: 1.096 MB / 444.7 MB, free: 9.391 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.918e-05/0.7156, allocations: 4 kB / 444.7 MB, free: 9.387 MB / 330.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.009007/0.7246, allocations: 2.842 MB / 447.6 MB, free: 6.508 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.157e-05/0.7247, allocations: 12 kB / 447.6 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-05/0.7247, allocations: 15.98 kB / 447.6 MB, free: 6.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001914/0.7267, allocations: 440.6 kB / 448 MB, free: 6.043 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003521/0.7302, allocations: 451.3 kB / 448.5 MB, free: 5.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01085/0.7411, allocations: 5.471 MB / 453.9 MB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002891/0.7441, allocations: 131.8 kB / 454.1 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004144/0.7445, allocations: 75.98 kB / 454.1 MB, free: 15.66 MB / 346.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.002774/0.7473, allocations: 0.8526 MB / 455 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008416/0.7482, allocations: 209.4 kB / 455.2 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008155/0.7563, allocations: 2.595 MB / 457.8 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-05/0.7564, allocations: 19.98 kB / 457.8 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.517e-05/0.7565, allocations: 4 kB / 457.8 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.831e-05/0.7565, allocations: 7.984 kB / 457.8 MB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01777/0.7743, allocations: 5.62 MB / 463.4 MB, free: 6.168 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.891e-05/0.7744, allocations: 0 / 463.4 MB, free: 6.168 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002655/0.777, allocations: 300 kB / 463.7 MB, free: 5.875 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002374/0.7794, allocations: 486.2 kB / 464.2 MB, free: 5.391 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003471/0.7798, allocations: 39.98 kB / 464.2 MB, free: 5.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01281/0.7927, allocations: 6.996 MB / 471.2 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.065e-05/0.7927, allocations: 7.938 kB / 471.3 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01136/0.8041, allocations: 4.064 MB / 475.3 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001792/0.8059, allocations: 482.3 kB / 475.8 MB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005573/0.8065, allocations: 32 kB / 475.8 MB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002364/0.8089, allocations: 116 kB / 475.9 MB, free: 9.031 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005314/0.8094, allocations: 129 kB / 476.1 MB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00018/0.8096, allocations: 43.98 kB / 476.1 MB, free: 8.859 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0036/0.8133, allocations: 1.332 MB / 477.4 MB, free: 7.504 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.32e-07/0.8133, allocations: 0 / 477.4 MB, free: 7.504 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003468/0.8168, allocations: 0.582 MB / 478 MB, free: 6.922 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.01278/0.8296, allocations: 5.542 MB / 483.6 MB, free: 1.234 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007803/0.8374, allocations: 2.6 MB / 486.2 MB, free: 14.58 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.918e-06/0.8375, allocations: 0.875 kB / 486.2 MB, free: 14.58 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005133/0.8426, allocations: 1.607 MB / 487.8 MB, free: 12.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003829/0.8465, allocations: 462.7 kB / 488.2 MB, free: 12.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3262/1.173, allocations: 27.22 MB / 0.5034 GB, free: 99.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002604/1.175, allocations: 2.16 MB / 0.5055 GB, free: 98.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002333/1.178, allocations: 1.073 MB / 0.5065 GB, free: 97.51 MB / 378.7 MB Notification: Performance of SimCode: time 1.513e-06/1.178, allocations: 1.594 kB / 0.5065 GB, free: 97.51 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] .