Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001455/0.001455, allocations: 185.7 kB / 8.011 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.301/2.301, allocations: 205.3 MB / 213.7 MB, free: 1.727 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00113/0.001129, allocations: 86.64 kB / 261.8 MB, free: 1.668 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2718/0.2718, allocations: 38 MB / 347.7 MB, free: 5.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.406e-05/2.404e-05, allocations: 4 kB / 409.9 MB, free: 35.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1142, allocations: 56.33 MB / 466.2 MB, free: 10.8 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5054/0.6196, allocations: 117.4 MB / 0.5699 GB, free: 10.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003329/0.62, allocations: 93.7 kB / 0.57 GB, free: 10.33 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1811/0.8012, allocations: 30.97 MB / 0.6003 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.8012, allocations: 0 / 0.6003 GB, free: 0.6289 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001014/0.8013, allocations: 31.94 kB / 0.6003 GB, free: 0.5977 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.003627/0.805, allocations: 1.162 MB / 0.6014 GB, free: 15.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.805, allocations: 8.031 kB / 0.6014 GB, free: 15.44 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008549/0.8059, allocations: 138.6 kB / 0.6016 GB, free: 15.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003507/0.8094, allocations: 0.9762 MB / 0.6025 GB, free: 14.51 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.132e-05/0.8095, allocations: 28 kB / 0.6026 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003093/0.8098, allocations: 66.59 kB / 0.6026 GB, free: 14.42 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002179/0.812, allocations: 0.8029 MB / 0.6034 GB, free: 13.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002362/0.8144, allocations: 1.004 MB / 0.6044 GB, free: 13.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.465e-05/0.8145, allocations: 4 kB / 0.6044 GB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000115/0.8146, allocations: 0 / 0.6044 GB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001813/0.8148, allocations: 68.97 kB / 0.6045 GB, free: 13.05 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009272/0.8241, allocations: 4.389 MB / 0.6087 GB, free: 9.277 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.8254, allocations: 0.5258 MB / 0.6093 GB, free: 8.902 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008915/0.8263, allocations: 357 kB / 0.6096 GB, free: 8.652 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.867e-05/0.8264, allocations: 13.02 kB / 0.6096 GB, free: 8.641 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.216e-05/0.8265, allocations: 44.69 kB / 0.6096 GB, free: 8.594 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 3.356e-06/0.8265, allocations: 0 / 0.6096 GB, free: 8.594 MB / 410.7 MB Notification: Performance of matching and sorting (n=62): time 0.004473/0.831, allocations: 1.837 MB / 0.6114 GB, free: 7.004 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.694e-05/0.8311, allocations: 133.1 kB / 0.6116 GB, free: 6.844 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008588/0.832, allocations: 492.7 kB / 0.612 GB, free: 6.461 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.741e-05/0.8321, allocations: 33.7 kB / 0.6121 GB, free: 6.422 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004284/0.8325, allocations: 0.5047 MB / 0.6126 GB, free: 6.023 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002695/0.8328, allocations: 211.9 kB / 0.6128 GB, free: 5.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.075e-05/0.8329, allocations: 0 / 0.6128 GB, free: 5.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.833, allocations: 347.8 kB / 0.6131 GB, free: 5.508 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006233/0.8337, allocations: 239.1 kB / 0.6133 GB, free: 5.273 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008209/0.8345, allocations: 493.7 kB / 0.6138 GB, free: 4.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004271/0.8388, allocations: 0.7712 MB / 0.6145 GB, free: 3.891 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.405e-06/0.8388, allocations: 4 kB / 0.6146 GB, free: 3.887 MB / 410.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.004506/0.8433, allocations: 1.3 MB / 0.6158 GB, free: 2.531 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00126/0.8446, allocations: 3.048 MB / 0.6188 GB, free: 15.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.013e-05/0.8447, allocations: 8 kB / 0.6188 GB, free: 15.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002967/0.8477, allocations: 461.6 kB / 0.6192 GB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.8487, allocations: 139.8 kB / 0.6194 GB, free: 14.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00552/0.8543, allocations: 3.998 MB / 0.6233 GB, free: 10.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.8553, allocations: 23.98 kB / 0.6233 GB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.774e-05/0.8554, allocations: 36 kB / 0.6233 GB, free: 10.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.8555, allocations: 4 kB / 0.6233 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004114/0.8596, allocations: 1.193 MB / 0.6245 GB, free: 9.082 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.823e-05/0.8597, allocations: 8 kB / 0.6245 GB, free: 9.074 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002674/0.8623, allocations: 450.5 kB / 0.6249 GB, free: 8.625 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.8634, allocations: 147.7 kB / 0.6251 GB, free: 8.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01301/0.8764, allocations: 7.105 MB / 0.632 GB, free: 1.012 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007259/0.8772, allocations: 19.98 kB / 0.632 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.099e-05/0.8773, allocations: 32 kB / 0.6321 GB, free: 0.9609 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. 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" ) "rotor angular velocity el" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 66 * 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.0003549/0.8776, allocations: 146.2 kB / 0.6322 GB, free: 0.8125 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000251/0.8779, allocations: 75.06 kB / 0.6323 GB, free: 0.7383 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001949/0.8798, allocations: 0.7555 MB / 0.633 GB, free: 15.95 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/0.8799, allocations: 12.14 kB / 0.633 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.8799, allocations: 0 / 0.633 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.642e-05/0.8799, allocations: 7.969 kB / 0.633 GB, free: 15.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003956/0.8839, allocations: 1.67 MB / 0.6347 GB, free: 14.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.8839, allocations: 0 / 0.6347 GB, free: 14.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/0.8853, allocations: 135.9 kB / 0.6348 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002469/0.8855, allocations: 49.69 kB / 0.6349 GB, free: 13.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.098e-05/0.8856, allocations: 8 kB / 0.6349 GB, free: 13.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002495/0.8881, allocations: 2.652 MB / 0.6374 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.299e-06/0.8882, allocations: 0 / 0.6374 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00262/0.8908, allocations: 1.277 MB / 0.6387 GB, free: 9.738 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004632/0.8913, allocations: 208 kB / 0.6389 GB, free: 9.516 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001311/0.8914, allocations: 4 kB / 0.6389 GB, free: 9.512 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006895/0.8921, allocations: 19.97 kB / 0.6389 GB, free: 9.492 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.8923, allocations: 44.52 kB / 0.639 GB, free: 9.449 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.21e-05/0.8924, allocations: 23.98 kB / 0.639 GB, free: 9.426 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007145/0.8931, allocations: 363.2 kB / 0.6393 GB, free: 9.078 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.8931, allocations: 0 / 0.6393 GB, free: 9.078 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002168/0.8953, allocations: 324 kB / 0.6396 GB, free: 8.762 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.rotor.phi,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,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.0003686/0.8957, allocations: 171.7 kB / 0.6398 GB, free: 8.586 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005015/0.9007, allocations: 1.839 MB / 0.6416 GB, free: 6.699 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/0.9008, allocations: 0 / 0.6416 GB, free: 6.699 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/0.9019, allocations: 0.5054 MB / 0.6421 GB, free: 6.172 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001442/0.9033, allocations: 148.1 kB / 0.6422 GB, free: 6.023 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004569/0.9079, allocations: 1.659 MB / 0.6439 GB, free: 4.324 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/0.909, allocations: 1.127 MB / 0.645 GB, free: 3.168 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003989/0.9094, allocations: 63.36 kB / 0.645 GB, free: 3.105 MB / 442.7 MB Notification: Performance of SimCode: time 1.021e-06/0.9095, allocations: 0 / 0.645 GB, free: 3.105 MB / 442.7 MB Notification: Performance of Templates: time 0.04218/0.9516, allocations: 20.57 MB / 0.6651 GB, free: 14.52 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)