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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001081/0.00108, allocations: 92.64 kB / 16.65 MB, free: 6.59 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.001101/0.001102, allocations: 181.2 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.619/1.619, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1943/0.1943, allocations: 38.05 MB / 310.1 MB, free: 5.988 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005865/0.0005865, allocations: 16 kB / 377.2 MB, free: 2.789 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2882, allocations: 56.32 MB / 433.5 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.007223/0.2955, allocations: 7.745 MB / 441.2 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004967/0.3005, allocations: 3.343 MB / 444.6 MB, free: 7.547 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001615/0.3022, allocations: 51.69 kB / 444.6 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00129/0.3035, allocations: 234.5 kB / 444.9 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002287/0.3058, allocations: 0.5756 MB / 445.4 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001255/0.3071, allocations: 387.5 kB / 445.8 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00264/0.3098, allocations: 1.863 MB / 447.7 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002048/0.3118, allocations: 1.105 MB / 448.8 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009065/0.3128, allocations: 457.9 kB / 449.2 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009409/0.3137, allocations: 0.599 MB / 449.8 MB, free: 2.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002157/0.3139, allocations: 44 kB / 449.9 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006264/0.3146, allocations: 283.5 kB / 450.1 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004104/0.315, allocations: 319 kB / 450.5 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007698/0.3158, allocations: 0.5184 MB / 451 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00169/0.3175, allocations: 1.557 MB / 452.5 MB, free: 15.51 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3175, allocations: 0 / 452.5 MB, free: 15.51 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3175, allocations: 0 / 452.5 MB, free: 15.51 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.95e-05/0.3176, allocations: 0 / 452.5 MB, free: 15.51 MB / 334.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.003089/0.3207, allocations: 1.226 MB / 453.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.3207, allocations: 8.031 kB / 453.8 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000889/0.3216, allocations: 163.5 kB / 453.9 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001651/0.3233, allocations: 0.8128 MB / 454.7 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.023e-05/0.3234, allocations: 65.98 kB / 454.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002654/0.3237, allocations: 91.91 kB / 454.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002091/0.3258, allocations: 1.161 MB / 456.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.721e-05/0.3258, allocations: 4 kB / 456.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.978e-05/0.3259, allocations: 32 kB / 456.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001103/0.326, allocations: 65.97 kB / 456.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/0.328, allocations: 0.9563 MB / 457.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00735/0.3354, allocations: 4.648 MB / 461.8 MB, free: 5.898 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.3365, allocations: 0.699 MB / 462.5 MB, free: 5.156 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005969/0.3372, allocations: 354.8 kB / 462.8 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.552e-05/0.3372, allocations: 8.562 kB / 462.8 MB, free: 4.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.674e-05/0.3373, allocations: 39.12 kB / 462.8 MB, free: 4.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.605e-06/0.3373, allocations: 3.938 kB / 462.9 MB, free: 4.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=62): time 0.004989/0.3423, allocations: 2.378 MB / 465.2 MB, free: 2.293 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.384e-05/0.3424, allocations: 141 kB / 465.4 MB, free: 2.125 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000972/0.3434, allocations: 0.6881 MB / 466.1 MB, free: 1.426 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.653e-05/0.3434, allocations: 33.7 kB / 466.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004501/0.3439, allocations: 498.8 kB / 466.6 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002589/0.3442, allocations: 216.8 kB / 466.8 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.3443, allocations: 69.69 kB / 466.9 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003113/0.3446, allocations: 390.7 kB / 467.2 MB, free: 216 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005656/0.3452, allocations: 277.8 kB / 467.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007218/0.3459, allocations: 0.5237 MB / 468 MB, free: 15.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003761/0.3497, allocations: 1.537 MB / 469.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/0.3497, allocations: 4 kB / 469.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003691/0.3534, allocations: 1.414 MB / 471 MB, free: 12.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003661/0.3538, allocations: 320 kB / 471.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.333e-05/0.3539, allocations: 4 kB / 471.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00167/0.3555, allocations: 449.2 kB / 471.7 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005886/0.3561, allocations: 151.8 kB / 471.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009965/0.3661, allocations: 6.232 MB / 478.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009383/0.3671, allocations: 43.92 kB / 478.2 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.3673, allocations: 32 kB / 478.2 MB, free: 4.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.3673, allocations: 8 kB / 478.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002867/0.3702, allocations: 1.206 MB / 479.4 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/0.3702, allocations: 8.344 kB / 479.4 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001541/0.3718, allocations: 425.3 kB / 479.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005732/0.3724, allocations: 147.7 kB / 480 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008489/0.3809, allocations: 5.928 MB / 485.9 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007544/0.3817, allocations: 39.92 kB / 485.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.3818, allocations: 39.98 kB / 486 MB, free: 12.5 MB / 366.1 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. 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.0007796/0.3826, allocations: 396.8 kB / 486.4 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002392/0.3828, allocations: 78.97 kB / 486.5 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.3843, allocations: 0.7459 MB / 487.2 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.636e-06/0.3844, allocations: 4 kB / 487.2 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.3844, allocations: 4 kB / 487.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.3844, allocations: 11.92 kB / 487.2 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002948/0.3874, allocations: 1.782 MB / 489 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.3874, allocations: 4 kB / 489 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007071/0.3881, allocations: 139.8 kB / 489.1 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001126/0.3882, allocations: 28.91 kB / 489.2 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.535e-05/0.3883, allocations: 16 kB / 489.2 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000973/0.3893, allocations: 1.288 MB / 490.5 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.3893, allocations: 4.031 kB / 490.5 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001903/0.3912, allocations: 1.217 MB / 491.7 MB, free: 6.531 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003906/0.3916, allocations: 216.1 kB / 491.9 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/0.3917, allocations: 16 kB / 491.9 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004649/0.3922, allocations: 27.98 kB / 491.9 MB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.3923, allocations: 40.5 kB / 492 MB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.518e-05/0.3924, allocations: 20 kB / 492 MB, free: 6.199 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000716/0.3931, allocations: 483 kB / 492.5 MB, free: 5.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.3931, allocations: 4 kB / 492.5 MB, free: 5.727 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001722/0.3949, allocations: 408 kB / 492.9 MB, free: 5.328 MB / 366.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.0003912/0.3953, allocations: 134.5 kB / 493 MB, free: 5.191 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003816/0.3991, allocations: 1.992 MB / 495 MB, free: 3.148 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/0.3991, allocations: 0 / 495 MB, free: 3.148 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007341/0.3999, allocations: 458 kB / 495.4 MB, free: 2.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.4015, allocations: 233.3 kB / 495.7 MB, free: 2.465 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004309/0.4058, allocations: 2.607 MB / 498.3 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001058/0.4069, allocations: 1.116 MB / 499.4 MB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008892/0.4078, allocations: 222.5 kB / 499.6 MB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000227/0.408, allocations: 63.42 kB / 499.7 MB, free: 14.39 MB / 382.1 MB Notification: Performance of SimCode: time 1.933e-06/0.408, allocations: 0 / 499.7 MB, free: 14.39 MB / 382.1 MB Notification: Performance of Templates: time 0.03524/0.4433, allocations: 16.15 MB / 0.5037 GB, free: 14.27 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: