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.001492/0.001492, allocations: 110.5 kB / 17.75 MB, free: 5.305 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.001664/0.001664, allocations: 191 kB / 18.68 MB, free: 4.383 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.324/1.324, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1772/0.1772, allocations: 38.03 MB / 330.6 MB, free: 8.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 63.89 kB / 458.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.277, allocations: 58.06 MB / 0.5048 GB, free: 8.043 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.00747/0.2845, allocations: 7.171 MB / 0.5118 GB, free: 3.039 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003888/0.2884, allocations: 3.024 MB / 0.5147 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003925/0.2888, allocations: 35.59 kB / 0.5148 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009716/0.2898, allocations: 370.3 kB / 0.5151 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001107/0.2909, allocations: 0.6414 MB / 0.5157 GB, free: 308 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007696/0.2917, allocations: 437.2 kB / 0.5161 GB, free: 60 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001551/0.2933, allocations: 1.49 MB / 0.5176 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001417/0.2947, allocations: 1.201 MB / 0.5188 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007805/0.2955, allocations: 0.5786 MB / 0.5193 GB, free: 14.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008393/0.2963, allocations: 0.6415 MB / 0.52 GB, free: 14.22 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001546/0.2965, allocations: 112.4 kB / 0.5201 GB, free: 14.22 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005858/0.2971, allocations: 353.2 kB / 0.5204 GB, free: 14.15 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004049/0.2975, allocations: 411.9 kB / 0.5208 GB, free: 13.95 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005495/0.2981, allocations: 0.5703 MB / 0.5214 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001772/0.2998, allocations: 1.692 MB / 0.523 GB, free: 12.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2998, allocations: 2.094 kB / 0.523 GB, free: 12.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.2999, allocations: 0 / 0.523 GB, free: 12.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.553e-05/0.2999, allocations: 3.938 kB / 0.523 GB, free: 12.96 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.002507/0.3024, allocations: 1.456 MB / 0.5244 GB, free: 12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.3024, allocations: 12.86 kB / 0.5245 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006505/0.3031, allocations: 170.8 kB / 0.5246 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001339/0.3044, allocations: 0.8336 MB / 0.5254 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.538e-05/0.3045, allocations: 65.67 kB / 0.5255 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000185/0.3047, allocations: 87.73 kB / 0.5256 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001778/0.3065, allocations: 1.161 MB / 0.5267 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.141e-05/0.3065, allocations: 5.453 kB / 0.5267 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.742e-05/0.3066, allocations: 33.7 kB / 0.5267 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.603e-05/0.3067, allocations: 63.81 kB / 0.5268 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001599/0.3083, allocations: 0.94 MB / 0.5277 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005657/0.314, allocations: 4.613 MB / 0.5322 GB, free: 6.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.315, allocations: 0.6888 MB / 0.5329 GB, free: 6.391 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005761/0.3156, allocations: 341.6 kB / 0.5332 GB, free: 6.215 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.852e-05/0.3157, allocations: 11.75 kB / 0.5332 GB, free: 6.211 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/0.3157, allocations: 46.33 kB / 0.5333 GB, free: 6.156 MB / 398.1 MB Notification: Performance of pre-optimization done (n=58): time 2.194e-06/0.3157, allocations: 0 / 0.5333 GB, free: 6.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=62): time 0.004668/0.3204, allocations: 2.369 MB / 0.5356 GB, free: 4.637 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.691e-05/0.3205, allocations: 139.7 kB / 0.5357 GB, free: 4.477 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008137/0.3213, allocations: 0.6824 MB / 0.5364 GB, free: 4.078 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.976e-05/0.3214, allocations: 35.89 kB / 0.5364 GB, free: 4.039 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003381/0.3217, allocations: 0.4941 MB / 0.5369 GB, free: 3.594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.3219, allocations: 229 kB / 0.5371 GB, free: 3.395 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002257/0.3221, allocations: 152.5 kB / 0.5373 GB, free: 3.297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.3223, allocations: 389.8 kB / 0.5377 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004871/0.3228, allocations: 276.5 kB / 0.5379 GB, free: 2.785 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006313/0.3234, allocations: 0.5212 MB / 0.5384 GB, free: 2.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003396/0.3268, allocations: 1.509 MB / 0.5399 GB, free: 1.301 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.219e-06/0.3269, allocations: 6.438 kB / 0.5399 GB, free: 1.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.0029/0.3298, allocations: 1.374 MB / 0.5412 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.3298, allocations: 12.19 kB / 0.5413 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.3298, allocations: 8.125 kB / 0.5413 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001537/0.3314, allocations: 437.3 kB / 0.5417 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005367/0.3319, allocations: 146.8 kB / 0.5418 GB, free: 272 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008938/0.3409, allocations: 6.717 MB / 0.5484 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000637/0.3415, allocations: 39.97 kB / 0.5484 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.509e-05/0.3416, allocations: 32 kB / 0.5484 GB, free: 10.86 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.0008764/0.3425, allocations: 0.5135 MB / 0.549 GB, free: 10.35 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005959/0.3431, allocations: 0.5004 MB / 0.5494 GB, free: 9.742 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00327/0.3464, allocations: 1.478 MB / 0.5509 GB, free: 8.145 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.089e-06/0.3464, allocations: 4 kB / 0.5509 GB, free: 8.141 MB / 414.1 MB Notification: Performance of matching and sorting (n=100) (initialization_lambda0): time 0.002538/0.3489, allocations: 1.297 MB / 0.5522 GB, free: 6.809 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.349, allocations: 14.41 kB / 0.5522 GB, free: 6.797 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.349, allocations: 12 kB / 0.5522 GB, free: 6.785 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001441/0.3504, allocations: 417.3 kB / 0.5526 GB, free: 6.371 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000522/0.351, allocations: 147.7 kB / 0.5527 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007753/0.3587, allocations: 6.475 MB / 0.559 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006046/0.3593, allocations: 47.81 kB / 0.5591 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.792e-05/0.3594, allocations: 39.94 kB / 0.5591 GB, free: 15.39 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.0002239/0.3596, allocations: 224.1 kB / 0.5593 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000157/0.3598, allocations: 91.48 kB / 0.5594 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001308/0.3611, allocations: 0.7263 MB / 0.5601 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.198e-06/0.3611, allocations: 3.984 kB / 0.5601 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3611, allocations: 0 / 0.5601 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002799/0.3614, allocations: 216.5 kB / 0.5603 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000121/0.3616, allocations: 15.98 kB / 0.5604 GB, free: 14.08 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000422/0.362, allocations: 27.98 kB / 0.5604 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.993e-05/0.3621, allocations: 40.5 kB / 0.5604 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001708/0.3638, allocations: 0.9977 MB / 0.5614 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001687/0.3655, allocations: 1.356 MB / 0.5627 GB, free: 11.63 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004486/0.366, allocations: 316.3 kB / 0.563 GB, free: 11.32 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000583/0.3666, allocations: 483 kB / 0.5635 GB, free: 10.86 MB / 430.1 MB Notification: Performance of Backend: time 4.11e-07/0.3666, allocations: 0 / 0.5635 GB, free: 10.86 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003675/0.3703, allocations: 1.868 MB / 0.5653 GB, free: 8.93 MB / 430.1 MB Notification: Performance of SimCode: time 0.003461/0.3737, allocations: 2.529 MB / 0.5678 GB, free: 6.355 MB / 430.1 MB Notification: Performance of Templates: time 0.03008/0.4038, allocations: 19.77 MB / 0.5871 GB, free: 2.719 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)