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 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_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.00143/0.00143, allocations: 109.3 kB / 17.74 MB, free: 5.359 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.00225/0.00225, allocations: 180.1 kB / 18.66 MB, free: 4.449 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.391/1.391, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2333/0.2333, allocations: 37.98 MB / 309.9 MB, free: 5.969 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.001583/0.001584, allocations: 67.89 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1019, allocations: 55.25 MB / 487.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.007789/0.1098, allocations: 5.706 MB / 493.5 MB, free: 2.617 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007234/0.117, allocations: 4.49 MB / 498 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006641/0.1178, allocations: 19.88 kB / 498 MB, free: 14.09 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.0101/0.1279, allocations: 4.882 MB / 0.4911 GB, free: 9.199 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001323/0.1293, allocations: 434 kB / 0.4915 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008888/0.1302, allocations: 275.5 kB / 0.4918 GB, free: 8.504 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002616/0.1328, allocations: 1.731 MB / 0.4935 GB, free: 6.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001128/0.134, allocations: 0.7196 MB / 0.4942 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00102/0.135, allocations: 482.4 kB / 0.4946 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001011/0.136, allocations: 0.506 MB / 0.4951 GB, free: 5.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002189/0.1363, allocations: 76 kB / 0.4952 GB, free: 4.996 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004566/0.1368, allocations: 139.8 kB / 0.4953 GB, free: 4.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003973/0.1372, allocations: 323.3 kB / 0.4956 GB, free: 4.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006104/0.1378, allocations: 398.2 kB / 0.496 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001265/0.1391, allocations: 1.036 MB / 0.497 GB, free: 3.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.1391, allocations: 0 / 0.497 GB, free: 3.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.1391, allocations: 0 / 0.497 GB, free: 3.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.624e-05/0.1391, allocations: 0 / 0.497 GB, free: 3.113 MB / 382.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.002172/0.1413, allocations: 1.028 MB / 0.498 GB, free: 2.023 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.1413, allocations: 15.89 kB / 0.498 GB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004704/0.1418, allocations: 99.97 kB / 0.4981 GB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.1431, allocations: 0.6194 MB / 0.4987 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.364e-05/0.1432, allocations: 82.95 kB / 0.4988 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.1433, allocations: 67.92 kB / 0.4989 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00133/0.1447, allocations: 0.806 MB / 0.4997 GB, free: 260 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.289e-05/0.1447, allocations: 7.906 kB / 0.4997 GB, free: 252 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.309e-05/0.1448, allocations: 27.98 kB / 0.4997 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001367/0.1449, allocations: 49.28 kB / 0.4998 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.1459, allocations: 0.5866 MB / 0.5003 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004067/0.15, allocations: 2.919 MB / 0.5032 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008119/0.1509, allocations: 426.1 kB / 0.5036 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003333/0.1512, allocations: 230.3 kB / 0.5038 GB, free: 11.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.679e-05/0.1513, allocations: 8.312 kB / 0.5038 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004762/0.1517, allocations: 343.6 kB / 0.5041 GB, free: 11.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 3.346e-06/0.1518, allocations: 0 / 0.5041 GB, free: 11.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.003326/0.1551, allocations: 2.041 MB / 0.5061 GB, free: 9.324 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.34e-05/0.1552, allocations: 144.4 kB / 0.5063 GB, free: 9.152 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005048/0.1557, allocations: 445.8 kB / 0.5067 GB, free: 8.711 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.313e-05/0.1558, allocations: 37.7 kB / 0.5067 GB, free: 8.668 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002848/0.156, allocations: 331.9 kB / 0.5071 GB, free: 8.336 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.1562, allocations: 153.8 kB / 0.5072 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.1564, allocations: 118.2 kB / 0.5073 GB, free: 8.062 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1565, allocations: 358.8 kB / 0.5077 GB, free: 7.703 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003587/0.1569, allocations: 233.2 kB / 0.5079 GB, free: 7.477 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004562/0.1574, allocations: 401.7 kB / 0.5083 GB, free: 7.012 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002789/0.1602, allocations: 1.324 MB / 0.5096 GB, free: 5.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.932e-06/0.1602, allocations: 3.938 kB / 0.5096 GB, free: 5.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001872/0.1621, allocations: 0.9667 MB / 0.5105 GB, free: 4.602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.759e-05/0.1621, allocations: 33.7 kB / 0.5105 GB, free: 4.562 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.1622, allocations: 4.344 kB / 0.5105 GB, free: 4.559 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009287/0.1631, allocations: 317.4 kB / 0.5108 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009863/0.1641, allocations: 171.7 kB / 0.511 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006637/0.1708, allocations: 5.291 MB / 0.5162 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004538/0.1712, allocations: 31.92 kB / 0.5162 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.1e-05/0.1713, allocations: 24 kB / 0.5162 GB, free: 14.45 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_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.0004566/0.1718, allocations: 303.7 kB / 0.5165 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.1719, allocations: 59.36 kB / 0.5166 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001223/0.1732, allocations: 0.8063 MB / 0.5174 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/0.1732, allocations: 11.88 kB / 0.5174 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.1732, allocations: 4 kB / 0.5174 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.1732, allocations: 3.984 kB / 0.5174 GB, free: 13.19 MB / 414.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.002434/0.1756, allocations: 1.662 MB / 0.519 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.1757, allocations: 0 / 0.519 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/0.177, allocations: 199.9 kB / 0.5192 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000233/0.1773, allocations: 78.45 kB / 0.5193 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.889e-05/0.1773, allocations: 19.94 kB / 0.5193 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003062/0.1804, allocations: 4.245 MB / 0.5234 GB, free: 6.438 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1804, allocations: 0 / 0.5234 GB, free: 6.438 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001568/0.182, allocations: 1.128 MB / 0.5245 GB, free: 5.227 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003564/0.1824, allocations: 176.3 kB / 0.5247 GB, free: 5.035 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.1825, allocations: 8 kB / 0.5247 GB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003154/0.1828, allocations: 19.98 kB / 0.5247 GB, free: 5.008 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.1829, allocations: 35.95 kB / 0.5248 GB, free: 4.973 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.861e-05/0.183, allocations: 20 kB / 0.5248 GB, free: 4.953 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004146/0.1834, allocations: 315.1 kB / 0.5251 GB, free: 4.645 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1834, allocations: 0 / 0.5251 GB, free: 4.645 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008702/0.1843, allocations: 160 kB / 0.5252 GB, free: 4.488 MB / 414.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.0001747/0.1844, allocations: 123.1 kB / 0.5253 GB, free: 4.355 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001959/0.1864, allocations: 0.9833 MB / 0.5263 GB, free: 3.332 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.1864, allocations: 0 / 0.5263 GB, free: 3.332 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000813/0.1873, allocations: 0.6487 MB / 0.5269 GB, free: 2.633 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007738/0.188, allocations: 129.7 kB / 0.5271 GB, free: 2.508 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003268/0.1913, allocations: 1.705 MB / 0.5287 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2125/0.4039, allocations: 0.9885 MB / 0.5297 GB, free: 50.99 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002265/0.4042, allocations: 42.64 kB / 0.5297 GB, free: 50.99 MB / 414.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4042, allocations: 3 kB / 0.5297 GB, free: 50.99 MB / 414.1 MB Notification: Performance of Templates: time 0.02001/0.4242, allocations: 14.7 MB / 0.5441 GB, free: 47 MB / 414.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)