Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrl") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001622/0.001622, allocations: 106.9 kB / 17.75 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001879/0.001879, allocations: 198.5 kB / 18.68 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1885/0.1885, allocations: 37.99 MB / 309.9 MB, free: 5.957 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 63.91 kB / 432.6 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0959/0.09735, allocations: 55.24 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrl): time 0.00972/0.1071, allocations: 7.753 MB / 495.5 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007852/0.115, allocations: 5.048 MB / 0.4889 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007798/0.1158, allocations: 35.81 kB / 0.4889 GB, free: 11.45 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1895:3-1973:18:writable] Warning: Pure function 'Modelica.Math.Matrices.eigenValues' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgeev_eigenValues'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeComponents: time 0.009393/0.1252, allocations: 4.889 MB / 0.4937 GB, free: 6.555 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002001/0.1272, allocations: 0.6532 MB / 0.4943 GB, free: 5.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001411/0.1287, allocations: 0.5226 MB / 0.4948 GB, free: 5.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003394/0.1321, allocations: 2.807 MB / 0.4976 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002155/0.1342, allocations: 1.754 MB / 0.4993 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00138/0.1356, allocations: 0.884 MB / 0.5001 GB, free: 15.9 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001433/0.1371, allocations: 0.9577 MB / 0.5011 GB, free: 14.94 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004431/0.1375, allocations: 176 kB / 0.5012 GB, free: 14.77 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009819/0.1385, allocations: 0.5033 MB / 0.5017 GB, free: 14.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007232/0.1393, allocations: 0.6119 MB / 0.5023 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001072/0.1403, allocations: 0.8168 MB / 0.5031 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00252/0.1429, allocations: 2.36 MB / 0.5054 GB, free: 10.46 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1429, allocations: 8 kB / 0.5054 GB, free: 10.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.1429, allocations: 0 / 0.5054 GB, free: 10.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.209e-05/0.143, allocations: 0 / 0.5054 GB, free: 10.45 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.004797/0.1478, allocations: 1.952 MB / 0.5073 GB, free: 8.418 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.1478, allocations: 15.88 kB / 0.5074 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005497/0.1484, allocations: 159.2 kB / 0.5075 GB, free: 8.246 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002374/0.1508, allocations: 1.075 MB / 0.5086 GB, free: 7.125 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002007/0.151, allocations: 203.3 kB / 0.5088 GB, free: 6.906 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002697/0.1513, allocations: 123.8 kB / 0.5089 GB, free: 6.785 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003391/0.1547, allocations: 1.886 MB / 0.5107 GB, free: 4.809 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.263e-05/0.1547, allocations: 3.938 kB / 0.5107 GB, free: 4.805 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001609/0.1549, allocations: 51.97 kB / 0.5108 GB, free: 4.754 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002483/0.1551, allocations: 89.95 kB / 0.5109 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003047/0.1582, allocations: 1.475 MB / 0.5123 GB, free: 3.188 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008466/0.1667, allocations: 6.02 MB / 0.5182 GB, free: 12.99 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003184/0.1699, allocations: 1.366 MB / 0.5195 GB, free: 11.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00149/0.1714, allocations: 0.6886 MB / 0.5202 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.272e-05/0.1714, allocations: 22 kB / 0.5202 GB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001707/0.1732, allocations: 0.8927 MB / 0.5211 GB, free: 9.941 MB / 414.1 MB Notification: Performance of pre-optimization done (n=100): time 3.807e-06/0.1732, allocations: 0 / 0.5211 GB, free: 9.941 MB / 414.1 MB Notification: Performance of matching and sorting (n=102): time 0.009734/0.1829, allocations: 4.442 MB / 0.5254 GB, free: 5.34 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.1831, allocations: 157.4 kB / 0.5256 GB, free: 5.156 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001112/0.1842, allocations: 0.8372 MB / 0.5264 GB, free: 4.312 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.1843, allocations: 61.62 kB / 0.5264 GB, free: 4.246 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004403/0.1847, allocations: 0.5461 MB / 0.527 GB, free: 3.691 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003169/0.1851, allocations: 351.1 kB / 0.5273 GB, free: 3.344 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003862/0.1855, allocations: 246.7 kB / 0.5275 GB, free: 3.098 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.1856, allocations: 361.9 kB / 0.5279 GB, free: 2.738 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/0.1866, allocations: 0.6346 MB / 0.5285 GB, free: 2.102 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001228/0.1879, allocations: 0.9345 MB / 0.5294 GB, free: 1.039 MB / 414.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.2007/0.3886, allocations: 3.459 MB / 0.5328 GB, free: 50.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.3886, allocations: 2.781 kB / 0.5328 GB, free: 50.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.006669/0.3953, allocations: 2.678 MB / 0.5354 GB, free: 50.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.21e-05/0.3954, allocations: 67.62 kB / 0.5355 GB, free: 50.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.3954, allocations: 9.688 kB / 0.5355 GB, free: 50.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005379/0.4008, allocations: 1.382 MB / 0.5368 GB, free: 49.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006604/0.4015, allocations: 163.6 kB / 0.537 GB, free: 49.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00296/0.4045, allocations: 2.363 MB / 0.5393 GB, free: 48.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009211/0.4054, allocations: 86.2 kB / 0.5394 GB, free: 48.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001618/0.4056, allocations: 89.8 kB / 0.5395 GB, free: 48.65 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.asm_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00166/0.4072, allocations: 0.9699 MB / 0.5404 GB, free: 48.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001019/0.4083, allocations: 0.9312 MB / 0.5413 GB, free: 47.62 MB / 414.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009723/0.418, allocations: 3.432 MB / 0.5447 GB, free: 46.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.046e-05/0.418, allocations: 4.219 kB / 0.5447 GB, free: 46.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.006183/0.4242, allocations: 2.596 MB / 0.5472 GB, free: 45.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.912e-05/0.4243, allocations: 67.95 kB / 0.5473 GB, free: 45.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.4243, allocations: 9.938 kB / 0.5473 GB, free: 45.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005064/0.4294, allocations: 1.371 MB / 0.5486 GB, free: 44.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006367/0.43, allocations: 174.6 kB / 0.5488 GB, free: 44.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002589/0.4326, allocations: 2.312 MB / 0.5511 GB, free: 43.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009792/0.4336, allocations: 78.34 kB / 0.5511 GB, free: 43.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001362/0.4338, allocations: 91.31 kB / 0.5512 GB, free: 43.61 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.asm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,$PRE.asm_ctrl.inverter.modulator.gates[1],$PRE.asm_ctrl.inverter.modulator.gates[2],$PRE.asm_ctrl.inverter.modulator.gates[3],$PRE.asm_ctrl.inverter.modulator.gates[4],$PRE.asm_ctrl.inverter.modulator.gates[5],$PRE.asm_ctrl.inverter.modulator.gates[6],$PRE.asm_ctrl.inverter.modulator.t0[3],$PRE.asm_ctrl.inverter.modulator.t0[2],$PRE.asm_ctrl.inverter.modulator.t0[1],$PRE.asm_ctrl.inverter.modulator.sigdel_t[3],$PRE.asm_ctrl.inverter.modulator.sigdel_t[2],$PRE.asm_ctrl.inverter.modulator.sigdel_t[1],asm_ctrl.inverter.modulator.t0[3],asm_ctrl.inverter.modulator.t0[2],asm_ctrl.inverter.modulator.t0[1],asm_ctrl.inverter.modulator.sigdel_t[3],asm_ctrl.inverter.modulator.sigdel_t[2],asm_ctrl.inverter.modulator.sigdel_t[1],asm_ctrl.inverter.modulator.gates[6],asm_ctrl.inverter.modulator.gates[5],asm_ctrl.inverter.modulator.gates[4],asm_ctrl.inverter.modulator.gates[3],asm_ctrl.inverter.modulator.gates[2],asm_ctrl.inverter.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 96 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,41)} Notification: Performance of prepare postOptimizeDAE: time 0.0004471/0.4342, allocations: 286.7 kB / 0.5515 GB, free: 43.37 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002278/0.4345, allocations: 104.6 kB / 0.5516 GB, free: 43.37 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003395/0.4379, allocations: 1.791 MB / 0.5533 GB, free: 42.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.4379, allocations: 15.91 kB / 0.5534 GB, free: 42.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.4379, allocations: 0 / 0.5534 GB, free: 42.26 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005231/0.4384, allocations: 318 kB / 0.5537 GB, free: 42.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002161/0.4387, allocations: 94.72 kB / 0.5537 GB, free: 41.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008367/0.4395, allocations: 101 kB / 0.5538 GB, free: 41.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/0.4397, allocations: 83.83 kB / 0.5539 GB, free: 41.9 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003874/0.4436, allocations: 1.918 MB / 0.5558 GB, free: 40.81 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00387/0.4475, allocations: 2.594 MB / 0.5583 GB, free: 38.73 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001139/0.4486, allocations: 0.6948 MB / 0.559 GB, free: 38.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005555/0.4492, allocations: 0.5732 MB / 0.5596 GB, free: 37.46 MB / 414.1 MB Notification: Performance of Backend: time 2.9e-07/0.4492, allocations: 0 / 0.5596 GB, free: 37.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004622/0.4538, allocations: 2.652 MB / 0.5622 GB, free: 34.8 MB / 414.1 MB Notification: Performance of SimCode: time 0.003361/0.4572, allocations: 3.151 MB / 0.5652 GB, free: 31.66 MB / 414.1 MB Notification: Performance of Templates: time 0.0328/0.49, allocations: 28.06 MB / 0.5926 GB, free: 3.582 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrl.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrl.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrl.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrl.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrl.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrl -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_ctrl.pipe 2>&1)