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.0009965/0.0009964, allocations: 180.1 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.215/1.215, allocations: 194.4 MB / 211.6 MB, free: 3.047 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.001671/0.001671, allocations: 113.4 kB / 256.9 MB, free: 4.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1619/0.1619, allocations: 37.99 MB / 340.1 MB, free: 1.355 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004396/0.0004396, allocations: 12 kB / 403.8 MB, free: 68.79 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08665/0.0871, allocations: 53.23 MB / 457 MB, free: 15.55 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3125/0.3996, allocations: 95.08 MB / 0.5392 GB, free: 148 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002253/0.3999, allocations: 99.5 kB / 0.5392 GB, free: 92 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03192/0.4318, allocations: 12.97 MB / 0.5519 GB, free: 5.051 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4319, allocations: 0 / 0.5519 GB, free: 5.051 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.609e-05/0.4319, allocations: 8 kB / 0.5519 GB, free: 5.043 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001116/0.433, allocations: 0.7314 MB / 0.5526 GB, free: 4.293 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.4331, allocations: 12.02 kB / 0.5526 GB, free: 4.281 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.615e-05/0.4332, allocations: 55.34 kB / 0.5527 GB, free: 4.227 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001297/0.4345, allocations: 0.6664 MB / 0.5534 GB, free: 3.633 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.82e-05/0.4346, allocations: 68.94 kB / 0.5534 GB, free: 3.574 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.88e-05/0.4347, allocations: 46.41 kB / 0.5535 GB, free: 3.543 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007317/0.4354, allocations: 0.5069 MB / 0.554 GB, free: 3.129 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.4354, allocations: 0 / 0.554 GB, free: 3.129 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.914e-05/0.4355, allocations: 21.14 kB / 0.554 GB, free: 3.121 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.4355, allocations: 16 kB / 0.554 GB, free: 3.105 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005706/0.4361, allocations: 344.7 kB / 0.5543 GB, free: 2.871 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00207/0.4381, allocations: 1.999 MB / 0.5563 GB, free: 1.059 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000405/0.4386, allocations: 225.6 kB / 0.5565 GB, free: 0.8633 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.61e-05/0.4386, allocations: 4.062 kB / 0.5565 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.4386, allocations: 42.19 kB / 0.5565 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.503e-06/0.4386, allocations: 0 / 0.5565 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.001806/0.4404, allocations: 1.084 MB / 0.5576 GB, free: 15.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.4405, allocations: 111 kB / 0.5577 GB, free: 15.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002607/0.4408, allocations: 295.5 kB / 0.558 GB, free: 15.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.4408, allocations: 31.64 kB / 0.558 GB, free: 15.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/0.4409, allocations: 268.4 kB / 0.5583 GB, free: 15.17 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.189e-05/0.441, allocations: 76.41 kB / 0.5583 GB, free: 15.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.348e-05/0.441, allocations: 10 kB / 0.5583 GB, free: 15.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.4411, allocations: 347.1 kB / 0.5587 GB, free: 14.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001903/0.4414, allocations: 90.2 kB / 0.5588 GB, free: 14.71 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002504/0.4416, allocations: 221 kB / 0.559 GB, free: 14.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007817/0.4424, allocations: 311.7 kB / 0.5593 GB, free: 14.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4424, allocations: 0 / 0.5593 GB, free: 14.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008521/0.4433, allocations: 434.5 kB / 0.5597 GB, free: 13.85 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.4433, allocations: 8.312 kB / 0.5597 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.4433, allocations: 7.938 kB / 0.5597 GB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003275/0.4437, allocations: 81.23 kB / 0.5598 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002559/0.4439, allocations: 74.53 kB / 0.5599 GB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001886/0.4458, allocations: 1.807 MB / 0.5616 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000211/0.446, allocations: 21.12 kB / 0.5616 GB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.214e-05/0.4461, allocations: 19.56 kB / 0.5617 GB, free: 11.93 MB / 378.7 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 () * 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 (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.0002137/0.4463, allocations: 186.9 kB / 0.5618 GB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.98e-05/0.4464, allocations: 35.62 kB / 0.5619 GB, free: 11.74 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.463e-05/0.4464, allocations: 40.42 kB / 0.5619 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.4465, allocations: 7.953 kB / 0.5619 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.4465, allocations: 3.938 kB / 0.5619 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.4465, allocations: 0 / 0.5619 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.4475, allocations: 0.7995 MB / 0.5627 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.4475, allocations: 256 / 0.5627 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002794/0.4478, allocations: 63.34 kB / 0.5628 GB, free: 10.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.091e-05/0.4479, allocations: 20.41 kB / 0.5628 GB, free: 10.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.4479, allocations: 7.5 kB / 0.5628 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007329/0.4487, allocations: 1.282 MB / 0.564 GB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4487, allocations: 0 / 0.564 GB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006946/0.4494, allocations: 0.5347 MB / 0.5646 GB, free: 9.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.4495, allocations: 115.4 kB / 0.5647 GB, free: 8.945 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.833e-05/0.4496, allocations: 18.89 kB / 0.5647 GB, free: 8.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.4498, allocations: 14.92 kB / 0.5647 GB, free: 8.918 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.416e-05/0.4498, allocations: 14.86 kB / 0.5647 GB, free: 8.906 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.4498, allocations: 4 kB / 0.5647 GB, free: 8.902 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001943/0.45, allocations: 230.8 kB / 0.5649 GB, free: 8.723 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4501, allocations: 0 / 0.5649 GB, free: 8.723 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004942/0.4506, allocations: 92.88 kB / 0.565 GB, free: 8.641 MB / 378.7 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 () * 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 (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.0001924/0.4508, allocations: 122.5 kB / 0.5651 GB, free: 8.512 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007088/0.4515, allocations: 396.2 kB / 0.5655 GB, free: 8.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.4515, allocations: 4.062 kB / 0.5655 GB, free: 8.176 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003131/0.4518, allocations: 232.1 kB / 0.5657 GB, free: 7.965 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004822/0.4523, allocations: 94.17 kB / 0.5658 GB, free: 7.895 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.4538, allocations: 1.17 MB / 0.567 GB, free: 6.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.4542, allocations: 0.8572 MB / 0.5678 GB, free: 5.883 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002073/0.4544, allocations: 55.19 kB / 0.5679 GB, free: 5.832 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.359e-05/0.4544, allocations: 35.42 kB / 0.5679 GB, free: 5.797 MB / 378.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4544, allocations: 0 / 0.5679 GB, free: 5.797 MB / 378.7 MB Notification: Performance of Templates: time 0.008134/0.4626, allocations: 4.411 MB / 0.5722 GB, free: 1.398 MB / 378.7 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)