Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 115.8 kB / 17.74 MB, free: 5.344 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.001191/0.001191, allocations: 189.5 kB / 18.67 MB, free: 4.422 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.331/1.331, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1874/0.1874, allocations: 38.02 MB / 330.5 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 63.88 kB / 458.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3523/0.3536, allocations: 58.06 MB / 0.5048 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006105/0.3597, allocations: 5.688 MB / 0.5103 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002851/0.3626, allocations: 2.118 MB / 0.5124 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003474/0.363, allocations: 24.47 kB / 0.5124 GB, free: 2.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005556/0.3636, allocations: 177.1 kB / 0.5126 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009549/0.3646, allocations: 416.8 kB / 0.513 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005932/0.3652, allocations: 246 kB / 0.5132 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009964/0.3662, allocations: 0.841 MB / 0.514 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000573/0.3667, allocations: 0.4981 MB / 0.5145 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005073/0.3673, allocations: 360.7 kB / 0.5149 GB, free: 1.043 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000426/0.3677, allocations: 337.2 kB / 0.5152 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.277e-05/0.3678, allocations: 53.19 kB / 0.5152 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002173/0.368, allocations: 110.8 kB / 0.5153 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001737/0.3682, allocations: 180.8 kB / 0.5155 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002509/0.3685, allocations: 312.5 kB / 0.5158 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008171/0.3693, allocations: 0.7374 MB / 0.5165 GB, free: 300 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3693, allocations: 1.469 kB / 0.5165 GB, free: 300 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3693, allocations: 0 / 0.5165 GB, free: 300 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.3693, allocations: 4 kB / 0.5165 GB, free: 296 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001604/0.3709, allocations: 0.8771 MB / 0.5174 GB, free: 15.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.371, allocations: 17.2 kB / 0.5174 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/0.3712, allocations: 63.16 kB / 0.5175 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009727/0.3721, allocations: 0.5282 MB / 0.518 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.3722, allocations: 30.03 kB / 0.518 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.3723, allocations: 46.12 kB / 0.518 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009541/0.3733, allocations: 0.517 MB / 0.5186 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.3733, allocations: 5.531 kB / 0.5186 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.26e-05/0.3733, allocations: 20.98 kB / 0.5186 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.398e-05/0.3734, allocations: 16.94 kB / 0.5186 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005903/0.374, allocations: 336.4 kB / 0.5189 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002602/0.3766, allocations: 2.054 MB / 0.5209 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000422/0.3771, allocations: 235.7 kB / 0.5211 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001373/0.3772, allocations: 83.67 kB / 0.5212 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.618e-05/0.3773, allocations: 2.25 kB / 0.5212 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.3775, allocations: 173.8 kB / 0.5214 GB, free: 12.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.933e-06/0.3775, allocations: 0 / 0.5214 GB, free: 12.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001727/0.3793, allocations: 0.9245 MB / 0.5223 GB, free: 12.3 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.026e-05/0.3794, allocations: 136.5 kB / 0.5224 GB, free: 12.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005231/0.3799, allocations: 426.5 kB / 0.5228 GB, free: 11.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.644e-05/0.3799, allocations: 32.23 kB / 0.5229 GB, free: 11.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/0.3801, allocations: 296 kB / 0.5231 GB, free: 11.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.653e-05/0.3802, allocations: 89.42 kB / 0.5232 GB, free: 11.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.3803, allocations: 78.45 kB / 0.5233 GB, free: 11.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.3805, allocations: 358.2 kB / 0.5236 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001699/0.3807, allocations: 84.58 kB / 0.5237 GB, free: 11.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002467/0.3809, allocations: 223.2 kB / 0.5239 GB, free: 10.97 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004221/0.3814, allocations: 324.7 kB / 0.5242 GB, free: 10.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3814, allocations: 1.375 kB / 0.5243 GB, free: 10.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008629/0.3822, allocations: 440.8 kB / 0.5247 GB, free: 10.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.3823, allocations: 7.594 kB / 0.5247 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.3823, allocations: 4.688 kB / 0.5247 GB, free: 10.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004189/0.3827, allocations: 93 kB / 0.5248 GB, free: 10.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002719/0.383, allocations: 72.8 kB / 0.5248 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/0.3852, allocations: 1.843 MB / 0.5266 GB, free: 8.863 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000296/0.3855, allocations: 17.48 kB / 0.5267 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.365e-05/0.3856, allocations: 18.59 kB / 0.5267 GB, free: 8.855 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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.0002698/0.3858, allocations: 201.8 kB / 0.5269 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.116e-05/0.3859, allocations: 48 kB / 0.5269 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000602/0.3865, allocations: 290.1 kB / 0.5272 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.3866, allocations: 3.25 kB / 0.5272 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3866, allocations: 1.062 kB / 0.5272 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.3866, allocations: 2.203 kB / 0.5272 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001315/0.3879, allocations: 0.769 MB / 0.5279 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.3879, allocations: 0.75 kB / 0.5279 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002756/0.3882, allocations: 53.16 kB / 0.528 GB, free: 8.023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002167/0.3884, allocations: 54.19 kB / 0.528 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.02e-05/0.3885, allocations: 7.969 kB / 0.5281 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001339/0.3898, allocations: 1.541 MB / 0.5296 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3898, allocations: 1.438 kB / 0.5296 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007786/0.3906, allocations: 478 kB / 0.53 GB, free: 6.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001678/0.3908, allocations: 138.5 kB / 0.5302 GB, free: 6.098 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.58e-05/0.3909, allocations: 10.94 kB / 0.5302 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002457/0.3911, allocations: 11.02 kB / 0.5302 GB, free: 6.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.57e-05/0.3912, allocations: 21.52 kB / 0.5302 GB, free: 6.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.3912, allocations: 13.88 kB / 0.5302 GB, free: 6.078 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003964/0.3916, allocations: 298.5 kB / 0.5305 GB, free: 5.938 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3916, allocations: 0 / 0.5305 GB, free: 5.938 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005704/0.3922, allocations: 112.1 kB / 0.5306 GB, free: 5.926 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009271/0.3932, allocations: 405 kB / 0.531 GB, free: 5.723 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008364/0.394, allocations: 403.3 kB / 0.5314 GB, free: 5.504 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.394, allocations: 1.125 kB / 0.5314 GB, free: 5.504 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003935/0.3944, allocations: 237.5 kB / 0.5316 GB, free: 5.355 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008108/0.3952, allocations: 131 kB / 0.5317 GB, free: 5.312 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002098/0.3974, allocations: 1.218 MB / 0.5329 GB, free: 4.543 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005172/0.3979, allocations: 0.8811 MB / 0.5338 GB, free: 3.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.398, allocations: 37.48 kB / 0.5338 GB, free: 3.812 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.398, allocations: 0 / 0.5338 GB, free: 3.812 MB / 398.1 MB Notification: Performance of Templates: time 0.01443/0.4125, allocations: 8.86 MB / 0.5425 GB, free: 15.66 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)