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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001904/0.001904, allocations: 190.2 kB / 8.132 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.279/1.279, allocations: 194.2 MB / 202.8 MB, free: 8.66 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.001787/0.001787, allocations: 121.8 kB / 247.7 MB, free: 6.344 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.168/0.168, allocations: 37.91 MB / 330.5 MB, free: 6.902 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.122e-06/6.142e-06, allocations: 0 / 389.8 MB, free: 78.11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1039, allocations: 53.23 MB / 443 MB, free: 24.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.352/0.456, allocations: 111.3 MB / 0.5414 GB, free: 12.69 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002484/0.4563, allocations: 89.67 kB / 0.5414 GB, free: 12.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.08706/0.5434, allocations: 30.02 MB / 0.5708 GB, free: 3.734 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.438e-05/0.5435, allocations: 20 kB / 0.5708 GB, free: 3.715 MB / 378.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.003284/0.5468, allocations: 1.146 MB / 0.5719 GB, free: 2.578 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.5469, allocations: 8.031 kB / 0.5719 GB, free: 2.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007826/0.5477, allocations: 134.6 kB / 0.572 GB, free: 2.438 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002575/0.5503, allocations: 0.9586 MB / 0.573 GB, free: 1.652 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.002e-05/0.5503, allocations: 24 kB / 0.573 GB, free: 1.629 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003209/0.5506, allocations: 59.72 kB / 0.573 GB, free: 1.574 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001624/0.5523, allocations: 0.8144 MB / 0.5738 GB, free: 1.051 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001688/0.554, allocations: 0.989 MB / 0.5748 GB, free: 276 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.225e-05/0.554, allocations: 7.906 kB / 0.5748 GB, free: 268 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.03e-05/0.5541, allocations: 0 / 0.5748 GB, free: 268 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001089/0.5542, allocations: 64.34 kB / 0.5749 GB, free: 208 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006804/0.561, allocations: 4.198 MB / 0.579 GB, free: 12.62 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005779/0.5617, allocations: 389.9 kB / 0.5794 GB, free: 12.34 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005554/0.5622, allocations: 343.2 kB / 0.5797 GB, free: 12.1 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.639e-05/0.5623, allocations: 11.94 kB / 0.5797 GB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/0.5623, allocations: 42 kB / 0.5797 GB, free: 12.04 MB / 394.7 MB Notification: Performance of pre-optimization done (n=57): time 2.284e-06/0.5624, allocations: 0 / 0.5797 GB, free: 12.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=62): time 0.003949/0.5663, allocations: 2.253 MB / 0.5819 GB, free: 10.08 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.302e-05/0.5664, allocations: 141 kB / 0.5821 GB, free: 9.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006897/0.5671, allocations: 467.5 kB / 0.5825 GB, free: 9.555 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.19e-05/0.5672, allocations: 25.7 kB / 0.5825 GB, free: 9.523 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002294/0.5674, allocations: 394.7 kB / 0.5829 GB, free: 9.172 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.5676, allocations: 212.5 kB / 0.5831 GB, free: 8.973 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.335e-05/0.5676, allocations: 0 / 0.5831 GB, free: 8.973 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.5678, allocations: 386.8 kB / 0.5835 GB, free: 8.586 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003897/0.5682, allocations: 237.9 kB / 0.5837 GB, free: 8.355 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005078/0.5688, allocations: 486.5 kB / 0.5842 GB, free: 7.773 MB / 394.7 MB Notification: The following equation is consistent and got removed from the initialization problem: $DER.sm_ctrl.rotor.w = 0.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.002653/0.5714, allocations: 0.7615 MB / 0.5849 GB, free: 6.988 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.5714, allocations: 0 / 0.5849 GB, free: 6.988 MB / 394.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002882/0.5743, allocations: 1.343 MB / 0.5862 GB, free: 5.594 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001304/0.5757, allocations: 2.87 MB / 0.589 GB, free: 2.496 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.11e-05/0.5757, allocations: 8 kB / 0.589 GB, free: 2.488 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001732/0.5774, allocations: 453.7 kB / 0.5895 GB, free: 2.039 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005358/0.578, allocations: 139.7 kB / 0.5896 GB, free: 1.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003859/0.5818, allocations: 4.028 MB / 0.5935 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006719/0.5825, allocations: 32.02 kB / 0.5936 GB, free: 13.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.688e-05/0.5826, allocations: 28 kB / 0.5936 GB, free: 13.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/0.5827, allocations: 4 kB / 0.5936 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002521/0.5852, allocations: 1.186 MB / 0.5948 GB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.199e-05/0.5852, allocations: 12 kB / 0.5948 GB, free: 12.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001673/0.5869, allocations: 446.7 kB / 0.5952 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005339/0.5874, allocations: 135.7 kB / 0.5953 GB, free: 11.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009065/0.5965, allocations: 6.796 MB / 0.602 GB, free: 4.578 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006805/0.5972, allocations: 20.09 kB / 0.602 GB, free: 4.559 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/0.5974, allocations: 31.98 kB / 0.602 GB, free: 4.527 MB / 410.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $DER.sm_ctrl.rotor.w = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: sm_ctrl.motor.i_dq[2]:VARIABLE(unit = "A" nominal = 1.0 protected = true ) "current demand {i_d, i_q} pu" type: Real [2] sm_ctrl.motor.w_el:VARIABLE(unit = "rad/s" stateSelect=StateSelect.prefer ) "rotor angular velocity el" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete 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%) 2,(1,100.0%) 3} * Non-linear torn systems: 1 {4 24} Notification: Performance of prepare postOptimizeDAE: time 0.0003052/0.5977, allocations: 132.6 kB / 0.6021 GB, free: 4.391 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001964/0.5979, allocations: 75.16 kB / 0.6022 GB, free: 4.316 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001354/0.5993, allocations: 0.7637 MB / 0.603 GB, free: 3.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.5993, allocations: 12 kB / 0.603 GB, free: 3.508 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.5993, allocations: 7.938 kB / 0.603 GB, free: 3.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.5993, allocations: 3.984 kB / 0.603 GB, free: 3.496 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00296/0.6023, allocations: 1.669 MB / 0.6046 GB, free: 1.738 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.6023, allocations: 0 / 0.6046 GB, free: 1.738 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007855/0.6031, allocations: 131.9 kB / 0.6047 GB, free: 1.609 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001635/0.6033, allocations: 57.67 kB / 0.6048 GB, free: 1.547 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.926e-05/0.6033, allocations: 11.98 kB / 0.6048 GB, free: 1.535 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001885/0.6052, allocations: 2.632 MB / 0.6074 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.6053, allocations: 0 / 0.6074 GB, free: 14.67 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001705/0.607, allocations: 1.276 MB / 0.6086 GB, free: 13.33 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003238/0.6073, allocations: 192.2 kB / 0.6088 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001406/0.6075, allocations: 7.984 kB / 0.6088 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004687/0.6079, allocations: 23.83 kB / 0.6088 GB, free: 13.09 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.313e-05/0.608, allocations: 36.61 kB / 0.6089 GB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.239e-05/0.6081, allocations: 19.98 kB / 0.6089 GB, free: 13.04 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0004204/0.6085, allocations: 351.2 kB / 0.6092 GB, free: 12.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001501/0.61, allocations: 316 kB / 0.6095 GB, free: 12.39 MB / 426.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 () * 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.0002662/0.6103, allocations: 163.1 kB / 0.6097 GB, free: 12.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0032/0.6135, allocations: 1.792 MB / 0.6114 GB, free: 10.38 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.6135, allocations: 0 / 0.6114 GB, free: 10.38 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006565/0.6142, allocations: 0.5057 MB / 0.6119 GB, free: 9.859 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009327/0.6151, allocations: 146.1 kB / 0.6121 GB, free: 9.719 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003226/0.6184, allocations: 1.595 MB / 0.6136 GB, free: 8.082 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008323/0.6192, allocations: 1.15 MB / 0.6147 GB, free: 6.906 MB / 426.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6192, allocations: 0 / 0.6147 GB, free: 6.906 MB / 426.7 MB Notification: Performance of Templates: time 0.0261/0.6453, allocations: 14.82 MB / 0.6292 GB, free: 8.117 MB / 442.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)