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.001195/0.001195, allocations: 111.4 kB / 17.68 MB, free: 5.496 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.001319/0.001319, allocations: 192 kB / 18.62 MB, free: 4.562 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.571/1.571, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1947/0.1947, allocations: 37.98 MB / 309.8 MB, free: 5.969 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.001646/0.001647, allocations: 67.91 kB / 376.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2847, allocations: 55.23 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.007945/0.2927, allocations: 7.197 MB / 439.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005023/0.2978, allocations: 3.058 MB / 442.3 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007179/0.2986, allocations: 39.81 kB / 442.3 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001255/0.2999, allocations: 376.3 kB / 442.7 MB, free: 8.801 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.001277/0.3012, allocations: 0.6334 MB / 443.3 MB, free: 8.164 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009243/0.3021, allocations: 431.3 kB / 443.7 MB, free: 7.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001528/0.3036, allocations: 1.493 MB / 445.2 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001123/0.3048, allocations: 1.199 MB / 446.4 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005525/0.3053, allocations: 0.5721 MB / 447 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006958/0.306, allocations: 0.6459 MB / 447.6 MB, free: 3.797 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001373/0.3062, allocations: 112 kB / 447.8 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000466/0.3067, allocations: 351.5 kB / 448.1 MB, free: 3.344 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002872/0.307, allocations: 407 kB / 448.5 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004372/0.3074, allocations: 0.5792 MB / 449.1 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001357/0.3088, allocations: 1.678 MB / 450.7 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.3088, allocations: 0 / 450.7 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.3088, allocations: 4 kB / 450.8 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.514e-05/0.3088, allocations: 0 / 450.8 MB, free: 0.6758 MB / 318.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.00257/0.3114, allocations: 1.421 MB / 452.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.354e-05/0.3115, allocations: 15.89 kB / 452.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007397/0.3122, allocations: 167.5 kB / 452.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001495/0.3137, allocations: 0.8363 MB / 453.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.691e-05/0.3138, allocations: 69.98 kB / 453.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002019/0.314, allocations: 91.91 kB / 453.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00171/0.3157, allocations: 1.153 MB / 454.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.334e-05/0.3158, allocations: 4 kB / 454.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.95e-05/0.3158, allocations: 36 kB / 454.5 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001078/0.316, allocations: 65.91 kB / 454.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00155/0.3175, allocations: 0.9446 MB / 455.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006123/0.3237, allocations: 4.597 MB / 460.1 MB, free: 6.906 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.3248, allocations: 0.6795 MB / 460.8 MB, free: 6.184 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005592/0.3254, allocations: 344.1 kB / 461.2 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.5e-05/0.3254, allocations: 8.547 kB / 461.2 MB, free: 5.832 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.221e-05/0.3255, allocations: 39.12 kB / 461.2 MB, free: 5.785 MB / 334.1 MB Notification: Performance of pre-optimization done (n=58): time 2.234e-06/0.3255, allocations: 0 / 461.2 MB, free: 5.785 MB / 334.1 MB Notification: Performance of matching and sorting (n=62): time 0.004735/0.3302, allocations: 2.339 MB / 463.5 MB, free: 3.371 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.3304, allocations: 137.1 kB / 463.7 MB, free: 3.203 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008375/0.3312, allocations: 0.6879 MB / 464.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.75e-05/0.3313, allocations: 49.7 kB / 464.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003179/0.3316, allocations: 483 kB / 464.9 MB, free: 1.969 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000158/0.3318, allocations: 220.8 kB / 465.1 MB, free: 1.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000206/0.332, allocations: 150.5 kB / 465.3 MB, free: 1.598 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.3321, allocations: 394.7 kB / 465.6 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004593/0.3326, allocations: 276.7 kB / 465.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006505/0.3333, allocations: 0.5121 MB / 466.4 MB, free: 320 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00345/0.3367, allocations: 1.517 MB / 467.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/0.3368, allocations: 4 kB / 467.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002947/0.3397, allocations: 1.375 MB / 469.3 MB, free: 13.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.3397, allocations: 8 kB / 469.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.3398, allocations: 8 kB / 469.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/0.3412, allocations: 434.8 kB / 469.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005364/0.3418, allocations: 147.7 kB / 469.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00994/0.3518, allocations: 6.708 MB / 476.6 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007958/0.3526, allocations: 39.88 kB / 476.6 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.056e-05/0.3527, allocations: 32 kB / 476.7 MB, free: 5.605 MB / 350.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.0009216/0.3536, allocations: 0.5135 MB / 477.2 MB, free: 5.086 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006341/0.3542, allocations: 0.5002 MB / 477.7 MB, free: 4.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003215/0.3575, allocations: 1.482 MB / 479.2 MB, free: 2.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.494e-06/0.3575, allocations: 4 kB / 479.2 MB, free: 2.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization_lambda0): time 0.00269/0.3602, allocations: 1.301 MB / 480.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.3602, allocations: 8 kB / 480.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.3602, allocations: 8 kB / 480.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/0.3617, allocations: 425.5 kB / 480.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005784/0.3622, allocations: 147.8 kB / 481.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008933/0.3712, allocations: 6.468 MB / 487.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008878/0.3721, allocations: 35.98 kB / 487.6 MB, free: 10.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-05/0.3722, allocations: 31.98 kB / 487.6 MB, free: 10.14 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_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.0004028/0.3726, allocations: 236 kB / 487.8 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001684/0.3728, allocations: 82.97 kB / 487.9 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00137/0.3742, allocations: 0.7226 MB / 488.6 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.595e-06/0.3742, allocations: 8 kB / 488.6 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3742, allocations: 0 / 488.6 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.3742, allocations: 11.98 kB / 488.6 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0029/0.3771, allocations: 1.765 MB / 490.4 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.3771, allocations: 0 / 490.4 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006918/0.3778, allocations: 139.9 kB / 490.5 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001164/0.378, allocations: 24.84 kB / 490.6 MB, free: 7.059 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.004e-05/0.378, allocations: 20 kB / 490.6 MB, free: 7.039 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001037/0.3791, allocations: 1.386 MB / 492 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.3791, allocations: 0 / 492 MB, free: 5.512 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.3808, allocations: 1.203 MB / 493.2 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003945/0.3812, allocations: 220 kB / 493.4 MB, free: 4.047 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.531e-05/0.3813, allocations: 16 kB / 493.4 MB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004195/0.3817, allocations: 23.98 kB / 493.4 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.3819, allocations: 48.38 kB / 493.5 MB, free: 3.961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.082e-05/0.3819, allocations: 20 kB / 493.5 MB, free: 3.941 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000656/0.3826, allocations: 479 kB / 494 MB, free: 3.477 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3826, allocations: 0 / 494 MB, free: 3.477 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001669/0.3843, allocations: 408 kB / 494.4 MB, free: 3.078 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.000434/0.3847, allocations: 150.7 kB / 494.5 MB, free: 2.922 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003811/0.3885, allocations: 1.975 MB / 496.5 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.3885, allocations: 0 / 496.5 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007002/0.3892, allocations: 443.2 kB / 496.9 MB, free: 460 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001292/0.3906, allocations: 238.2 kB / 497.1 MB, free: 228 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003711/0.3943, allocations: 2.076 MB / 499.2 MB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009337/0.3952, allocations: 1.12 MB / 0.4886 GB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007124/0.396, allocations: 214.5 kB / 0.4888 GB, free: 12.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/0.3961, allocations: 59.42 kB / 0.4889 GB, free: 12.68 MB / 382.1 MB Notification: Performance of SimCode: time 1.492e-06/0.3962, allocations: 0 / 0.4889 GB, free: 12.68 MB / 382.1 MB Notification: Performance of Templates: time 0.03027/0.4264, allocations: 17.19 MB / 0.5057 GB, free: 11.51 MB / 398.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 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)