Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009247/0.0009248, allocations: 178.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.153/1.153, allocations: 194.5 MB / 211.6 MB, free: 3.055 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001562/0.001562, allocations: 110.9 kB / 256.9 MB, free: 4.332 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1584/0.1584, allocations: 37.99 MB / 340.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003089/0.0003089, allocations: 15.98 kB / 403.8 MB, free: 68.8 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07858/0.07891, allocations: 53.22 MB / 457 MB, free: 15.56 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3023/0.3812, allocations: 96.48 MB / 0.5405 GB, free: 14.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001752/0.383, allocations: 0.8617 MB / 0.5413 GB, free: 14.37 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03765/0.4207, allocations: 14.53 MB / 0.5555 GB, free: 2.023 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.4208, allocations: 0 / 0.5555 GB, free: 2.023 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.509e-05/0.4208, allocations: 11.98 kB / 0.5556 GB, free: 2.012 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001358/0.4222, allocations: 0.8105 MB / 0.5563 GB, free: 1.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.4222, allocations: 12.02 kB / 0.5564 GB, free: 1.168 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.4223, allocations: 55.34 kB / 0.5564 GB, free: 1.113 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.4238, allocations: 0.7087 MB / 0.5571 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.088e-05/0.4238, allocations: 30.19 kB / 0.5571 GB, free: 488 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.696e-05/0.4239, allocations: 41.69 kB / 0.5572 GB, free: 460 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006234/0.4245, allocations: 456.4 kB / 0.5576 GB, free: 76 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.4246, allocations: 3.938 kB / 0.5576 GB, free: 72 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.01e-05/0.4246, allocations: 26.36 kB / 0.5576 GB, free: 56 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.043e-05/0.4246, allocations: 8 kB / 0.5576 GB, free: 48 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004187/0.4251, allocations: 266.4 kB / 0.5579 GB, free: 15.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002109/0.4272, allocations: 1.865 MB / 0.5597 GB, free: 14.17 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005255/0.4277, allocations: 256.5 kB / 0.56 GB, free: 13.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.4278, allocations: 4.188 kB / 0.56 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003056/0.4281, allocations: 175.5 kB / 0.5601 GB, free: 13.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.844e-06/0.4281, allocations: 0 / 0.5601 GB, free: 13.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.001909/0.43, allocations: 1.155 MB / 0.5613 GB, free: 12.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.74e-05/0.4301, allocations: 132.5 kB / 0.5614 GB, free: 12.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003614/0.4304, allocations: 339.6 kB / 0.5617 GB, free: 12.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.294e-05/0.4305, allocations: 36.02 kB / 0.5617 GB, free: 12.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.4306, allocations: 255.3 kB / 0.562 GB, free: 12.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.15e-05/0.4307, allocations: 99.77 kB / 0.5621 GB, free: 12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.77e-05/0.4307, allocations: 15.62 kB / 0.5621 GB, free: 11.99 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.4309, allocations: 356.4 kB / 0.5624 GB, free: 11.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001447/0.431, allocations: 85.64 kB / 0.5625 GB, free: 11.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002136/0.4313, allocations: 220.7 kB / 0.5627 GB, free: 11.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002003/0.4315, allocations: 146.3 kB / 0.5629 GB, free: 11.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4315, allocations: 7.938 kB / 0.5629 GB, free: 11.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008174/0.4323, allocations: 458.5 kB / 0.5633 GB, free: 10.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/0.4323, allocations: 29.7 kB / 0.5633 GB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.4324, allocations: 8.516 kB / 0.5634 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000419/0.4328, allocations: 98.03 kB / 0.5634 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002333/0.433, allocations: 67.41 kB / 0.5635 GB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002048/0.4351, allocations: 1.832 MB / 0.5653 GB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002668/0.4354, allocations: 29.53 kB / 0.5653 GB, free: 8.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.96e-05/0.4354, allocations: 23 kB / 0.5653 GB, free: 8.898 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 1 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002316/0.4356, allocations: 198.2 kB / 0.5655 GB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.07e-05/0.4357, allocations: 39.53 kB / 0.5656 GB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005711/0.4363, allocations: 303.4 kB / 0.5659 GB, free: 8.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.4363, allocations: 4 kB / 0.5659 GB, free: 8.477 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.4363, allocations: 0 / 0.5659 GB, free: 8.477 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.4363, allocations: 4 kB / 0.5659 GB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.4373, allocations: 0.7753 MB / 0.5666 GB, free: 7.809 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.4374, allocations: 0 / 0.5666 GB, free: 7.809 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.4376, allocations: 55.34 kB / 0.5667 GB, free: 7.758 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002044/0.4378, allocations: 43.81 kB / 0.5667 GB, free: 7.719 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.4379, allocations: 7.562 kB / 0.5667 GB, free: 7.715 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/0.439, allocations: 1.45 MB / 0.5681 GB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4391, allocations: 0 / 0.5681 GB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007004/0.4398, allocations: 0.5205 MB / 0.5687 GB, free: 5.793 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001667/0.4399, allocations: 138.8 kB / 0.5688 GB, free: 5.648 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.556e-05/0.44, allocations: 3.875 kB / 0.5688 GB, free: 5.648 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.4402, allocations: 18.19 kB / 0.5688 GB, free: 5.637 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.599e-05/0.4403, allocations: 27.89 kB / 0.5688 GB, free: 5.609 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.4403, allocations: 11.44 kB / 0.5688 GB, free: 5.602 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002687/0.4406, allocations: 271.7 kB / 0.5691 GB, free: 5.391 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4406, allocations: 3.938 kB / 0.5691 GB, free: 5.387 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005258/0.4411, allocations: 121.5 kB / 0.5692 GB, free: 5.281 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.motor.phi_el,dcm_ser.motor.w_el,dcm_ser.motor.i,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 (25): * Single equations (assignments): 23 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000814/0.442, allocations: 368 kB / 0.5696 GB, free: 4.949 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009758/0.4429, allocations: 470.4 kB / 0.57 GB, free: 4.539 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.443, allocations: 1.062 kB / 0.57 GB, free: 4.539 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003989/0.4434, allocations: 249.9 kB / 0.5703 GB, free: 4.316 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006044/0.444, allocations: 111.9 kB / 0.5704 GB, free: 4.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001915/0.4459, allocations: 1.347 MB / 0.5717 GB, free: 2.926 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004358/0.4464, allocations: 0.8598 MB / 0.5725 GB, free: 2.051 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002427/0.4466, allocations: 67.25 kB / 0.5726 GB, free: 1.984 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.307e-05/0.4467, allocations: 35.42 kB / 0.5726 GB, free: 1.949 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.4467, allocations: 0 / 0.5726 GB, free: 1.949 MB / 378.7 MB Notification: Performance of Templates: time 0.01075/0.4575, allocations: 5.851 MB / 0.5783 GB, free: 12.1 MB / 394.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)