Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00136/0.00136, allocations: 179.5 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.504/1.504, allocations: 194.5 MB / 212.6 MB, free: 2.941 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001629/0.001629, allocations: 124.5 kB / 257.9 MB, free: 4.27 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1846/0.1846, allocations: 38.01 MB / 341.1 MB, free: 1.191 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003662, allocations: 12 kB / 405 MB, free: 68.49 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.105, allocations: 53.24 MB / 458.3 MB, free: 15.25 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3684/0.4734, allocations: 112.2 MB / 0.5571 GB, free: 15.12 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.4737, allocations: 100.4 kB / 0.5572 GB, free: 15.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08228/0.556, allocations: 30.4 MB / 0.5868 GB, free: 5.238 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.987e-06/0.556, allocations: 4 kB / 0.5868 GB, free: 5.234 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.07e-05/0.5561, allocations: 23.94 kB / 0.5869 GB, free: 5.211 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.003099/0.5592, allocations: 1.23 MB / 0.5881 GB, free: 3.988 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.5593, allocations: 8.031 kB / 0.5881 GB, free: 3.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006377/0.5599, allocations: 131.6 kB / 0.5882 GB, free: 3.852 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001894/0.5618, allocations: 0.8765 MB / 0.5891 GB, free: 3.109 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.445e-05/0.5619, allocations: 63.12 kB / 0.5891 GB, free: 3.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002514/0.5622, allocations: 90.45 kB / 0.5892 GB, free: 3.008 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001876/0.5641, allocations: 1.144 MB / 0.5903 GB, free: 2.145 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.783e-05/0.5641, allocations: 0 / 0.5903 GB, free: 2.145 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.389e-05/0.5642, allocations: 32.06 kB / 0.5904 GB, free: 2.137 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001052/0.5643, allocations: 65.09 kB / 0.5904 GB, free: 2.078 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/0.5659, allocations: 0.9232 MB / 0.5913 GB, free: 1.457 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006245/0.5722, allocations: 4.413 MB / 0.5956 GB, free: 13.67 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.5732, allocations: 0.6027 MB / 0.5962 GB, free: 13.22 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005885/0.5738, allocations: 376.7 kB / 0.5966 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.604e-05/0.5739, allocations: 9.016 kB / 0.5966 GB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/0.5739, allocations: 53.61 kB / 0.5966 GB, free: 12.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=57): time 2.835e-06/0.574, allocations: 0 / 0.5966 GB, free: 12.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=62): time 0.004608/0.5786, allocations: 2.848 MB / 0.5994 GB, free: 10.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.674e-05/0.5787, allocations: 138.6 kB / 0.5995 GB, free: 10.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008041/0.5795, allocations: 0.6288 MB / 0.6002 GB, free: 9.785 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.55e-05/0.5795, allocations: 37.64 kB / 0.6002 GB, free: 9.742 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003062/0.5799, allocations: 470.9 kB / 0.6006 GB, free: 9.273 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001702/0.58, allocations: 216.8 kB / 0.6009 GB, free: 9.059 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.539e-05/0.5801, allocations: 24.03 kB / 0.6009 GB, free: 9.035 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.5803, allocations: 386.8 kB / 0.6012 GB, free: 8.648 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004674/0.5807, allocations: 273.8 kB / 0.6015 GB, free: 8.379 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005995/0.5814, allocations: 0.5003 MB / 0.602 GB, free: 7.777 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003353/0.5847, allocations: 1.539 MB / 0.6035 GB, free: 6.121 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.5847, allocations: 3.938 kB / 0.6035 GB, free: 6.117 MB / 410.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003011/0.5878, allocations: 1.514 MB / 0.605 GB, free: 4.547 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002579/0.588, allocations: 302.2 kB / 0.6053 GB, free: 4.148 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/0.5881, allocations: 8 kB / 0.6053 GB, free: 4.141 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001626/0.5897, allocations: 0.4928 MB / 0.6058 GB, free: 3.641 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004814/0.5902, allocations: 131.8 kB / 0.6059 GB, free: 3.512 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009873/0.6001, allocations: 7.699 MB / 0.6134 GB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007049/0.6008, allocations: 39.89 kB / 0.6134 GB, free: 11.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.75e-05/0.6009, allocations: 39.98 kB / 0.6135 GB, free: 11.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.874e-06/0.6009, allocations: 0 / 0.6135 GB, free: 11.31 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002501/0.6034, allocations: 1.313 MB / 0.6148 GB, free: 9.945 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.6034, allocations: 8 kB / 0.6148 GB, free: 9.938 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/0.6049, allocations: 470.5 kB / 0.6152 GB, free: 9.469 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004752/0.6054, allocations: 127.8 kB / 0.6153 GB, free: 9.344 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008983/0.6144, allocations: 7.46 MB / 0.6226 GB, free: 1.465 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000652/0.615, allocations: 39.86 kB / 0.6227 GB, free: 1.426 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.128e-05/0.6151, allocations: 36 kB / 0.6227 GB, free: 1.391 MB / 426.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.0007064/0.6158, allocations: 396.9 kB / 0.6231 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.616, allocations: 83.16 kB / 0.6232 GB, free: 0.9102 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.6174, allocations: 0.8607 MB / 0.624 GB, free: 16 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.6174, allocations: 4 kB / 0.624 GB, free: 12 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.6174, allocations: 4 kB / 0.624 GB, free: 8 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.6175, allocations: 3.984 kB / 0.624 GB, free: 4 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00278/0.6202, allocations: 1.869 MB / 0.6258 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.6203, allocations: 0 / 0.6258 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000673/0.6209, allocations: 135.8 kB / 0.626 GB, free: 13.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001599/0.6211, allocations: 57.72 kB / 0.626 GB, free: 13.84 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.688e-05/0.6212, allocations: 19.92 kB / 0.626 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001925/0.6231, allocations: 2.766 MB / 0.6287 GB, free: 10.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.6231, allocations: 0 / 0.6287 GB, free: 10.79 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.625, allocations: 1.323 MB / 0.63 GB, free: 9.418 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003098/0.6253, allocations: 204.1 kB / 0.6302 GB, free: 9.199 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.529e-05/0.6254, allocations: 19.94 kB / 0.6302 GB, free: 9.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000389/0.6258, allocations: 35.97 kB / 0.6303 GB, free: 9.145 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.6259, allocations: 36.52 kB / 0.6303 GB, free: 9.109 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.574e-05/0.626, allocations: 19.98 kB / 0.6303 GB, free: 9.09 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005574/0.6265, allocations: 439 kB / 0.6307 GB, free: 8.668 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6265, allocations: 3.938 kB / 0.6308 GB, free: 8.664 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001567/0.6281, allocations: 400 kB / 0.6311 GB, free: 8.273 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (sm_ctrl.motor.phi_el,sm_ctrl.motor.w_el,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003629/0.6285, allocations: 163 kB / 0.6313 GB, free: 8.105 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003469/0.632, allocations: 2.153 MB / 0.6334 GB, free: 5.871 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.632, allocations: 1.375 kB / 0.6334 GB, free: 5.871 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007845/0.6328, allocations: 0.5629 MB / 0.6339 GB, free: 5.281 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.6339, allocations: 207.1 kB / 0.6341 GB, free: 5.078 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003454/0.6373, allocations: 2.51 MB / 0.6366 GB, free: 2.535 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008384/0.6382, allocations: 1.104 MB / 0.6377 GB, free: 1.398 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007372/0.639, allocations: 206.3 kB / 0.6379 GB, free: 1.191 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000156/0.6391, allocations: 63.36 kB / 0.6379 GB, free: 1.129 MB / 442.7 MB Notification: Performance of SimCode: time 5.21e-07/0.6391, allocations: 0 / 0.6379 GB, free: 1.129 MB / 442.7 MB Notification: Performance of Templates: time 0.0291/0.6682, allocations: 15.84 MB / 0.6534 GB, free: 1.289 MB / 458.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)