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.002107/0.002106, allocations: 184.7 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.989/1.989, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.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: 83.89 kB / 267.1 MB, free: 9.281 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.2688/0.2688, allocations: 37.97 MB / 353.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.653e-05/2.655e-05, allocations: 4 kB / 416.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09961/0.09965, allocations: 56.31 MB / 473.1 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4593/0.559, allocations: 102.1 MB / 0.5618 GB, free: 1.586 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002342/0.5614, allocations: 0.6878 MB / 0.5624 GB, free: 0.8984 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06402/0.6255, allocations: 15.12 MB / 0.5772 GB, free: 1.621 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.6255, allocations: 0 / 0.5772 GB, free: 1.621 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.104e-05/0.6256, allocations: 16 kB / 0.5772 GB, free: 1.605 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001745/0.6273, allocations: 0.7261 MB / 0.5779 GB, free: 0.832 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.6274, allocations: 12.03 kB / 0.5779 GB, free: 0.8203 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.6276, allocations: 63.28 kB / 0.578 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002292/0.6299, allocations: 0.6887 MB / 0.5787 GB, free: 32 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/0.6299, allocations: 32.72 kB / 0.5787 GB, free: 0 / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.6301, allocations: 39.95 kB / 0.5787 GB, free: 15.96 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.6311, allocations: 456.3 kB / 0.5792 GB, free: 15.47 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.422e-05/0.6312, allocations: 0 / 0.5792 GB, free: 15.47 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.033e-05/0.6313, allocations: 19.94 kB / 0.5792 GB, free: 15.45 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.542e-05/0.6313, allocations: 8 kB / 0.5792 GB, free: 15.44 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007279/0.632, allocations: 282.8 kB / 0.5795 GB, free: 15.17 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003247/0.6353, allocations: 1.852 MB / 0.5813 GB, free: 13.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007249/0.636, allocations: 248.2 kB / 0.5815 GB, free: 12.93 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002234/0.6363, allocations: 86.94 kB / 0.5816 GB, free: 12.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.891e-05/0.6363, allocations: 4.188 kB / 0.5816 GB, free: 12.84 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003855/0.6367, allocations: 175.1 kB / 0.5818 GB, free: 12.64 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 4.388e-06/0.6368, allocations: 4 kB / 0.5818 GB, free: 12.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.002284/0.639, allocations: 0.8449 MB / 0.5826 GB, free: 11.73 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.497e-05/0.6392, allocations: 128.5 kB / 0.5827 GB, free: 11.58 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006319/0.6398, allocations: 355 kB / 0.5831 GB, free: 11.22 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.533e-05/0.6399, allocations: 33.7 kB / 0.5831 GB, free: 11.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002299/0.6401, allocations: 298.3 kB / 0.5834 GB, free: 10.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.6402, allocations: 94.73 kB / 0.5835 GB, free: 10.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.562e-05/0.6403, allocations: 8 kB / 0.5835 GB, free: 10.79 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.6404, allocations: 334.9 kB / 0.5838 GB, free: 10.45 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002448/0.6407, allocations: 76 kB / 0.5839 GB, free: 10.38 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003565/0.6411, allocations: 212.2 kB / 0.5841 GB, free: 10.11 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003316/0.6414, allocations: 119.8 kB / 0.5842 GB, free: 9.996 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.6414, allocations: 4 kB / 0.5842 GB, free: 9.992 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.00126/0.6427, allocations: 390.2 kB / 0.5846 GB, free: 9.602 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/0.6427, allocations: 15.95 kB / 0.5846 GB, free: 9.586 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.6428, allocations: 4 kB / 0.5846 GB, free: 9.582 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006715/0.6434, allocations: 84.78 kB / 0.5847 GB, free: 9.496 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000558/0.644, allocations: 67.91 kB / 0.5847 GB, free: 9.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00328/0.6473, allocations: 1.823 MB / 0.5865 GB, free: 7.477 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004915/0.6478, allocations: 19.94 kB / 0.5865 GB, free: 7.457 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-05/0.6479, allocations: 19.98 kB / 0.5866 GB, free: 7.438 MB / 426.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 () * 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.0001561/0.6481, allocations: 136.9 kB / 0.5867 GB, free: 7.297 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.865e-05/0.6482, allocations: 39.53 kB / 0.5867 GB, free: 7.258 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009257/0.6491, allocations: 289.7 kB / 0.587 GB, free: 6.965 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/0.6491, allocations: 7.938 kB / 0.587 GB, free: 6.957 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.6491, allocations: 0 / 0.587 GB, free: 6.957 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.6492, allocations: 0 / 0.587 GB, free: 6.957 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001647/0.6508, allocations: 0.7689 MB / 0.5878 GB, free: 6.129 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.6508, allocations: 3.953 kB / 0.5878 GB, free: 6.125 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004538/0.6513, allocations: 43.92 kB / 0.5878 GB, free: 6.082 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003333/0.6517, allocations: 48.81 kB / 0.5878 GB, free: 6.031 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-05/0.6517, allocations: 4 kB / 0.5879 GB, free: 6.027 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001772/0.6535, allocations: 1.441 MB / 0.5893 GB, free: 4.445 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.6535, allocations: 4.031 kB / 0.5893 GB, free: 4.441 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.6547, allocations: 0.5042 MB / 0.5898 GB, free: 3.902 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000232/0.655, allocations: 132.7 kB / 0.5899 GB, free: 3.754 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.877e-05/0.655, allocations: 11.98 kB / 0.5899 GB, free: 3.742 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003831/0.6554, allocations: 19.95 kB / 0.5899 GB, free: 3.723 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.205e-05/0.6555, allocations: 19.97 kB / 0.5899 GB, free: 3.703 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.784e-05/0.6556, allocations: 11.98 kB / 0.5899 GB, free: 3.691 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004861/0.6561, allocations: 273.2 kB / 0.5902 GB, free: 3.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6561, allocations: 0 / 0.5902 GB, free: 3.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007531/0.6569, allocations: 127.9 kB / 0.5903 GB, free: 3.305 MB / 426.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.001191/0.6581, allocations: 395.6 kB / 0.5907 GB, free: 2.945 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001243/0.6593, allocations: 394.9 kB / 0.5911 GB, free: 2.547 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.6593, allocations: 0 / 0.5911 GB, free: 2.547 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005929/0.6599, allocations: 234.5 kB / 0.5913 GB, free: 2.305 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/0.6611, allocations: 113.8 kB / 0.5914 GB, free: 2.191 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/0.6634, allocations: 0.845 MB / 0.5922 GB, free: 1.309 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005392/0.664, allocations: 0.8659 MB / 0.5931 GB, free: 424 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.6642, allocations: 35.44 kB / 0.5931 GB, free: 388 kB / 426.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6642, allocations: 4 kB / 0.5931 GB, free: 384 kB / 426.7 MB Notification: Performance of Templates: time 0.01738/0.6816, allocations: 8.116 MB / 0.601 GB, free: 8.238 MB / 442.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)