Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001849/0.001849, allocations: 172.4 kB / 16.76 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.759/2.759, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001281/0.001281, allocations: 86.42 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.4011/0.4011, allocations: 38.07 MB / 357.6 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007007/0.000701, allocations: 11.98 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5569/0.5576, allocations: 56.32 MB / 480.3 MB, free: 9.219 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2453/0.803, allocations: 100.3 MB / 0.567 GB, free: 2.016 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004016/0.8034, allocations: 91.95 kB / 0.5671 GB, free: 1.926 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0523/0.8557, allocations: 13.04 MB / 0.5798 GB, free: 4.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.539e-06/0.8558, allocations: 0 / 0.5798 GB, free: 4.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.986e-05/0.8559, allocations: 12 kB / 0.5798 GB, free: 4.719 MB / 410.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.001949/0.8579, allocations: 0.7237 MB / 0.5805 GB, free: 3.941 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.278e-05/0.8579, allocations: 11.97 kB / 0.5805 GB, free: 3.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/0.8581, allocations: 60.28 kB / 0.5806 GB, free: 3.871 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001448/0.8596, allocations: 0.5114 MB / 0.5811 GB, free: 3.312 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/0.8598, allocations: 59.27 kB / 0.5811 GB, free: 3.25 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.8599, allocations: 48.36 kB / 0.5812 GB, free: 3.203 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.8612, allocations: 0.507 MB / 0.5817 GB, free: 2.652 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.781e-05/0.8613, allocations: 7.844 kB / 0.5817 GB, free: 2.645 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.8614, allocations: 23.94 kB / 0.5817 GB, free: 2.621 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2e-05/0.8614, allocations: 12 kB / 0.5817 GB, free: 2.609 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009786/0.8624, allocations: 347.7 kB / 0.582 GB, free: 2.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00368/0.8661, allocations: 1.984 MB / 0.584 GB, free: 172 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006916/0.8668, allocations: 232.1 kB / 0.5842 GB, free: 15.91 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002933/0.8671, allocations: 105.4 kB / 0.5843 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.8672, allocations: 4 kB / 0.5843 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.807e-05/0.8672, allocations: 38.56 kB / 0.5843 GB, free: 15.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=20): time 3.667e-06/0.8672, allocations: 0 / 0.5843 GB, free: 15.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=22): time 0.002479/0.8697, allocations: 0.8529 MB / 0.5852 GB, free: 14.84 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.545e-05/0.8698, allocations: 115 kB / 0.5853 GB, free: 14.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000521/0.8704, allocations: 329.5 kB / 0.5856 GB, free: 14.38 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.006e-05/0.8704, allocations: 29.7 kB / 0.5856 GB, free: 14.34 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002438/0.8707, allocations: 271.6 kB / 0.5859 GB, free: 14.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.092e-05/0.8708, allocations: 78.84 kB / 0.586 GB, free: 14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.158e-05/0.8708, allocations: 8 kB / 0.586 GB, free: 13.99 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002076/0.871, allocations: 346.8 kB / 0.5863 GB, free: 13.64 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002785/0.8713, allocations: 83.95 kB / 0.5864 GB, free: 13.56 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004222/0.8717, allocations: 225 kB / 0.5866 GB, free: 13.28 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001765/0.8735, allocations: 0.5719 MB / 0.5872 GB, free: 12.62 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.8736, allocations: 0 / 0.5872 GB, free: 12.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001246/0.8748, allocations: 429.8 kB / 0.5876 GB, free: 12.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.896e-05/0.8749, allocations: 4.062 kB / 0.5876 GB, free: 12.19 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.8749, allocations: 12 kB / 0.5876 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004327/0.8753, allocations: 76.8 kB / 0.5877 GB, free: 12.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003753/0.8757, allocations: 79.72 kB / 0.5877 GB, free: 12.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003016/0.8787, allocations: 1.784 MB / 0.5895 GB, free: 10.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003788/0.8791, allocations: 19.98 kB / 0.5895 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.682e-05/0.8792, allocations: 16 kB / 0.5895 GB, free: 10.07 MB / 426.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 (34): * Single equations (assignments): 33 * 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.0004593/0.8797, allocations: 197.6 kB / 0.5897 GB, free: 9.867 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.8798, allocations: 39.59 kB / 0.5897 GB, free: 9.828 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000102/0.8799, allocations: 43.3 kB / 0.5898 GB, free: 9.785 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.8799, allocations: 4 kB / 0.5898 GB, free: 9.781 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.8799, allocations: 0 / 0.5898 GB, free: 9.781 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.8799, allocations: 192 / 0.5898 GB, free: 9.781 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001855/0.8818, allocations: 0.7845 MB / 0.5905 GB, free: 8.922 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.8818, allocations: 3.938 kB / 0.5905 GB, free: 8.918 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003614/0.8822, allocations: 51.97 kB / 0.5906 GB, free: 8.867 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001334/0.8823, allocations: 28.84 kB / 0.5906 GB, free: 8.836 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.8824, allocations: 8.031 kB / 0.5906 GB, free: 8.828 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001481/0.8839, allocations: 1.276 MB / 0.5919 GB, free: 7.418 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.8839, allocations: 4.062 kB / 0.5919 GB, free: 7.414 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.8852, allocations: 0.5201 MB / 0.5924 GB, free: 6.867 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000219/0.8854, allocations: 116.8 kB / 0.5925 GB, free: 6.734 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.417e-05/0.8855, allocations: 11.98 kB / 0.5925 GB, free: 6.723 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.8858, allocations: 4 kB / 0.5925 GB, free: 6.719 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.785e-05/0.8859, allocations: 23.91 kB / 0.5925 GB, free: 6.695 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/0.8859, allocations: 12 kB / 0.5926 GB, free: 6.684 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003958/0.8863, allocations: 231.1 kB / 0.5928 GB, free: 6.461 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.8863, allocations: 4 kB / 0.5928 GB, free: 6.457 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009017/0.8872, allocations: 88 kB / 0.5929 GB, free: 6.371 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.rotor.phi,dcm_pm.motor.i,loadInertia.w) * 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 (21): * Single equations (assignments): 19 * 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.0003319/0.8876, allocations: 123.5 kB / 0.593 GB, free: 6.242 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.8888, allocations: 391.5 kB / 0.5934 GB, free: 5.848 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.8888, allocations: 0 / 0.5934 GB, free: 5.848 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004989/0.8893, allocations: 219.4 kB / 0.5936 GB, free: 5.621 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.8904, allocations: 97.33 kB / 0.5937 GB, free: 5.523 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002749/0.8932, allocations: 1.222 MB / 0.5948 GB, free: 4.254 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007131/0.8939, allocations: 0.8428 MB / 0.5957 GB, free: 3.387 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.894, allocations: 27.44 kB / 0.5957 GB, free: 3.359 MB / 426.7 MB Notification: Performance of SimCode: time 7.82e-07/0.894, allocations: 4 kB / 0.5957 GB, free: 3.355 MB / 426.7 MB Notification: Performance of Templates: time 0.01589/0.9099, allocations: 6.967 MB / 0.6025 GB, free: 12.39 MB / 442.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)