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.001047/0.001047, allocations: 180.2 kB / 17.4 MB, free: 4.273 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.437/1.437, allocations: 194.5 MB / 212.6 MB, free: 2.855 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.001595/0.001595, allocations: 118.9 kB / 257.9 MB, free: 4.242 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2732/0.2732, allocations: 38.01 MB / 341.1 MB, free: 1.168 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003684, allocations: 12 kB / 405 MB, free: 68.48 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1039, allocations: 53.23 MB / 458.3 MB, free: 15.24 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3656/0.4696, allocations: 96.51 MB / 0.5418 GB, free: 14.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001913/0.4715, allocations: 0.8827 MB / 0.5426 GB, free: 13.89 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03871/0.5103, allocations: 14.55 MB / 0.5568 GB, free: 1.527 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5103, allocations: 0 / 0.5568 GB, free: 1.527 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.003e-05/0.5104, allocations: 12 kB / 0.5568 GB, free: 1.516 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.001823/0.5122, allocations: 0.7998 MB / 0.5576 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.5123, allocations: 12.03 kB / 0.5576 GB, free: 0.6797 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002092/0.5125, allocations: 56.28 kB / 0.5577 GB, free: 0.625 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.5137, allocations: 0.5439 MB / 0.5582 GB, free: 132 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.187e-05/0.5138, allocations: 26.19 kB / 0.5582 GB, free: 120 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.211e-05/0.5139, allocations: 40.19 kB / 0.5583 GB, free: 92 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008065/0.5147, allocations: 460.4 kB / 0.5587 GB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.367e-05/0.5147, allocations: 7.938 kB / 0.5587 GB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.204e-05/0.5148, allocations: 17.55 kB / 0.5587 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/0.5148, allocations: 12 kB / 0.5588 GB, free: 15.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005011/0.5153, allocations: 269.2 kB / 0.559 GB, free: 15.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002609/0.5179, allocations: 1.868 MB / 0.5608 GB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005005/0.5184, allocations: 246.8 kB / 0.5611 GB, free: 13.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.5186, allocations: 88.55 kB / 0.5612 GB, free: 13.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.5186, allocations: 11.33 kB / 0.5612 GB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002652/0.5189, allocations: 164.5 kB / 0.5613 GB, free: 13.37 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.064e-06/0.5189, allocations: 0 / 0.5613 GB, free: 13.37 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.002136/0.5211, allocations: 1.142 MB / 0.5624 GB, free: 12.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.617e-05/0.5212, allocations: 139 kB / 0.5626 GB, free: 12.17 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000508/0.5217, allocations: 392.8 kB / 0.563 GB, free: 11.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.5217, allocations: 40.95 kB / 0.563 GB, free: 11.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001774/0.5219, allocations: 260.9 kB / 0.5632 GB, free: 11.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.567e-05/0.522, allocations: 91.45 kB / 0.5633 GB, free: 11.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.632e-05/0.522, allocations: 10.06 kB / 0.5633 GB, free: 11.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.5222, allocations: 352.7 kB / 0.5637 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.5224, allocations: 85.95 kB / 0.5638 GB, free: 11.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002703/0.5227, allocations: 216.5 kB / 0.564 GB, free: 10.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005008/0.5232, allocations: 347.7 kB / 0.5643 GB, free: 10.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.5232, allocations: 0 / 0.5643 GB, free: 10.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009601/0.5241, allocations: 470 kB / 0.5647 GB, free: 10.22 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.359e-05/0.5242, allocations: 41.69 kB / 0.5648 GB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.5242, allocations: 4 kB / 0.5648 GB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004288/0.5247, allocations: 87.59 kB / 0.5649 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002501/0.5249, allocations: 75.47 kB / 0.5649 GB, free: 10.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002428/0.5274, allocations: 1.817 MB / 0.5667 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/0.5277, allocations: 18.5 kB / 0.5667 GB, free: 8.266 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.779e-05/0.5278, allocations: 19.56 kB / 0.5667 GB, free: 8.25 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.0003213/0.5281, allocations: 199.9 kB / 0.5669 GB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.262e-05/0.5282, allocations: 43.47 kB / 0.567 GB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006504/0.5288, allocations: 297.7 kB / 0.5673 GB, free: 7.828 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.5289, allocations: 7.984 kB / 0.5673 GB, free: 7.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.5289, allocations: 0 / 0.5673 GB, free: 7.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.5289, allocations: 4 kB / 0.5673 GB, free: 7.816 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001298/0.5302, allocations: 0.7782 MB / 0.568 GB, free: 7.152 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.5302, allocations: 0 / 0.568 GB, free: 7.152 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002558/0.5305, allocations: 51.36 kB / 0.5681 GB, free: 7.105 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002022/0.5307, allocations: 51.36 kB / 0.5681 GB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.5307, allocations: 7.812 kB / 0.5681 GB, free: 7.055 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001354/0.5321, allocations: 1.436 MB / 0.5695 GB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.5321, allocations: 4 kB / 0.5695 GB, free: 5.582 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007668/0.5329, allocations: 0.5044 MB / 0.57 GB, free: 5.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001758/0.5331, allocations: 133.5 kB / 0.5702 GB, free: 5.023 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.588e-05/0.5331, allocations: 7.875 kB / 0.5702 GB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.5334, allocations: 19.23 kB / 0.5702 GB, free: 5.004 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.633e-05/0.5335, allocations: 27.66 kB / 0.5702 GB, free: 4.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.5335, allocations: 8 kB / 0.5702 GB, free: 4.973 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003537/0.5339, allocations: 271.8 kB / 0.5705 GB, free: 4.762 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5339, allocations: 0 / 0.5705 GB, free: 4.762 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005989/0.5345, allocations: 123.4 kB / 0.5706 GB, free: 4.656 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.0009103/0.5354, allocations: 358.5 kB / 0.5709 GB, free: 4.332 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009301/0.5363, allocations: 463.3 kB / 0.5714 GB, free: 3.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5364, allocations: 0 / 0.5714 GB, free: 3.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004203/0.5368, allocations: 253.4 kB / 0.5716 GB, free: 3.703 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000685/0.5375, allocations: 107.7 kB / 0.5717 GB, free: 3.621 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002231/0.5397, allocations: 1.357 MB / 0.5731 GB, free: 2.312 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005242/0.5403, allocations: 0.8505 MB / 0.5739 GB, free: 1.441 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002994/0.5406, allocations: 75.23 kB / 0.574 GB, free: 1.367 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.666e-05/0.5407, allocations: 35.42 kB / 0.574 GB, free: 1.332 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5407, allocations: 0 / 0.574 GB, free: 1.332 MB / 378.7 MB Notification: Performance of Templates: time 0.01315/0.5538, allocations: 5.919 MB / 0.5798 GB, free: 11.41 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)