Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001399/0.001399, allocations: 181.1 kB / 8.011 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.029/2.029, allocations: 205.3 MB / 213.7 MB, free: 1.742 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.00106/0.00106, allocations: 82.66 kB / 261.8 MB, free: 1.68 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.2689/0.2689, allocations: 37.99 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.465e-05/1.464e-05, allocations: 4 kB / 409.9 MB, free: 35.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1029, allocations: 56.33 MB / 466.2 MB, free: 10.82 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5771/0.68, allocations: 101.5 MB / 0.5543 GB, free: 9.098 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00283/0.6829, allocations: 0.5802 MB / 0.5549 GB, free: 8.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06542/0.7483, allocations: 14.97 MB / 0.5695 GB, free: 13.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.7484, allocations: 0 / 0.5695 GB, free: 13.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.325e-05/0.7485, allocations: 19.88 kB / 0.5695 GB, free: 13.31 MB / 378.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.001748/0.7502, allocations: 0.7272 MB / 0.5703 GB, free: 12.56 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.7503, allocations: 12.03 kB / 0.5703 GB, free: 12.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001631/0.7505, allocations: 59.3 kB / 0.5703 GB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002309/0.7528, allocations: 0.6856 MB / 0.571 GB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.119e-05/0.7528, allocations: 19.92 kB / 0.571 GB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.7529, allocations: 24 kB / 0.571 GB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006758/0.7536, allocations: 236.6 kB / 0.5713 GB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008589/0.7545, allocations: 393.6 kB / 0.5716 GB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.554e-05/0.7546, allocations: 3.906 kB / 0.5716 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.804e-05/0.7546, allocations: 4 kB / 0.5716 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.165e-05/0.7546, allocations: 11.95 kB / 0.5717 GB, free: 11.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00302/0.7577, allocations: 1.791 MB / 0.5734 GB, free: 9.707 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006382/0.7583, allocations: 226.8 kB / 0.5736 GB, free: 9.516 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001826/0.7585, allocations: 83.62 kB / 0.5737 GB, free: 9.449 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.938e-05/0.7586, allocations: 4.188 kB / 0.5737 GB, free: 9.445 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003381/0.7589, allocations: 171 kB / 0.5739 GB, free: 9.289 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.725e-06/0.759, allocations: 0 / 0.5739 GB, free: 9.289 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.002126/0.7611, allocations: 0.7991 MB / 0.5746 GB, free: 8.523 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.85e-05/0.7612, allocations: 132.5 kB / 0.5748 GB, free: 8.363 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005158/0.7617, allocations: 310.8 kB / 0.5751 GB, free: 8.121 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.72e-05/0.7618, allocations: 25.7 kB / 0.5751 GB, free: 8.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002136/0.762, allocations: 314.5 kB / 0.5754 GB, free: 7.832 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.835e-05/0.7621, allocations: 82.81 kB / 0.5755 GB, free: 7.762 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.963e-05/0.7622, allocations: 0 / 0.5755 GB, free: 7.762 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.7623, allocations: 325.1 kB / 0.5758 GB, free: 7.441 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.7625, allocations: 76.64 kB / 0.5759 GB, free: 7.395 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003078/0.7628, allocations: 200.4 kB / 0.576 GB, free: 7.176 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002693/0.7631, allocations: 100.9 kB / 0.5761 GB, free: 7.109 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.7631, allocations: 4 kB / 0.5761 GB, free: 7.105 MB / 378.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001199/0.7643, allocations: 356.3 kB / 0.5765 GB, free: 6.812 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.7644, allocations: 4 kB / 0.5765 GB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.7644, allocations: 4 kB / 0.5765 GB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000651/0.7651, allocations: 97.39 kB / 0.5766 GB, free: 6.723 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004282/0.7655, allocations: 67.84 kB / 0.5767 GB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002915/0.7684, allocations: 1.747 MB / 0.5784 GB, free: 5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004674/0.7689, allocations: 31.83 kB / 0.5784 GB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-05/0.769, allocations: 15.88 kB / 0.5784 GB, free: 4.957 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcm_ser.motor.w_el:VARIABLE(unit = "rad/s" ) "rotor angular velocity el" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001867/0.7692, allocations: 118 kB / 0.5785 GB, free: 4.836 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.401e-05/0.7693, allocations: 43.48 kB / 0.5786 GB, free: 4.793 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008475/0.7701, allocations: 270.9 kB / 0.5788 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.7702, allocations: 8 kB / 0.5788 GB, free: 4.574 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.7702, allocations: 0 / 0.5788 GB, free: 4.574 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.7702, allocations: 0 / 0.5788 GB, free: 4.574 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001552/0.7718, allocations: 0.6861 MB / 0.5795 GB, free: 3.984 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.7718, allocations: 4 kB / 0.5795 GB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004602/0.7723, allocations: 43.17 kB / 0.5795 GB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003332/0.7726, allocations: 49.62 kB / 0.5796 GB, free: 3.895 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.134e-05/0.7727, allocations: 11.53 kB / 0.5796 GB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001615/0.7743, allocations: 1.392 MB / 0.581 GB, free: 2.477 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.542e-06/0.7743, allocations: 4.031 kB / 0.581 GB, free: 2.473 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00109/0.7754, allocations: 491.3 kB / 0.5814 GB, free: 2.051 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/0.7757, allocations: 139.2 kB / 0.5816 GB, free: 1.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.16e-05/0.7757, allocations: 4 kB / 0.5816 GB, free: 1.906 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003953/0.7762, allocations: 11.98 kB / 0.5816 GB, free: 1.895 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.855e-05/0.7763, allocations: 19.03 kB / 0.5816 GB, free: 1.879 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.958e-05/0.7763, allocations: 8 kB / 0.5816 GB, free: 1.871 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003854/0.7767, allocations: 239 kB / 0.5818 GB, free: 1.691 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.7767, allocations: 0 / 0.5818 GB, free: 1.691 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007954/0.7775, allocations: 115.1 kB / 0.5819 GB, free: 1.586 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.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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.001126/0.7787, allocations: 392 kB / 0.5823 GB, free: 1.242 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.7799, allocations: 373 kB / 0.5827 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.7799, allocations: 4 kB / 0.5827 GB, free: 0.9297 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005448/0.7805, allocations: 221.4 kB / 0.5829 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009113/0.7814, allocations: 86.61 kB / 0.583 GB, free: 0.6719 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002265/0.7837, allocations: 0.8182 MB / 0.5838 GB, free: 15.89 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005954/0.7843, allocations: 0.8745 MB / 0.5846 GB, free: 15.01 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001858/0.7845, allocations: 31.44 kB / 0.5846 GB, free: 14.98 MB / 394.7 MB Notification: Performance of SimCode: time 1.253e-06/0.7845, allocations: 0 / 0.5846 GB, free: 14.98 MB / 394.7 MB Notification: Performance of Templates: time 0.018/0.8025, allocations: 7.834 MB / 0.5923 GB, free: 7.215 MB / 394.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)