Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001429/0.001429, allocations: 181.5 kB / 8.012 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.051/2.051, allocations: 205.3 MB / 213.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001067/0.001067, allocations: 86.64 kB / 261.8 MB, free: 1.672 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2647/0.2647, allocations: 38 MB / 347.7 MB, free: 5.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.896e-05/1.905e-05, allocations: 0 / 409.9 MB, free: 35.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1041, allocations: 56.33 MB / 466.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4765/0.5806, allocations: 99.51 MB / 0.5524 GB, free: 9.617 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/0.581, allocations: 96.73 kB / 0.5525 GB, free: 9.598 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04842/0.6295, allocations: 12.89 MB / 0.5651 GB, free: 1.176 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.6295, allocations: 4 kB / 0.5651 GB, free: 1.172 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.857e-05/0.6296, allocations: 12 kB / 0.5651 GB, free: 1.16 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.001408/0.631, allocations: 0.6771 MB / 0.5658 GB, free: 472 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.631, allocations: 8.031 kB / 0.5658 GB, free: 464 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001386/0.6312, allocations: 63.3 kB / 0.5659 GB, free: 400 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00219/0.6334, allocations: 0.6663 MB / 0.5665 GB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.6336, allocations: 51.02 kB / 0.5666 GB, free: 15.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001046/0.6337, allocations: 27.38 kB / 0.5666 GB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007807/0.6345, allocations: 268.5 kB / 0.5668 GB, free: 15.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000964/0.6355, allocations: 442 kB / 0.5673 GB, free: 15.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.683e-05/0.6355, allocations: 7.922 kB / 0.5673 GB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.055e-05/0.6356, allocations: 0 / 0.5673 GB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.938e-05/0.6356, allocations: 12 kB / 0.5673 GB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003561/0.6392, allocations: 1.908 MB / 0.5691 GB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004228/0.6397, allocations: 193.8 kB / 0.5693 GB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001893/0.6399, allocations: 89.19 kB / 0.5694 GB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.699e-05/0.6399, allocations: 4.312 kB / 0.5694 GB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/0.6399, allocations: 38 kB / 0.5695 GB, free: 13.15 MB / 378.7 MB Notification: Performance of pre-optimization done (n=20): time 5.621e-06/0.64, allocations: 3.984 kB / 0.5695 GB, free: 13.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.001726/0.6417, allocations: 0.708 MB / 0.5701 GB, free: 12.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.75e-05/0.6418, allocations: 106.8 kB / 0.5702 GB, free: 12.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003733/0.6422, allocations: 247.5 kB / 0.5705 GB, free: 12.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.392e-05/0.6422, allocations: 29.77 kB / 0.5705 GB, free: 12.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002294/0.6425, allocations: 330.8 kB / 0.5708 GB, free: 11.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.354e-05/0.6426, allocations: 73.28 kB / 0.5709 GB, free: 11.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.691e-05/0.6426, allocations: 0 / 0.5709 GB, free: 11.74 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.6428, allocations: 329 kB / 0.5712 GB, free: 11.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/0.643, allocations: 61.06 kB / 0.5713 GB, free: 11.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002822/0.6433, allocations: 196 kB / 0.5715 GB, free: 11.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009978/0.6443, allocations: 267.3 kB / 0.5717 GB, free: 10.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.6443, allocations: 0 / 0.5717 GB, free: 10.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.00103/0.6453, allocations: 336.8 kB / 0.572 GB, free: 10.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.6454, allocations: 8 kB / 0.572 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.6454, allocations: 4 kB / 0.572 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004966/0.6459, allocations: 79.11 kB / 0.5721 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004578/0.6464, allocations: 67.28 kB / 0.5722 GB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002656/0.6491, allocations: 1.716 MB / 0.5739 GB, free: 8.875 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004065/0.6495, allocations: 16.02 kB / 0.5739 GB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.161e-05/0.6496, allocations: 19.12 kB / 0.5739 GB, free: 8.844 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 () * 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.0001686/0.6497, allocations: 120.6 kB / 0.574 GB, free: 8.723 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.751e-05/0.6498, allocations: 31.62 kB / 0.574 GB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.65, allocations: 33.45 kB / 0.5741 GB, free: 8.672 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.65, allocations: 8 kB / 0.5741 GB, free: 8.664 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.65, allocations: 0 / 0.5741 GB, free: 8.664 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.65, allocations: 7.938 kB / 0.5741 GB, free: 8.656 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001464/0.6515, allocations: 0.6783 MB / 0.5747 GB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.6515, allocations: 0 / 0.5747 GB, free: 8.039 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004925/0.652, allocations: 51.08 kB / 0.5748 GB, free: 7.992 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000137/0.6522, allocations: 24.47 kB / 0.5748 GB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/0.6522, allocations: 0 / 0.5748 GB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001189/0.6534, allocations: 1.243 MB / 0.576 GB, free: 6.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.6534, allocations: 0 / 0.576 GB, free: 6.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008194/0.6543, allocations: 495.8 kB / 0.5765 GB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000182/0.6545, allocations: 115.1 kB / 0.5766 GB, free: 6.082 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.488e-05/0.6545, allocations: 4 kB / 0.5766 GB, free: 6.078 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003449/0.6549, allocations: 7.984 kB / 0.5766 GB, free: 6.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.542e-05/0.655, allocations: 23.44 kB / 0.5766 GB, free: 6.051 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.316e-05/0.655, allocations: 8 kB / 0.5767 GB, free: 6.043 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002835/0.6553, allocations: 189 kB / 0.5768 GB, free: 5.895 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6553, allocations: 0 / 0.5768 GB, free: 5.895 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000803/0.6562, allocations: 83.98 kB / 0.5769 GB, free: 5.812 MB / 378.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 () * 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.0002458/0.6564, allocations: 119.6 kB / 0.577 GB, free: 5.688 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009105/0.6573, allocations: 333.3 kB / 0.5773 GB, free: 5.414 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.6574, allocations: 0 / 0.5773 GB, free: 5.414 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003717/0.6577, allocations: 186.8 kB / 0.5775 GB, free: 5.246 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000795/0.6586, allocations: 80.3 kB / 0.5776 GB, free: 5.188 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001995/0.6606, allocations: 0.7039 MB / 0.5783 GB, free: 4.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006231/0.6612, allocations: 0.8522 MB / 0.5791 GB, free: 3.637 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.6614, allocations: 27.44 kB / 0.5791 GB, free: 3.609 MB / 378.7 MB Notification: Performance of SimCode: time 9.51e-07/0.6614, allocations: 0 / 0.5791 GB, free: 3.609 MB / 378.7 MB Notification: Performance of Templates: time 0.01496/0.6763, allocations: 6.499 MB / 0.5855 GB, free: 13.19 MB / 394.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)