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.001176/0.001176, allocations: 180.9 kB / 16.39 MB, free: 5.762 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.19/1.19, allocations: 194.5 MB / 211.6 MB, free: 3.059 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.001647/0.001646, allocations: 115.3 kB / 256.9 MB, free: 4.344 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1536/0.1536, allocations: 37.99 MB / 340.1 MB, free: 1.355 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.0003418, allocations: 15.98 kB / 403.8 MB, free: 68.79 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08913/0.08948, allocations: 53.23 MB / 457 MB, free: 15.55 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3316/0.4212, allocations: 112.1 MB / 0.5558 GB, free: 15.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.4215, allocations: 93.58 kB / 0.5559 GB, free: 15.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07785/0.4994, allocations: 30.57 MB / 0.5857 GB, free: 5.461 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4994, allocations: 3.938 kB / 0.5857 GB, free: 5.457 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.001e-05/0.4995, allocations: 27.94 kB / 0.5858 GB, free: 5.43 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.002574/0.5021, allocations: 1.229 MB / 0.587 GB, free: 4.215 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.5021, allocations: 16.02 kB / 0.587 GB, free: 4.199 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004613/0.5026, allocations: 130.7 kB / 0.5871 GB, free: 4.07 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002007/0.5046, allocations: 0.9833 MB / 0.5881 GB, free: 3.254 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.865e-05/0.5047, allocations: 59.31 kB / 0.5881 GB, free: 3.223 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001913/0.5049, allocations: 93.89 kB / 0.5882 GB, free: 3.156 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001707/0.5066, allocations: 1.126 MB / 0.5893 GB, free: 2.309 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.861e-05/0.5066, allocations: 4 kB / 0.5893 GB, free: 2.305 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.814e-05/0.5067, allocations: 30.75 kB / 0.5893 GB, free: 2.297 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.935e-05/0.5068, allocations: 65.78 kB / 0.5894 GB, free: 2.242 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001418/0.5083, allocations: 0.9136 MB / 0.5903 GB, free: 1.629 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005461/0.5137, allocations: 4.425 MB / 0.5946 GB, free: 13.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009805/0.5147, allocations: 0.6004 MB / 0.5952 GB, free: 13.39 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.287e-05/0.5148, allocations: 9.094 kB / 0.5952 GB, free: 13.38 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.808e-05/0.5148, allocations: 45.86 kB / 0.5952 GB, free: 13.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=57): time 3.376e-06/0.5148, allocations: 0 / 0.5952 GB, free: 13.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=62): time 0.004415/0.5193, allocations: 2.826 MB / 0.598 GB, free: 10.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.487e-05/0.5194, allocations: 133.1 kB / 0.5981 GB, free: 10.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006374/0.52, allocations: 0.5513 MB / 0.5987 GB, free: 10.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.741e-05/0.5201, allocations: 38.2 kB / 0.5987 GB, free: 10.35 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000327/0.5204, allocations: 461 kB / 0.5991 GB, free: 9.957 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/0.5206, allocations: 220.8 kB / 0.5994 GB, free: 9.738 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.06e-05/0.5206, allocations: 20 kB / 0.5994 GB, free: 9.719 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.5208, allocations: 390.8 kB / 0.5997 GB, free: 9.328 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005074/0.5213, allocations: 265.8 kB / 0.6 GB, free: 9.066 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000652/0.522, allocations: 0.5034 MB / 0.6005 GB, free: 8.457 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002475/0.5245, allocations: 0.8147 MB / 0.6013 GB, free: 7.625 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.5245, allocations: 0 / 0.6013 GB, free: 7.625 MB / 410.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.002812/0.5273, allocations: 1.467 MB / 0.6027 GB, free: 6.102 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001054/0.5284, allocations: 2.784 MB / 0.6054 GB, free: 3.102 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.5284, allocations: 12 kB / 0.6055 GB, free: 3.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001643/0.5301, allocations: 0.4889 MB / 0.6059 GB, free: 2.594 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000503/0.5306, allocations: 139.8 kB / 0.6061 GB, free: 2.457 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003461/0.5341, allocations: 3.991 MB / 0.61 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005342/0.5346, allocations: 39.89 kB / 0.61 GB, free: 14.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.536e-05/0.5347, allocations: 32 kB / 0.61 GB, free: 14.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.5347, allocations: 4 kB / 0.61 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002444/0.5371, allocations: 1.303 MB / 0.6113 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.5372, allocations: 11.98 kB / 0.6113 GB, free: 12.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001472/0.5386, allocations: 450.6 kB / 0.6117 GB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004885/0.5391, allocations: 139.8 kB / 0.6119 GB, free: 12.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009033/0.5482, allocations: 7.542 MB / 0.6192 GB, free: 4.184 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000679/0.5489, allocations: 39.83 kB / 0.6193 GB, free: 4.145 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.77e-05/0.549, allocations: 36.25 kB / 0.6193 GB, free: 4.109 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 (67): * Single equations (assignments): 64 * 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%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.0006588/0.5497, allocations: 400.8 kB / 0.6197 GB, free: 3.707 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001674/0.5498, allocations: 75.06 kB / 0.6198 GB, free: 3.633 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001329/0.5512, allocations: 0.8374 MB / 0.6206 GB, free: 2.758 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.5512, allocations: 11.95 kB / 0.6206 GB, free: 2.746 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.5512, allocations: 0 / 0.6206 GB, free: 2.746 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.5512, allocations: 3.984 kB / 0.6206 GB, free: 2.742 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002931/0.5542, allocations: 1.842 MB / 0.6224 GB, free: 0.8047 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.5542, allocations: 0 / 0.6224 GB, free: 0.8047 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007342/0.5549, allocations: 135.8 kB / 0.6225 GB, free: 0.6719 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000151/0.5551, allocations: 53.66 kB / 0.6226 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.788e-05/0.5552, allocations: 20 kB / 0.6226 GB, free: 0.5938 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001984/0.5572, allocations: 2.669 MB / 0.6252 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.5572, allocations: 0 / 0.6252 GB, free: 13.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/0.5592, allocations: 1.348 MB / 0.6265 GB, free: 12.24 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004544/0.5597, allocations: 200.2 kB / 0.6267 GB, free: 12.03 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/0.5598, allocations: 16 kB / 0.6267 GB, free: 12.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004843/0.5603, allocations: 27.94 kB / 0.6268 GB, free: 11.98 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.5604, allocations: 40.5 kB / 0.6268 GB, free: 11.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.376e-05/0.5605, allocations: 27.98 kB / 0.6268 GB, free: 11.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000739/0.5612, allocations: 439 kB / 0.6272 GB, free: 11.49 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5612, allocations: 4 kB / 0.6272 GB, free: 11.49 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001837/0.5631, allocations: 375.9 kB / 0.6276 GB, free: 11.12 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 (65): * Single equations (assignments): 62 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003313/0.5634, allocations: 155.1 kB / 0.6278 GB, free: 10.96 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003618/0.5671, allocations: 1.92 MB / 0.6296 GB, free: 8.977 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.5671, allocations: 0 / 0.6296 GB, free: 8.977 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000806/0.5679, allocations: 0.5596 MB / 0.6302 GB, free: 8.387 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001088/0.569, allocations: 194.8 kB / 0.6304 GB, free: 8.195 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004123/0.5731, allocations: 2.501 MB / 0.6328 GB, free: 5.656 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009602/0.5741, allocations: 1.119 MB / 0.6339 GB, free: 4.508 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007898/0.5749, allocations: 206.3 kB / 0.6341 GB, free: 4.301 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.5751, allocations: 59.42 kB / 0.6342 GB, free: 4.242 MB / 442.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5751, allocations: 0 / 0.6342 GB, free: 4.242 MB / 442.7 MB Notification: Performance of Templates: time 0.02546/0.6006, allocations: 14.18 MB / 0.648 GB, free: 6.066 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)