Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) 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(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00167/0.001671, allocations: 177.2 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.71/1.71, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0007019/0.0007019, allocations: 102.2 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1672/0.1672, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004131/0.0004132, allocations: 12 kB / 422.7 MB, free: 26.4 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1066, allocations: 56.34 MB / 479.1 MB, free: 2.008 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.008605/0.1152, allocations: 7.455 MB / 486.5 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.008859/0.1241, allocations: 5.072 MB / 491.6 MB, free: 5.434 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001015/0.1252, allocations: 47.69 kB / 491.6 MB, free: 5.387 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0091/0.1343, allocations: 5.366 MB / 497 MB, free: 12 kB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00185/0.1362, allocations: 0.5597 MB / 497.6 MB, free: 15.45 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001395/0.1376, allocations: 427.3 kB / 498 MB, free: 15.03 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003368/0.141, allocations: 2.545 MB / 0.4888 GB, free: 12.48 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001722/0.1427, allocations: 0.9594 MB / 0.4897 GB, free: 11.48 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009441/0.1437, allocations: 0.5057 MB / 0.4902 GB, free: 10.97 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008958/0.1446, allocations: 0.7008 MB / 0.4909 GB, free: 10.27 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.1447, allocations: 44 kB / 0.491 GB, free: 10.22 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004728/0.1452, allocations: 171.8 kB / 0.4911 GB, free: 10.05 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003812/0.1456, allocations: 442.9 kB / 0.4915 GB, free: 9.621 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002322/0.1458, allocations: 225.1 kB / 0.4918 GB, free: 9.395 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001091/0.1469, allocations: 1.181 MB / 0.4929 GB, free: 8.211 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.147, allocations: 0 / 0.4929 GB, free: 8.211 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.147, allocations: 4 kB / 0.4929 GB, free: 8.207 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.807e-05/0.147, allocations: 0 / 0.4929 GB, free: 8.207 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.002651/0.1497, allocations: 1.269 MB / 0.4942 GB, free: 6.883 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.1497, allocations: 12.02 kB / 0.4942 GB, free: 6.871 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006857/0.1504, allocations: 146.5 kB / 0.4943 GB, free: 6.727 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001623/0.152, allocations: 0.8511 MB / 0.4951 GB, free: 5.836 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.7e-05/0.1521, allocations: 61.98 kB / 0.4952 GB, free: 5.773 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001616/0.1523, allocations: 87.91 kB / 0.4953 GB, free: 5.688 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001994/0.1543, allocations: 1.232 MB / 0.4965 GB, free: 4.387 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.07e-05/0.1543, allocations: 3.938 kB / 0.4965 GB, free: 4.383 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.255e-05/0.1544, allocations: 39.98 kB / 0.4965 GB, free: 4.344 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002409/0.1547, allocations: 93.89 kB / 0.4966 GB, free: 4.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001556/0.1562, allocations: 0.9953 MB / 0.4976 GB, free: 3.258 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006679/0.1629, allocations: 4.928 MB / 0.5024 GB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009451/0.1639, allocations: 0.6601 MB / 0.503 GB, free: 13.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005803/0.1645, allocations: 363.4 kB / 0.5034 GB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.234e-05/0.1646, allocations: 16.44 kB / 0.5034 GB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000673/0.1653, allocations: 441.8 kB / 0.5038 GB, free: 12.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=62): time 3.247e-06/0.1653, allocations: 0 / 0.5038 GB, free: 12.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=65): time 0.004935/0.1702, allocations: 2.743 MB / 0.5065 GB, free: 9.711 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/0.1703, allocations: 107.4 kB / 0.5066 GB, free: 9.582 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009007/0.1712, allocations: 0.7467 MB / 0.5073 GB, free: 8.824 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.283e-05/0.1713, allocations: 41.64 kB / 0.5074 GB, free: 8.777 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003753/0.1717, allocations: 0.4948 MB / 0.5079 GB, free: 8.273 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002106/0.1719, allocations: 244.6 kB / 0.5081 GB, free: 8.031 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.553e-05/0.1719, allocations: 20 kB / 0.5081 GB, free: 8.012 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.1721, allocations: 402.7 kB / 0.5085 GB, free: 7.609 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005485/0.1727, allocations: 373.8 kB / 0.5089 GB, free: 7.242 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007268/0.1734, allocations: 0.6497 MB / 0.5095 GB, free: 6.465 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007512/0.1742, allocations: 483 kB / 0.51 GB, free: 5.992 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.217e-06/0.1742, allocations: 4 kB / 0.51 GB, free: 5.988 MB / 362.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002851/0.177, allocations: 1.615 MB / 0.5115 GB, free: 4.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.1771, allocations: 8.5 kB / 0.5115 GB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.1771, allocations: 12 kB / 0.5116 GB, free: 4.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001562/0.1787, allocations: 481.8 kB / 0.512 GB, free: 3.844 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006152/0.1793, allocations: 171.7 kB / 0.5122 GB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2026/0.3819, allocations: 6.49 MB / 0.5185 GB, free: 50.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009421/0.3829, allocations: 53.44 kB / 0.5186 GB, free: 50.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.413e-05/0.383, allocations: 41.67 kB / 0.5186 GB, free: 50.93 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {6 23} Notification: Performance of prepare postOptimizeDAE: time 0.0006105/0.3836, allocations: 351.5 kB / 0.5189 GB, free: 50.72 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.3837, allocations: 84.72 kB / 0.519 GB, free: 50.72 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001771/0.3855, allocations: 1.11 MB / 0.5201 GB, free: 50.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.3855, allocations: 7.438 kB / 0.5201 GB, free: 50.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.3855, allocations: 5.734 kB / 0.5201 GB, free: 50.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.3855, allocations: 3.969 kB / 0.5201 GB, free: 50.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003478/0.389, allocations: 2.121 MB / 0.5222 GB, free: 49.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.389, allocations: 1.156 kB / 0.5222 GB, free: 49.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007518/0.3898, allocations: 124.1 kB / 0.5223 GB, free: 49.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005724/0.3904, allocations: 163.1 kB / 0.5225 GB, free: 49 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.127e-05/0.3905, allocations: 23.17 kB / 0.5225 GB, free: 49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003272/0.3937, allocations: 4.449 MB / 0.5268 GB, free: 44.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.3937, allocations: 5.812 kB / 0.5268 GB, free: 44.87 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0023/0.3961, allocations: 1.518 MB / 0.5283 GB, free: 44.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000376/0.3964, allocations: 217.8 kB / 0.5285 GB, free: 43.94 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001167/0.3966, allocations: 26.72 kB / 0.5286 GB, free: 43.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004469/0.397, allocations: 29.89 kB / 0.5286 GB, free: 43.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.3972, allocations: 55.92 kB / 0.5286 GB, free: 43.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.586e-05/0.3972, allocations: 28.88 kB / 0.5287 GB, free: 43.9 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007241/0.398, allocations: 0.5075 MB / 0.5292 GB, free: 43.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.398, allocations: 0 / 0.5292 GB, free: 43.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001113/0.3991, allocations: 261.7 kB / 0.5294 GB, free: 43.65 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.rotor.phi,asm.rotor.w,asm.motor.i[3],asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(1,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008238/0.3999, allocations: 428.7 kB / 0.5298 GB, free: 43.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002648/0.4026, allocations: 1.324 MB / 0.5311 GB, free: 42.78 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.4026, allocations: 3.375 kB / 0.5311 GB, free: 42.78 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001194/0.4038, allocations: 0.7762 MB / 0.5319 GB, free: 42.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009811/0.4048, allocations: 204.4 kB / 0.5321 GB, free: 42.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004175/0.409, allocations: 3.321 MB / 0.5353 GB, free: 40.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006235/0.4096, allocations: 1.148 MB / 0.5364 GB, free: 39.51 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002475/0.4099, allocations: 78.19 kB / 0.5365 GB, free: 39.5 MB / 362.7 MB Notification: Performance of SimCode: time 9.42e-07/0.4099, allocations: 3.938 kB / 0.5365 GB, free: 39.49 MB / 362.7 MB Notification: Performance of Templates: time 0.02113/0.431, allocations: 22.71 MB / 0.5587 GB, free: 20.64 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)