Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 107 kB / 17.06 MB, free: 6.102 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.001137/0.001138, allocations: 194.9 kB / 18 MB, free: 5.176 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.325/1.325, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1783/0.1783, allocations: 38.03 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 67.89 kB / 458.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3574, allocations: 58.05 MB / 0.5041 GB, free: 7.805 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006093/0.3635, allocations: 5.264 MB / 0.5092 GB, free: 4.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002147/0.3657, allocations: 1.565 MB / 0.5108 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002392/0.366, allocations: 20.22 kB / 0.5108 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003743/0.3664, allocations: 121.4 kB / 0.5109 GB, free: 2.969 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006945/0.3671, allocations: 320.6 kB / 0.5112 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000362/0.3675, allocations: 157.5 kB / 0.5113 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007329/0.3682, allocations: 0.693 MB / 0.512 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005635/0.3688, allocations: 458.3 kB / 0.5125 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004464/0.3692, allocations: 285 kB / 0.5127 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004626/0.3697, allocations: 290.2 kB / 0.513 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.403e-05/0.3698, allocations: 46 kB / 0.513 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.3699, allocations: 50.41 kB / 0.5131 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001943/0.3701, allocations: 156 kB / 0.5132 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000291/0.3704, allocations: 260.4 kB / 0.5135 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008403/0.3713, allocations: 0.5973 MB / 0.5141 GB, free: 1.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3713, allocations: 1.188 kB / 0.5141 GB, free: 1.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.3713, allocations: 0 / 0.5141 GB, free: 1.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.3713, allocations: 0 / 0.5141 GB, free: 1.43 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001548/0.3729, allocations: 0.7856 MB / 0.5148 GB, free: 0.832 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.3729, allocations: 13.11 kB / 0.5149 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.3731, allocations: 54.88 kB / 0.5149 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007311/0.3738, allocations: 456.8 kB / 0.5153 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.381e-05/0.3739, allocations: 67.5 kB / 0.5154 GB, free: 444 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.608e-05/0.374, allocations: 52.66 kB / 0.5155 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008194/0.3748, allocations: 0.4978 MB / 0.5159 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.3748, allocations: 5.953 kB / 0.516 GB, free: 144 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.875e-05/0.3749, allocations: 15.84 kB / 0.516 GB, free: 132 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.3749, allocations: 10.91 kB / 0.516 GB, free: 132 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006659/0.3756, allocations: 340.4 kB / 0.5163 GB, free: 12 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002957/0.3785, allocations: 1.975 MB / 0.5182 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005382/0.3791, allocations: 223.5 kB / 0.5184 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002995/0.3794, allocations: 97.14 kB / 0.5185 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.3794, allocations: 2.781 kB / 0.5185 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.448e-05/0.3795, allocations: 41.45 kB / 0.5186 GB, free: 14.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.853e-06/0.3795, allocations: 0 / 0.5186 GB, free: 14.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001891/0.3814, allocations: 0.8353 MB / 0.5194 GB, free: 13.68 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.3815, allocations: 106.3 kB / 0.5195 GB, free: 13.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003846/0.3819, allocations: 335.2 kB / 0.5198 GB, free: 13.37 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.3819, allocations: 27.27 kB / 0.5198 GB, free: 13.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.3821, allocations: 274.1 kB / 0.5201 GB, free: 13.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.962e-05/0.3821, allocations: 84.12 kB / 0.5202 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.3822, allocations: 63.47 kB / 0.5202 GB, free: 13.01 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.3824, allocations: 345.2 kB / 0.5206 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002233/0.3826, allocations: 80.73 kB / 0.5207 GB, free: 12.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003215/0.3829, allocations: 221.1 kB / 0.5209 GB, free: 12.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.3842, allocations: 0.5562 MB / 0.5214 GB, free: 12.06 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.3842, allocations: 1.031 kB / 0.5214 GB, free: 12.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008936/0.3851, allocations: 419.7 kB / 0.5218 GB, free: 11.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.3852, allocations: 7.281 kB / 0.5218 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.3852, allocations: 4.406 kB / 0.5218 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003394/0.3855, allocations: 79.36 kB / 0.5219 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.3858, allocations: 69.45 kB / 0.522 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00205/0.3879, allocations: 1.942 MB / 0.5239 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.3881, allocations: 14.14 kB / 0.5239 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.638e-05/0.3882, allocations: 18.05 kB / 0.5239 GB, free: 10.08 MB / 398.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.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * 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 initialization (35): * Single equations (assignments): 34 * Array equations: 0 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000242/0.3884, allocations: 199.5 kB / 0.5241 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.409e-05/0.3885, allocations: 31.44 kB / 0.5241 GB, free: 9.898 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.3e-05/0.3886, allocations: 41.94 kB / 0.5241 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.3886, allocations: 3.344 kB / 0.5242 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.3886, allocations: 1.094 kB / 0.5242 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.3886, allocations: 3.156 kB / 0.5242 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001291/0.3899, allocations: 0.7729 MB / 0.5249 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3899, allocations: 1.281 kB / 0.5249 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002493/0.3902, allocations: 43.5 kB / 0.525 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.807e-05/0.3903, allocations: 22.42 kB / 0.525 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.031e-05/0.3903, allocations: 7.922 kB / 0.525 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009814/0.3913, allocations: 1.39 MB / 0.5263 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3913, allocations: 1.375 kB / 0.5263 GB, free: 7.883 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000826/0.3921, allocations: 0.5008 MB / 0.5268 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.3922, allocations: 122.9 kB / 0.5269 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.464e-05/0.3923, allocations: 10.2 kB / 0.527 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.3925, allocations: 7.469 kB / 0.527 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.006e-05/0.3926, allocations: 22.06 kB / 0.527 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.3926, allocations: 8.781 kB / 0.527 GB, free: 7.398 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002287/0.3928, allocations: 228.6 kB / 0.5272 GB, free: 7.277 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3928, allocations: 1.375 kB / 0.5272 GB, free: 7.277 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005439/0.3934, allocations: 90.47 kB / 0.5273 GB, free: 7.266 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * Single equations (assignments): 19 * 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.0001172/0.3935, allocations: 106.9 kB / 0.5274 GB, free: 7.168 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007752/0.3943, allocations: 370.8 kB / 0.5278 GB, free: 6.965 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3943, allocations: 1.344 kB / 0.5278 GB, free: 6.965 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003654/0.3947, allocations: 212.1 kB / 0.528 GB, free: 6.824 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007174/0.3954, allocations: 105.1 kB / 0.5281 GB, free: 6.789 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0017/0.3971, allocations: 0.9219 MB / 0.529 GB, free: 6.207 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000505/0.3976, allocations: 0.8427 MB / 0.5298 GB, free: 5.492 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001928/0.3978, allocations: 56.58 kB / 0.5298 GB, free: 5.473 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.743e-05/0.3979, allocations: 31.42 kB / 0.5299 GB, free: 5.461 MB / 398.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3979, allocations: 0 / 0.5299 GB, free: 5.461 MB / 398.1 MB Notification: Performance of Templates: time 0.01013/0.4081, allocations: 4.583 MB / 0.5343 GB, free: 4.184 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)