Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001722/0.001722, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001902/0.001902, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1739/0.1739, allocations: 38.03 MB / 330.4 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 61.34 kB / 399.5 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09617/0.09775, allocations: 58.06 MB / 457.5 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.007938/0.1057, allocations: 5.717 MB / 463.2 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006627/0.1124, allocations: 4.44 MB / 467.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005052/0.1129, allocations: 23.94 kB / 467.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009109/0.1221, allocations: 4.901 MB / 472.6 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001113/0.1232, allocations: 430 kB / 473 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007236/0.124, allocations: 271.5 kB / 473.3 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002231/0.1262, allocations: 1.727 MB / 475 MB, free: 6.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000981/0.1272, allocations: 0.7195 MB / 475.7 MB, free: 5.785 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007141/0.128, allocations: 482.4 kB / 476.2 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007977/0.1288, allocations: 0.4982 MB / 476.7 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001654/0.1289, allocations: 72 kB / 476.8 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000383/0.1293, allocations: 139.9 kB / 476.9 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003452/0.1297, allocations: 323.3 kB / 477.2 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005068/0.1302, allocations: 402.1 kB / 477.6 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001021/0.1312, allocations: 1.016 MB / 478.6 MB, free: 2.875 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1313, allocations: 0 / 478.6 MB, free: 2.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1313, allocations: 4 kB / 478.6 MB, free: 2.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.613e-05/0.1313, allocations: 0 / 478.6 MB, free: 2.871 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002061/0.1334, allocations: 1.025 MB / 479.7 MB, free: 1.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.1334, allocations: 15.89 kB / 479.7 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004489/0.1339, allocations: 103.9 kB / 479.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.135, allocations: 0.5998 MB / 480.4 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.955e-05/0.1351, allocations: 83 kB / 480.5 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000111/0.1352, allocations: 59.98 kB / 480.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.1364, allocations: 0.806 MB / 481.3 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.744e-05/0.1364, allocations: 7.906 kB / 481.3 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.156e-05/0.1365, allocations: 31.92 kB / 481.4 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001533/0.1367, allocations: 53.28 kB / 481.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009431/0.1376, allocations: 0.5866 MB / 482 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003919/0.1416, allocations: 2.935 MB / 484.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007719/0.1423, allocations: 430.1 kB / 485.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000326/0.1427, allocations: 226.7 kB / 485.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.33e-05/0.1427, allocations: 11.98 kB / 485.6 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004493/0.1432, allocations: 342.4 kB / 485.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 2.064e-06/0.1432, allocations: 0 / 485.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003109/0.1463, allocations: 2.043 MB / 488 MB, free: 9.086 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.093e-05/0.1464, allocations: 136.5 kB / 488.1 MB, free: 8.922 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004931/0.1469, allocations: 449.8 kB / 488.5 MB, free: 8.473 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.593e-05/0.147, allocations: 33.7 kB / 488.6 MB, free: 8.434 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002285/0.1472, allocations: 327.8 kB / 488.9 MB, free: 8.109 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.1473, allocations: 165.7 kB / 489.1 MB, free: 7.945 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001685/0.1475, allocations: 118.2 kB / 489.2 MB, free: 7.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1477, allocations: 362.8 kB / 489.5 MB, free: 7.457 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00035/0.148, allocations: 229.2 kB / 489.8 MB, free: 7.234 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000437/0.1485, allocations: 397.7 kB / 490.1 MB, free: 6.777 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002605/0.1511, allocations: 1.328 MB / 491.5 MB, free: 5.352 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.1511, allocations: 4 kB / 491.5 MB, free: 5.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001722/0.1528, allocations: 0.9746 MB / 492.5 MB, free: 4.352 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.821e-05/0.1529, allocations: 33.7 kB / 492.5 MB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.1529, allocations: 4 kB / 492.5 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008857/0.1538, allocations: 313 kB / 492.8 MB, free: 4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009856/0.1548, allocations: 175.7 kB / 493 MB, free: 3.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006325/0.1611, allocations: 5.3 MB / 498.3 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003856/0.1615, allocations: 23.98 kB / 498.3 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.539e-05/0.1616, allocations: 27.94 kB / 498.3 MB, free: 14.2 MB / 382.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_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0004209/0.162, allocations: 295.3 kB / 498.6 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.878e-05/0.1621, allocations: 55.28 kB / 498.7 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001182/0.1633, allocations: 0.8093 MB / 499.5 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.1634, allocations: 7.938 kB / 499.5 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1634, allocations: 0 / 499.5 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1634, allocations: 0 / 499.5 MB, free: 12.96 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002344/0.1657, allocations: 1.66 MB / 0.4894 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1657, allocations: 0 / 0.4894 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/0.167, allocations: 195.9 kB / 0.4896 GB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002216/0.1673, allocations: 82.41 kB / 0.4897 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.989e-05/0.1673, allocations: 19.92 kB / 0.4897 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002951/0.1703, allocations: 4.253 MB / 0.4938 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.1703, allocations: 4.031 kB / 0.4938 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.1718, allocations: 1.13 MB / 0.4949 GB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002644/0.1721, allocations: 172.3 kB / 0.4951 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.37e-05/0.1722, allocations: 16 kB / 0.4951 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002914/0.1725, allocations: 15.98 kB / 0.4951 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.1726, allocations: 39.95 kB / 0.4952 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.152e-05/0.1726, allocations: 8 kB / 0.4952 GB, free: 4.723 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004147/0.1731, allocations: 319.1 kB / 0.4955 GB, free: 4.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1731, allocations: 0 / 0.4955 GB, free: 4.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007184/0.1738, allocations: 164 kB / 0.4956 GB, free: 4.25 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000151/0.1739, allocations: 117.6 kB / 0.4957 GB, free: 4.125 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001982/0.1759, allocations: 1.058 MB / 0.4968 GB, free: 3.031 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.176, allocations: 0 / 0.4968 GB, free: 3.031 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007781/0.1767, allocations: 0.6409 MB / 0.4974 GB, free: 2.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007167/0.1775, allocations: 132.4 kB / 0.4975 GB, free: 2.215 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002713/0.1802, allocations: 1.743 MB / 0.4992 GB, free: 440 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006361/0.1808, allocations: 0.976 MB / 0.5002 GB, free: 15.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.181, allocations: 43.44 kB / 0.5002 GB, free: 15.38 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.181, allocations: 0 / 0.5002 GB, free: 15.38 MB / 398.1 MB Notification: Performance of Templates: time 0.01847/0.1995, allocations: 14.65 MB / 0.5145 GB, free: 0.75 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1)