Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.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_ctrl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 114.3 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.00164/0.00164, allocations: 189.3 kB / 18.68 MB, free: 4.379 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.318/1.318, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1771/0.1771, allocations: 38.03 MB / 330.6 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 63.91 kB / 458.8 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.2715, allocations: 58.05 MB / 0.5048 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrl): time 0.007422/0.2789, allocations: 7.483 MB / 0.5121 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004236/0.2832, allocations: 3.164 MB / 0.5152 GB, free: 384 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004788/0.2837, allocations: 34.69 kB / 0.5152 GB, free: 372 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001073/0.2848, allocations: 398.5 kB / 0.5156 GB, free: 132 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001671/0.2865, allocations: 0.8058 MB / 0.5164 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009541/0.2874, allocations: 469.4 kB / 0.5168 GB, free: 15.44 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002091/0.2895, allocations: 1.924 MB / 0.5187 GB, free: 14.53 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002106/0.2917, allocations: 1.669 MB / 0.5203 GB, free: 13.74 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001096/0.2928, allocations: 0.7788 MB / 0.5211 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001014/0.2938, allocations: 0.8167 MB / 0.5219 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002285/0.294, allocations: 165.8 kB / 0.522 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001155/0.2952, allocations: 0.7075 MB / 0.5227 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005563/0.2958, allocations: 0.5629 MB / 0.5233 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007518/0.2965, allocations: 0.774 MB / 0.524 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002715/0.2993, allocations: 2.44 MB / 0.5264 GB, free: 11.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.2993, allocations: 0 / 0.5264 GB, free: 11.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2993, allocations: 0 / 0.5264 GB, free: 11.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.468e-05/0.2993, allocations: 0 / 0.5264 GB, free: 11.25 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: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.003693/0.303, allocations: 1.966 MB / 0.5283 GB, free: 9.992 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.3031, allocations: 12.58 kB / 0.5283 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007365/0.3038, allocations: 199.3 kB / 0.5285 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001609/0.3054, allocations: 0.9993 MB / 0.5295 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000173/0.3056, allocations: 189.9 kB / 0.5297 GB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002597/0.3059, allocations: 121.8 kB / 0.5298 GB, free: 8.938 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00325/0.3091, allocations: 1.819 MB / 0.5316 GB, free: 7.758 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.977e-05/0.3092, allocations: 15.17 kB / 0.5316 GB, free: 7.746 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001319/0.3093, allocations: 45.05 kB / 0.5316 GB, free: 7.711 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001191/0.3095, allocations: 79.69 kB / 0.5317 GB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002692/0.3122, allocations: 1.416 MB / 0.5331 GB, free: 6.977 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007691/0.3199, allocations: 6.351 MB / 0.5393 GB, free: 1.789 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002925/0.3228, allocations: 1.189 MB / 0.5405 GB, free: 1.094 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001338/0.3241, allocations: 0.5963 MB / 0.541 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.931e-05/0.3242, allocations: 13.42 kB / 0.5411 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00156/0.3258, allocations: 0.7666 MB / 0.5418 GB, free: 312 kB / 398.1 MB Notification: Performance of pre-optimization done (n=88): time 3.326e-06/0.3258, allocations: 1.094 kB / 0.5418 GB, free: 312 kB / 398.1 MB Notification: Performance of matching and sorting (n=92): time 0.009033/0.3348, allocations: 3.516 MB / 0.5452 GB, free: 14.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.335, allocations: 157.1 kB / 0.5454 GB, free: 14.11 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001423/0.3364, allocations: 0.8368 MB / 0.5462 GB, free: 13.47 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.3365, allocations: 53.64 kB / 0.5463 GB, free: 13.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004691/0.337, allocations: 0.5822 MB / 0.5468 GB, free: 12.82 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003012/0.3373, allocations: 321.3 kB / 0.5471 GB, free: 12.51 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003591/0.3377, allocations: 226.8 kB / 0.5474 GB, free: 12.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.3379, allocations: 418.8 kB / 0.5478 GB, free: 11.86 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009266/0.3388, allocations: 0.5331 MB / 0.5483 GB, free: 11.33 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/0.3399, allocations: 0.8656 MB / 0.5491 GB, free: 10.31 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005326/0.3453, allocations: 2.698 MB / 0.5518 GB, free: 7.441 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.3453, allocations: 0 / 0.5518 GB, free: 7.441 MB / 414.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.004004/0.3493, allocations: 2.076 MB / 0.5538 GB, free: 5.348 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.788e-05/0.3494, allocations: 70.17 kB / 0.5538 GB, free: 5.273 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.118e-05/0.3494, allocations: 16 kB / 0.5539 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002016/0.3514, allocations: 0.7829 MB / 0.5546 GB, free: 4.465 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006525/0.3521, allocations: 183.7 kB / 0.5548 GB, free: 4.285 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002226/0.3543, allocations: 1.859 MB / 0.5566 GB, free: 2.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009842/0.3553, allocations: 83.88 kB / 0.5567 GB, free: 2.312 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001458/0.3555, allocations: 87.88 kB / 0.5568 GB, free: 2.227 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.001348/0.3569, allocations: 0.8696 MB / 0.5576 GB, free: 1.355 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009826/0.3579, allocations: 0.8539 MB / 0.5585 GB, free: 368 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005089/0.363, allocations: 2.659 MB / 0.5611 GB, free: 13.52 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.563e-06/0.363, allocations: 0 / 0.5611 GB, free: 13.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=154) (initialization_lambda0): time 0.003595/0.3666, allocations: 2.006 MB / 0.563 GB, free: 11.5 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.602e-05/0.3667, allocations: 65.67 kB / 0.5631 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.3667, allocations: 12.5 kB / 0.5631 GB, free: 11.42 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001899/0.3686, allocations: 0.7712 MB / 0.5638 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006531/0.3693, allocations: 183.7 kB / 0.564 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00206/0.3713, allocations: 1.828 MB / 0.5658 GB, free: 8.598 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009351/0.3723, allocations: 79.89 kB / 0.5659 GB, free: 8.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001342/0.3724, allocations: 91.88 kB / 0.566 GB, free: 8.43 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: 45 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,$PRE.sm_ctrl.inverter.modulator.gates[1],$PRE.sm_ctrl.inverter.modulator.gates[2],$PRE.sm_ctrl.inverter.modulator.gates[3],$PRE.sm_ctrl.inverter.modulator.gates[4],$PRE.sm_ctrl.inverter.modulator.gates[5],$PRE.sm_ctrl.inverter.modulator.gates[6],$PRE.sm_ctrl.inverter.modulator.t0[3],$PRE.sm_ctrl.inverter.modulator.t0[2],$PRE.sm_ctrl.inverter.modulator.t0[1],$PRE.sm_ctrl.inverter.modulator.sigdel_t[3],$PRE.sm_ctrl.inverter.modulator.sigdel_t[2],$PRE.sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3,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 (104): * Single equations (assignments): 102 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,30)} Notification: Performance of prepare postOptimizeDAE: time 0.0003698/0.3728, allocations: 279.1 kB / 0.5662 GB, free: 8.156 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002705/0.3731, allocations: 103.3 kB / 0.5663 GB, free: 8.055 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003018/0.3761, allocations: 1.278 MB / 0.5676 GB, free: 6.766 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/0.3761, allocations: 7.984 kB / 0.5676 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3762, allocations: 0 / 0.5676 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005389/0.3767, allocations: 312.2 kB / 0.5679 GB, free: 6.434 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003012/0.377, allocations: 91.95 kB / 0.568 GB, free: 6.344 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008478/0.3779, allocations: 95.86 kB / 0.5681 GB, free: 6.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.378, allocations: 56.86 kB / 0.5681 GB, free: 6.195 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003501/0.3815, allocations: 1.567 MB / 0.5697 GB, free: 4.617 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004162/0.3857, allocations: 2.273 MB / 0.5719 GB, free: 2.324 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001212/0.3869, allocations: 0.5934 MB / 0.5725 GB, free: 1.73 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0008066/0.3877, allocations: 0.5654 MB / 0.573 GB, free: 1.168 MB / 430.1 MB Notification: Performance of Backend: time 5.71e-07/0.3878, allocations: 0 / 0.573 GB, free: 1.168 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004434/0.3922, allocations: 2.282 MB / 0.5752 GB, free: 14.86 MB / 446.1 MB Notification: Performance of SimCode: time 0.004292/0.3965, allocations: 2.883 MB / 0.578 GB, free: 11.93 MB / 446.1 MB Notification: Performance of Templates: time 0.03879/0.4353, allocations: 25.14 MB / 0.6026 GB, free: 2.934 MB / 462.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe 2>&1)