Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.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.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 108.7 kB / 16.92 MB, free: 5.855 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.001599/0.001599, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.377/1.377, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1803/0.1803, allocations: 38.02 MB / 329.7 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 71.17 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1099, allocations: 58.05 MB / 456.9 MB, free: 8.094 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.009903/0.1199, allocations: 7.114 MB / 464 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008129/0.128, allocations: 5.088 MB / 469.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007795/0.1289, allocations: 35.81 kB / 469.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009918/0.1388, allocations: 5.696 MB / 474.8 MB, free: 6.098 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001494/0.1403, allocations: 0.5209 MB / 475.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.1416, allocations: 0.4893 MB / 475.8 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003125/0.1447, allocations: 2.249 MB / 478 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001289/0.146, allocations: 0.9235 MB / 479 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001054/0.1471, allocations: 0.6072 MB / 479.6 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009522/0.1481, allocations: 0.7162 MB / 480.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001682/0.1483, allocations: 100 kB / 480.4 MB, free: 476 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006244/0.1489, allocations: 259.7 kB / 480.6 MB, free: 216 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004911/0.1494, allocations: 494.8 kB / 481.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005866/0.15, allocations: 0.5754 MB / 481.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001694/0.1517, allocations: 1.526 MB / 483.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1517, allocations: 0 / 483.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1517, allocations: 4 kB / 483.2 MB, free: 13.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.698e-05/0.1517, allocations: 0 / 483.2 MB, free: 13.61 MB / 366.1 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.002905/0.1547, allocations: 1.459 MB / 484.7 MB, free: 12.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.1547, allocations: 15.89 kB / 484.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006501/0.1554, allocations: 147.5 kB / 484.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001544/0.1569, allocations: 0.8742 MB / 485.7 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.486e-05/0.157, allocations: 65.98 kB / 485.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001609/0.1572, allocations: 87.94 kB / 485.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001927/0.1591, allocations: 1.227 MB / 487.1 MB, free: 9.578 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.596e-05/0.1591, allocations: 7.906 kB / 487.1 MB, free: 9.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.1593, allocations: 35.98 kB / 487.1 MB, free: 9.535 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002454/0.1595, allocations: 97.88 kB / 487.2 MB, free: 9.441 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001581/0.1611, allocations: 1.011 MB / 488.3 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006421/0.1675, allocations: 4.916 MB / 493.2 MB, free: 3.305 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009722/0.1685, allocations: 0.6537 MB / 493.8 MB, free: 2.617 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000556/0.1691, allocations: 359.3 kB / 494.2 MB, free: 2.262 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.246e-05/0.1692, allocations: 8.547 kB / 494.2 MB, free: 2.254 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007035/0.1699, allocations: 453.7 kB / 494.6 MB, free: 1.789 MB / 366.1 MB Notification: Performance of pre-optimization done (n=62): time 2.665e-06/0.1699, allocations: 0 / 494.6 MB, free: 1.789 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005089/0.175, allocations: 2.708 MB / 497.3 MB, free: 14.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.117e-05/0.1751, allocations: 111.4 kB / 497.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009983/0.1761, allocations: 0.7545 MB / 498.2 MB, free: 14.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.563e-05/0.1762, allocations: 37.7 kB / 498.2 MB, free: 14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003798/0.1766, allocations: 0.4909 MB / 498.7 MB, free: 13.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002006/0.1768, allocations: 240.6 kB / 499 MB, free: 13.26 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002628/0.177, allocations: 182.5 kB / 499.1 MB, free: 13.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.1772, allocations: 406.7 kB / 499.5 MB, free: 12.67 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005989/0.1778, allocations: 369.8 kB / 499.9 MB, free: 12.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008759/0.1787, allocations: 0.6578 MB / 0.4888 GB, free: 11.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001388/0.1801, allocations: 1.049 MB / 0.4898 GB, free: 10.35 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.1801, allocations: 4 kB / 0.4898 GB, free: 10.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003005/0.1831, allocations: 1.634 MB / 0.4914 GB, free: 8.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.1832, allocations: 8 kB / 0.4915 GB, free: 8.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.1832, allocations: 11.98 kB / 0.4915 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001535/0.1847, allocations: 486.1 kB / 0.4919 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006267/0.1854, allocations: 167.7 kB / 0.4921 GB, free: 8.016 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/0.1954, allocations: 7.089 MB / 0.499 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007487/0.1962, allocations: 52.03 kB / 0.4991 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.204e-05/0.1963, allocations: 47.98 kB / 0.4991 GB, free: 0.543 MB / 382.1 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 (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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0005526/0.1969, allocations: 341.7 kB / 0.4994 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.197, allocations: 86.88 kB / 0.4995 GB, free: 116 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/0.1989, allocations: 1.118 MB / 0.5006 GB, free: 14.94 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.1989, allocations: 8 kB / 0.5006 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1989, allocations: 4 kB / 0.5006 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.1989, allocations: 3.984 kB / 0.5006 GB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003419/0.2023, allocations: 2.123 MB / 0.5027 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.2024, allocations: 4 kB / 0.5027 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007104/0.2031, allocations: 124 kB / 0.5028 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000542/0.2036, allocations: 162.4 kB / 0.503 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.85e-05/0.2037, allocations: 23.98 kB / 0.503 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004561/0.2083, allocations: 4.812 MB / 0.5077 GB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2083, allocations: 0 / 0.5077 GB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002284/0.2106, allocations: 1.533 MB / 0.5092 GB, free: 5.531 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003957/0.211, allocations: 215.9 kB / 0.5094 GB, free: 5.301 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.2111, allocations: 16 kB / 0.5094 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004326/0.2116, allocations: 39.97 kB / 0.5095 GB, free: 5.246 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001565/0.2117, allocations: 52.36 kB / 0.5095 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-05/0.2118, allocations: 23.98 kB / 0.5095 GB, free: 5.172 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007413/0.2125, allocations: 0.5107 MB / 0.51 GB, free: 4.664 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2125, allocations: 4 kB / 0.51 GB, free: 4.66 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00112/0.2137, allocations: 264.1 kB / 0.5103 GB, free: 4.402 MB / 398.1 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 (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,3,100.0%), (2,1,100.0%), (2,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.00104/0.2147, allocations: 428.8 kB / 0.5107 GB, free: 4.129 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003275/0.218, allocations: 1.458 MB / 0.5121 GB, free: 2.645 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/0.218, allocations: 0 / 0.5121 GB, free: 2.645 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001426/0.2195, allocations: 0.7858 MB / 0.5129 GB, free: 1.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.2208, allocations: 211.1 kB / 0.5131 GB, free: 1.613 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.204/0.4248, allocations: 2.684 MB / 0.5157 GB, free: 70.13 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008339/0.4257, allocations: 1.143 MB / 0.5168 GB, free: 69.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009018/0.4266, allocations: 227.3 kB / 0.517 GB, free: 69.42 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002242/0.4268, allocations: 69.98 kB / 0.5171 GB, free: 69.41 MB / 398.1 MB Notification: Performance of SimCode: time 8.02e-07/0.4268, allocations: 3.938 kB / 0.5171 GB, free: 69.41 MB / 398.1 MB Notification: Performance of Templates: time 0.02796/0.4548, allocations: 14.55 MB / 0.5313 GB, free: 65.87 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMav.pipe 2>&1)