Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000916/0.000916, allocations: 178.2 kB / 16.07 MB, free: 5.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.204/1.204, allocations: 205.4 MB / 222.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000723/0.000723, allocations: 89.95 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1609/0.1609, allocations: 38.07 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00039/0.00039, allocations: 16 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.241, allocations: 56.32 MB / 479.6 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.007071/0.2481, allocations: 7.359 MB / 487 MB, free: 4.27 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005019/0.2532, allocations: 3.193 MB / 490.2 MB, free: 1.988 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.2543, allocations: 56.69 kB / 490.2 MB, free: 1.965 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008444/0.2552, allocations: 251.5 kB / 490.5 MB, free: 1.84 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001874/0.257, allocations: 0.6187 MB / 491.1 MB, free: 1.516 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00118/0.2582, allocations: 383.5 kB / 491.5 MB, free: 1.328 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002188/0.2604, allocations: 1.582 MB / 493.1 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001517/0.262, allocations: 1.09 MB / 494.1 MB, free: 92 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008012/0.2628, allocations: 461.5 kB / 494.6 MB, free: 15.9 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001074/0.2639, allocations: 0.575 MB / 495.2 MB, free: 15.69 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001286/0.264, allocations: 44.44 kB / 495.2 MB, free: 15.69 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007021/0.2647, allocations: 273.8 kB / 495.5 MB, free: 15.63 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004025/0.2651, allocations: 332.2 kB / 495.8 MB, free: 15.52 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005566/0.2657, allocations: 0.4888 MB / 496.3 MB, free: 15.21 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00189/0.2676, allocations: 1.286 MB / 497.6 MB, free: 14.94 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.2676, allocations: 1.781 kB / 497.6 MB, free: 14.94 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2676, allocations: 0 / 497.6 MB, free: 14.94 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.542e-05/0.2677, allocations: 0 / 497.6 MB, free: 14.94 MB / 330.7 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.002738/0.2704, allocations: 1.228 MB / 498.8 MB, free: 14.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.2705, allocations: 8.969 kB / 498.8 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006653/0.2711, allocations: 164.5 kB / 499 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001356/0.2725, allocations: 0.8029 MB / 499.8 MB, free: 13.31 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.246e-05/0.2726, allocations: 63.91 kB / 499.8 MB, free: 13.28 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001799/0.2727, allocations: 99.17 kB / 499.9 MB, free: 13.24 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001901/0.2747, allocations: 1.151 MB / 0.4894 GB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/0.2747, allocations: 6.594 kB / 0.4894 GB, free: 12.49 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.651e-05/0.2748, allocations: 32.16 kB / 0.4894 GB, free: 12.47 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001029/0.2749, allocations: 64.97 kB / 0.4894 GB, free: 12.45 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001678/0.2766, allocations: 0.951 MB / 0.4904 GB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006265/0.2829, allocations: 4.652 MB / 0.4949 GB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.2841, allocations: 0.6899 MB / 0.4956 GB, free: 7.703 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006218/0.2847, allocations: 349.5 kB / 0.4959 GB, free: 7.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.317e-05/0.2848, allocations: 14.48 kB / 0.4959 GB, free: 7.512 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/0.2848, allocations: 43.56 kB / 0.496 GB, free: 7.465 MB / 330.7 MB Notification: Performance of pre-optimization done (n=58): time 3.076e-06/0.2848, allocations: 0 / 0.496 GB, free: 7.465 MB / 330.7 MB Notification: Performance of matching and sorting (n=62): time 0.005006/0.2898, allocations: 2.375 MB / 0.4983 GB, free: 5.965 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.567e-05/0.2899, allocations: 139.8 kB / 0.4984 GB, free: 5.805 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008641/0.2908, allocations: 0.6785 MB / 0.4991 GB, free: 5.402 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.025e-05/0.2909, allocations: 36.45 kB / 0.4991 GB, free: 5.363 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003298/0.2912, allocations: 496.5 kB / 0.4996 GB, free: 4.926 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.2914, allocations: 216.3 kB / 0.4998 GB, free: 4.738 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.176e-05/0.2914, allocations: 20.12 kB / 0.4998 GB, free: 4.723 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.2916, allocations: 385.8 kB / 0.5002 GB, free: 4.355 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005186/0.2921, allocations: 275.8 kB / 0.5005 GB, free: 4.219 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006921/0.2928, allocations: 0.5181 MB / 0.501 GB, free: 3.754 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003533/0.2964, allocations: 1.542 MB / 0.5025 GB, free: 2.648 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.2964, allocations: 4 kB / 0.5025 GB, free: 2.645 MB / 330.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002936/0.2994, allocations: 1.404 MB / 0.5039 GB, free: 1.211 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002013/0.2996, allocations: 311.7 kB / 0.5041 GB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.2996, allocations: 16 kB / 0.5042 GB, free: 0.7852 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001568/0.3012, allocations: 473.2 kB / 0.5046 GB, free: 324 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005362/0.3017, allocations: 151.7 kB / 0.5048 GB, free: 172 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008708/0.3104, allocations: 6.218 MB / 0.5108 GB, free: 9.672 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007491/0.3112, allocations: 35.98 kB / 0.5109 GB, free: 9.637 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.361e-05/0.3113, allocations: 43.98 kB / 0.5109 GB, free: 9.594 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.917e-06/0.3113, allocations: 4 kB / 0.5109 GB, free: 9.59 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002536/0.3139, allocations: 1.198 MB / 0.5121 GB, free: 8.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.3139, allocations: 8 kB / 0.5121 GB, free: 8.359 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001382/0.3153, allocations: 421.6 kB / 0.5125 GB, free: 7.941 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005361/0.3158, allocations: 151.7 kB / 0.5126 GB, free: 7.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007642/0.3235, allocations: 5.912 MB / 0.5184 GB, free: 1.605 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007531/0.3243, allocations: 55.86 kB / 0.5185 GB, free: 1.551 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.788e-05/0.3243, allocations: 28 kB / 0.5185 GB, free: 1.523 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {4 23} Notification: Performance of prepare postOptimizeDAE: time 0.0007131/0.3251, allocations: 400.8 kB / 0.5189 GB, free: 1.121 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.3252, allocations: 82.97 kB / 0.519 GB, free: 1.039 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001315/0.3265, allocations: 0.7381 MB / 0.5197 GB, free: 292 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.3266, allocations: 11.98 kB / 0.5197 GB, free: 280 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3266, allocations: 4 kB / 0.5197 GB, free: 276 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.3266, allocations: 0 / 0.5197 GB, free: 276 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002946/0.3295, allocations: 1.782 MB / 0.5214 GB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.3296, allocations: 4 kB / 0.5214 GB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006982/0.3303, allocations: 139.8 kB / 0.5216 GB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-05/0.3304, allocations: 20.86 kB / 0.5216 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.774e-05/0.3304, allocations: 24.05 kB / 0.5216 GB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008782/0.3313, allocations: 1.284 MB / 0.5229 GB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.3313, allocations: 4.031 kB / 0.5229 GB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001745/0.3331, allocations: 1.217 MB / 0.5241 GB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003581/0.3335, allocations: 208.2 kB / 0.5243 GB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.3336, allocations: 20 kB / 0.5243 GB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004144/0.334, allocations: 31.97 kB / 0.5243 GB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.624e-05/0.3341, allocations: 40.45 kB / 0.5243 GB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.244e-05/0.3341, allocations: 20.11 kB / 0.5244 GB, free: 11.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006082/0.3348, allocations: 475 kB / 0.5248 GB, free: 10.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3348, allocations: 0 / 0.5248 GB, free: 10.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001529/0.3363, allocations: 408 kB / 0.5252 GB, free: 10.37 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002785/0.3366, allocations: 146.9 kB / 0.5253 GB, free: 10.22 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00337/0.34, allocations: 1.987 MB / 0.5273 GB, free: 8.184 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.34, allocations: 1.375 kB / 0.5273 GB, free: 8.184 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006576/0.3407, allocations: 453.9 kB / 0.5277 GB, free: 7.727 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.3419, allocations: 227 kB / 0.5279 GB, free: 7.504 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003511/0.3454, allocations: 2.612 MB / 0.5305 GB, free: 4.848 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007401/0.3462, allocations: 1.116 MB / 0.5316 GB, free: 3.703 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000225/0.3464, allocations: 63.42 kB / 0.5316 GB, free: 3.641 MB / 362.7 MB Notification: Performance of SimCode: time 1.884e-06/0.3464, allocations: 0 / 0.5316 GB, free: 3.641 MB / 362.7 MB Notification: Performance of Templates: time 0.02327/0.3697, allocations: 18.94 MB / 0.5501 GB, free: 0.6836 MB / 378.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)