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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 111.8 kB / 17.07 MB, free: 5.992 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.001308/0.001308, allocations: 194.9 kB / 18.01 MB, free: 5.074 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.458/1.458, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1767/0.1767, allocations: 38.03 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 59.91 kB / 458.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4517/0.4538, allocations: 58.06 MB / 0.5041 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.008949/0.4628, allocations: 7.168 MB / 0.5111 GB, free: 2.848 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005174/0.468, allocations: 3.014 MB / 0.514 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007221/0.4687, allocations: 35.06 kB / 0.5141 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00126/0.47, allocations: 371.3 kB / 0.5144 GB, free: 492 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001656/0.4717, allocations: 0.6324 MB / 0.515 GB, free: 124 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00115/0.4728, allocations: 438.2 kB / 0.5155 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002078/0.4749, allocations: 1.484 MB / 0.5169 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001804/0.4767, allocations: 1.206 MB / 0.5181 GB, free: 14.6 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0012/0.4779, allocations: 0.5688 MB / 0.5186 GB, free: 14.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001112/0.4791, allocations: 0.6463 MB / 0.5193 GB, free: 14.04 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002125/0.4793, allocations: 112.3 kB / 0.5194 GB, free: 14.04 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007974/0.4801, allocations: 353.2 kB / 0.5197 GB, free: 13.96 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000475/0.4806, allocations: 405.4 kB / 0.5201 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006837/0.4813, allocations: 0.576 MB / 0.5207 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003268/0.4846, allocations: 1.697 MB / 0.5223 GB, free: 12.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.716e-06/0.4846, allocations: 1.953 kB / 0.5223 GB, free: 12.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4846, allocations: 3.938 kB / 0.5223 GB, free: 12.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.996e-05/0.4846, allocations: 0 / 0.5223 GB, free: 12.77 MB / 398.1 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.003508/0.4882, allocations: 1.445 MB / 0.5237 GB, free: 11.82 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/0.4882, allocations: 13.3 kB / 0.5238 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007704/0.489, allocations: 171.1 kB / 0.5239 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/0.4907, allocations: 0.834 MB / 0.5247 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.983e-05/0.4908, allocations: 69.73 kB / 0.5248 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002462/0.491, allocations: 87.2 kB / 0.5249 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00243/0.4935, allocations: 1.153 MB / 0.526 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.924e-05/0.4935, allocations: 9.328 kB / 0.526 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.369e-05/0.4936, allocations: 33.88 kB / 0.5261 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001229/0.4938, allocations: 64.55 kB / 0.5261 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001883/0.4956, allocations: 0.939 MB / 0.527 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006754/0.5024, allocations: 4.62 MB / 0.5315 GB, free: 6.637 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.5036, allocations: 0.688 MB / 0.5322 GB, free: 6.191 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006354/0.5043, allocations: 339.8 kB / 0.5325 GB, free: 6.012 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.372e-05/0.5043, allocations: 11.45 kB / 0.5326 GB, free: 6.008 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.5044, allocations: 38.03 kB / 0.5326 GB, free: 5.961 MB / 398.1 MB Notification: Performance of pre-optimization done (n=58): time 4.268e-06/0.5044, allocations: 0 / 0.5326 GB, free: 5.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=62): time 0.005356/0.5097, allocations: 2.369 MB / 0.5349 GB, free: 4.441 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.5099, allocations: 144 kB / 0.535 GB, free: 4.277 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001095/0.511, allocations: 0.6831 MB / 0.5357 GB, free: 3.879 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.947e-05/0.511, allocations: 36.36 kB / 0.5357 GB, free: 3.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004135/0.5114, allocations: 0.4893 MB / 0.5362 GB, free: 3.398 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002339/0.5117, allocations: 230.4 kB / 0.5364 GB, free: 3.199 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002564/0.512, allocations: 151.3 kB / 0.5366 GB, free: 3.102 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/0.5122, allocations: 389.8 kB / 0.537 GB, free: 2.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005253/0.5127, allocations: 276.7 kB / 0.5372 GB, free: 2.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007433/0.5134, allocations: 0.5243 MB / 0.5377 GB, free: 2.121 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003939/0.5174, allocations: 1.51 MB / 0.5392 GB, free: 1.102 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.5174, allocations: 6.438 kB / 0.5392 GB, free: 1.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003552/0.521, allocations: 1.378 MB / 0.5406 GB, free: 312 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/0.521, allocations: 8.875 kB / 0.5406 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.454e-05/0.521, allocations: 8.25 kB / 0.5406 GB, free: 312 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001644/0.5227, allocations: 440.2 kB / 0.541 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00056/0.5233, allocations: 142.7 kB / 0.5411 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/0.5345, allocations: 6.717 MB / 0.5477 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.5356, allocations: 42.91 kB / 0.5477 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000162/0.5358, allocations: 35 kB / 0.5478 GB, free: 10.79 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001146/0.537, allocations: 0.5096 MB / 0.5483 GB, free: 10.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006765/0.5377, allocations: 0.5004 MB / 0.5487 GB, free: 9.668 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003438/0.5411, allocations: 1.478 MB / 0.5502 GB, free: 8.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.686e-06/0.5411, allocations: 4 kB / 0.5502 GB, free: 8.066 MB / 414.1 MB Notification: Performance of matching and sorting (n=100) (initialization_lambda0): time 0.002865/0.544, allocations: 1.301 MB / 0.5515 GB, free: 6.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.544, allocations: 12.03 kB / 0.5515 GB, free: 6.719 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.36e-05/0.5441, allocations: 8 kB / 0.5515 GB, free: 6.711 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/0.5455, allocations: 425.3 kB / 0.5519 GB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005284/0.546, allocations: 147.8 kB / 0.552 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008412/0.5545, allocations: 6.467 MB / 0.5583 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008437/0.5553, allocations: 47.88 kB / 0.5584 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001047/0.5555, allocations: 35.98 kB / 0.5584 GB, free: 15.32 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 69 * 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 {(4,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0003644/0.5558, allocations: 232 kB / 0.5586 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003359/0.5562, allocations: 83.48 kB / 0.5587 GB, free: 15 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001517/0.5577, allocations: 0.7303 MB / 0.5594 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.5577, allocations: 11.98 kB / 0.5595 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.5577, allocations: 0 / 0.5595 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.5578, allocations: 3.984 kB / 0.5595 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003529/0.5613, allocations: 1.761 MB / 0.5612 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.5613, allocations: 0 / 0.5612 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007096/0.562, allocations: 139.8 kB / 0.5613 GB, free: 12.26 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001082/0.5621, allocations: 24.92 kB / 0.5613 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-05/0.5622, allocations: 15.98 kB / 0.5613 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001016/0.5633, allocations: 1.382 MB / 0.5627 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.5633, allocations: 4.031 kB / 0.5627 GB, free: 10.69 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001842/0.5651, allocations: 1.207 MB / 0.5639 GB, free: 9.457 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004558/0.5656, allocations: 216.5 kB / 0.5641 GB, free: 9.227 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002002/0.5658, allocations: 15.98 kB / 0.5641 GB, free: 9.211 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005375/0.5663, allocations: 23.98 kB / 0.5641 GB, free: 9.188 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.5665, allocations: 52.44 kB / 0.5642 GB, free: 9.133 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-05/0.5665, allocations: 20 kB / 0.5642 GB, free: 9.113 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007387/0.5673, allocations: 479 kB / 0.5647 GB, free: 8.652 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5673, allocations: 0 / 0.5647 GB, free: 8.652 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002126/0.5694, allocations: 411.9 kB / 0.565 GB, free: 8.25 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,frictTorq.phi,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 (66): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,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.0004006/0.5698, allocations: 139.2 kB / 0.5652 GB, free: 8.105 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003788/0.5736, allocations: 1.98 MB / 0.5671 GB, free: 6.074 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.5736, allocations: 0 / 0.5671 GB, free: 6.074 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006856/0.5743, allocations: 441.7 kB / 0.5675 GB, free: 5.633 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001377/0.5757, allocations: 225.8 kB / 0.5677 GB, free: 5.418 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004144/0.5799, allocations: 2.123 MB / 0.5698 GB, free: 3.258 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.5809, allocations: 1.116 MB / 0.5709 GB, free: 2.109 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0007716/0.5817, allocations: 218.5 kB / 0.5711 GB, free: 1.891 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002173/0.5819, allocations: 59.42 kB / 0.5712 GB, free: 1.832 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5819, allocations: 0 / 0.5712 GB, free: 1.832 MB / 430.1 MB Notification: Performance of Templates: time 0.03264/0.6146, allocations: 17.43 MB / 0.5882 GB, free: 0.5273 MB / 446.1 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)