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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001186/0.001186, allocations: 187.9 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.269/1.269, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001623/0.001623, allocations: 114.3 kB / 248.1 MB, free: 6.355 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1626/0.1626, allocations: 37.92 MB / 330.9 MB, free: 7.324 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.256e-05/1.25e-05, allocations: 0 / 390.4 MB, free: 78.23 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08291/0.08294, allocations: 53.24 MB / 443.6 MB, free: 25.11 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3165/0.3995, allocations: 94.33 MB / 0.5253 GB, free: 9.691 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/0.3997, allocations: 96 kB / 0.5254 GB, free: 9.676 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0294/0.4292, allocations: 12.83 MB / 0.5379 GB, free: 2.617 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4292, allocations: 0 / 0.5379 GB, free: 2.617 MB / 347.1 MB Notification: Performance of Transformations before backend: time 2.532e-05/0.4292, allocations: 15.94 kB / 0.5379 GB, free: 2.602 MB / 347.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.0008374/0.4301, allocations: 0.6767 MB / 0.5386 GB, free: 1.906 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.4301, allocations: 8.031 kB / 0.5386 GB, free: 1.898 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.754e-05/0.4302, allocations: 59.34 kB / 0.5387 GB, free: 1.84 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.4313, allocations: 0.6551 MB / 0.5393 GB, free: 1.273 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.3e-05/0.4314, allocations: 51 kB / 0.5394 GB, free: 1.219 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.461e-05/0.4315, allocations: 31.84 kB / 0.5394 GB, free: 1.188 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004094/0.4319, allocations: 278 kB / 0.5397 GB, free: 1.016 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005308/0.4324, allocations: 437.3 kB / 0.5401 GB, free: 0.6406 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.4325, allocations: 7.891 kB / 0.5401 GB, free: 0.6328 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.51e-05/0.4325, allocations: 4 kB / 0.5401 GB, free: 0.6289 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.4325, allocations: 8 kB / 0.5401 GB, free: 0.6211 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001977/0.4345, allocations: 1.905 MB / 0.542 GB, free: 14.9 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002564/0.4348, allocations: 188.3 kB / 0.5421 GB, free: 14.74 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.4349, allocations: 87.94 kB / 0.5422 GB, free: 14.67 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.4349, allocations: 4.75 kB / 0.5422 GB, free: 14.67 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/0.435, allocations: 30.56 kB / 0.5423 GB, free: 14.63 MB / 363.1 MB Notification: Performance of pre-optimization done (n=20): time 1.693e-06/0.435, allocations: 4 kB / 0.5423 GB, free: 14.62 MB / 363.1 MB Notification: Performance of matching and sorting (n=23): time 0.001289/0.4363, allocations: 0.8942 MB / 0.5431 GB, free: 13.74 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.4363, allocations: 107 kB / 0.5432 GB, free: 13.61 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002299/0.4366, allocations: 252.4 kB / 0.5435 GB, free: 13.4 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.4366, allocations: 25.7 kB / 0.5435 GB, free: 13.37 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.4368, allocations: 276.4 kB / 0.5438 GB, free: 13.14 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.417e-05/0.4368, allocations: 82.5 kB / 0.5438 GB, free: 13.07 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.217e-05/0.4368, allocations: 0 / 0.5438 GB, free: 13.07 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.437, allocations: 349.7 kB / 0.5442 GB, free: 12.73 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.93e-05/0.4371, allocations: 62.62 kB / 0.5442 GB, free: 12.7 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.4372, allocations: 195.8 kB / 0.5444 GB, free: 12.48 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005697/0.4378, allocations: 282.1 kB / 0.5447 GB, free: 12.23 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.4378, allocations: 4 kB / 0.5447 GB, free: 12.23 MB / 363.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006036/0.4384, allocations: 347.4 kB / 0.545 GB, free: 11.94 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.4385, allocations: 12.09 kB / 0.545 GB, free: 11.93 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.4385, allocations: 11.88 kB / 0.545 GB, free: 11.92 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000286/0.4388, allocations: 79.86 kB / 0.5451 GB, free: 11.86 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002567/0.439, allocations: 67.91 kB / 0.5452 GB, free: 11.79 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001729/0.4408, allocations: 1.72 MB / 0.5469 GB, free: 10.15 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001993/0.441, allocations: 15.94 kB / 0.5469 GB, free: 10.13 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.524e-05/0.441, allocations: 21.12 kB / 0.5469 GB, free: 10.12 MB / 363.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.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 () * 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 (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: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001081/0.4412, allocations: 112.9 kB / 0.547 GB, free: 10 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.688e-05/0.4412, allocations: 31.62 kB / 0.547 GB, free: 9.969 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.746e-05/0.4413, allocations: 35.33 kB / 0.5471 GB, free: 9.949 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.4413, allocations: 4 kB / 0.5471 GB, free: 9.945 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.4413, allocations: 4.062 kB / 0.5471 GB, free: 9.941 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.4413, allocations: 3.984 kB / 0.5471 GB, free: 9.938 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008939/0.4422, allocations: 0.6883 MB / 0.5478 GB, free: 9.328 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.4422, allocations: 192 / 0.5478 GB, free: 9.328 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.4425, allocations: 51.97 kB / 0.5478 GB, free: 9.277 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-05/0.4426, allocations: 28.28 kB / 0.5478 GB, free: 9.25 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.4426, allocations: 4.062 kB / 0.5478 GB, free: 9.246 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007639/0.4434, allocations: 1.234 MB / 0.549 GB, free: 7.945 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4434, allocations: 0 / 0.549 GB, free: 7.945 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004799/0.4439, allocations: 488 kB / 0.5495 GB, free: 7.508 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.444, allocations: 126 kB / 0.5496 GB, free: 7.375 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.667e-05/0.4441, allocations: 4 kB / 0.5496 GB, free: 7.371 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.4443, allocations: 4 kB / 0.5496 GB, free: 7.367 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.94e-05/0.4444, allocations: 23.05 kB / 0.5497 GB, free: 7.348 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.4444, allocations: 4 kB / 0.5497 GB, free: 7.344 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0001687/0.4446, allocations: 195.2 kB / 0.5498 GB, free: 7.191 MB / 363.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4446, allocations: 0 / 0.5498 GB, free: 7.191 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0004747/0.445, allocations: 76 kB / 0.5499 GB, free: 7.117 MB / 363.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcm_pm.motor.phi_el,dcm_pm.motor.w_el,dcm_pm.motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete 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 (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.000167/0.4452, allocations: 126.4 kB / 0.55 GB, free: 6.984 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.0005267/0.4458, allocations: 331.9 kB / 0.5504 GB, free: 6.715 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4458, allocations: 0 / 0.5504 GB, free: 6.715 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002481/0.446, allocations: 197.5 kB / 0.5505 GB, free: 6.539 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004752/0.4465, allocations: 69.42 kB / 0.5506 GB, free: 6.488 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.4476, allocations: 0.6626 MB / 0.5513 GB, free: 5.848 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000449/0.4481, allocations: 0.8571 MB / 0.5521 GB, free: 4.969 MB / 363.1 MB Notification: Performance of simCode: alias equations: time 0.000195/0.4483, allocations: 47.25 kB / 0.5521 GB, free: 4.926 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.665e-05/0.4484, allocations: 27.44 kB / 0.5522 GB, free: 4.898 MB / 363.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4484, allocations: 0 / 0.5522 GB, free: 4.898 MB / 363.1 MB Notification: Performance of Templates: time 0.007759/0.4561, allocations: 3.68 MB / 0.5558 GB, free: 1.266 MB / 363.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)