Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002335/0.002339, allocations: 353.7 kB / 16.57 MB, free: 5.59 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.39/3.39, allocations: 388.9 MB / 406.2 MB, free: 11.98 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003242/0.003242, allocations: 227.8 kB / 451.6 MB, free: 14.57 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.612/0.612, allocations: 76.01 MB / 0.5594 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004816/0.0004818, allocations: 16 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06798/0.06849, allocations: 53.23 MB / 0.6736 GB, free: 60.8 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.004895/0.07342, allocations: 5.083 MB / 0.6786 GB, free: 55.69 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002485/0.07593, allocations: 1.958 MB / 0.6805 GB, free: 53.73 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002805/0.07623, allocations: 27.81 kB / 0.6805 GB, free: 53.7 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003646/0.07661, allocations: 135.1 kB / 0.6806 GB, free: 53.57 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007383/0.07737, allocations: 334 kB / 0.681 GB, free: 53.24 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003506/0.07773, allocations: 163.7 kB / 0.6811 GB, free: 53.08 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006577/0.0784, allocations: 0.7083 MB / 0.6818 GB, free: 52.37 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003544/0.07877, allocations: 297.4 kB / 0.6821 GB, free: 52.07 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003043/0.07909, allocations: 250.9 kB / 0.6823 GB, free: 51.82 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000331/0.07944, allocations: 258.9 kB / 0.6826 GB, free: 51.57 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 6.85e-05/0.07953, allocations: 24 kB / 0.6826 GB, free: 51.54 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001637/0.0797, allocations: 67.89 kB / 0.6827 GB, free: 51.48 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.07985, allocations: 119.6 kB / 0.6828 GB, free: 51.36 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 9.562e-05/0.07996, allocations: 121.5 kB / 0.6829 GB, free: 51.23 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004192/0.08039, allocations: 498.7 kB / 0.6834 GB, free: 50.75 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.0804, allocations: 0 / 0.6834 GB, free: 50.75 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.678e-06/0.08041, allocations: 0 / 0.6834 GB, free: 50.75 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.545e-06/0.08043, allocations: 4 kB / 0.6834 GB, free: 50.74 MB / 442.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.001176/0.08162, allocations: 0.7861 MB / 0.6841 GB, free: 49.9 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.08166, allocations: 8.828 kB / 0.6841 GB, free: 49.89 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.554e-05/0.08177, allocations: 55.34 kB / 0.6842 GB, free: 49.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006457/0.08242, allocations: 430 kB / 0.6846 GB, free: 49.38 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.278e-05/0.08247, allocations: 29 kB / 0.6846 GB, free: 49.35 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.98e-05/0.08255, allocations: 43.98 kB / 0.6847 GB, free: 49.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006352/0.0832, allocations: 453.1 kB / 0.6851 GB, free: 48.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.08324, allocations: 11.8 kB / 0.6851 GB, free: 48.81 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.167e-05/0.08329, allocations: 20 kB / 0.6851 GB, free: 48.79 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.08331, allocations: 8 kB / 0.6851 GB, free: 48.78 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005753/0.0839, allocations: 274.3 kB / 0.6854 GB, free: 48.52 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.08594, allocations: 1.867 MB / 0.6872 GB, free: 46.54 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000523/0.08648, allocations: 250 kB / 0.6875 GB, free: 46.27 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.08667, allocations: 94.98 kB / 0.6876 GB, free: 46.17 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.056e-05/0.08671, allocations: 4.188 kB / 0.6876 GB, free: 46.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000246/0.08697, allocations: 174.3 kB / 0.6877 GB, free: 45.97 MB / 442.7 MB Notification: Performance of pre-optimization done (n=24): time 2.295e-06/0.08699, allocations: 0 / 0.6877 GB, free: 45.97 MB / 442.7 MB Notification: Performance of matching and sorting (n=27): time 0.001962/0.08896, allocations: 1.142 MB / 0.6888 GB, free: 44.74 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.08901, allocations: 132.5 kB / 0.689 GB, free: 44.58 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004045/0.08942, allocations: 385.7 kB / 0.6893 GB, free: 44.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.08946, allocations: 33.7 kB / 0.6894 GB, free: 44.16 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001323/0.0896, allocations: 259.8 kB / 0.6896 GB, free: 43.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.686e-05/0.08968, allocations: 102.8 kB / 0.6897 GB, free: 43.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.919e-05/0.08971, allocations: 8 kB / 0.6897 GB, free: 43.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.343e-05/0.08979, allocations: 350.8 kB / 0.6901 GB, free: 43.44 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001829/0.08999, allocations: 88.7 kB / 0.6901 GB, free: 43.35 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002325/0.09023, allocations: 213.9 kB / 0.6903 GB, free: 43.09 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002341/0.09048, allocations: 153.6 kB / 0.6905 GB, free: 42.93 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.982e-06/0.09049, allocations: 0 / 0.6905 GB, free: 42.93 MB / 442.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009269/0.09143, allocations: 467.5 kB / 0.6909 GB, free: 42.46 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.589e-05/0.09148, allocations: 41.69 kB / 0.691 GB, free: 42.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.52e-06/0.09151, allocations: 4 kB / 0.691 GB, free: 42.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004727/0.09199, allocations: 92.77 kB / 0.6911 GB, free: 42.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002583/0.09226, allocations: 63.91 kB / 0.6911 GB, free: 42.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002105/0.09438, allocations: 1.811 MB / 0.6929 GB, free: 40.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002748/0.09467, allocations: 23.95 kB / 0.6929 GB, free: 40.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/0.09472, allocations: 19.98 kB / 0.6929 GB, free: 40.27 MB / 442.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 1 * 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.0002002/0.09494, allocations: 201.8 kB / 0.6931 GB, free: 40.06 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.722e-05/0.095, allocations: 43.42 kB / 0.6932 GB, free: 40.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006421/0.09566, allocations: 309.8 kB / 0.6935 GB, free: 39.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.892e-06/0.09568, allocations: 4 kB / 0.6935 GB, free: 39.69 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.009e-06/0.0957, allocations: 0 / 0.6935 GB, free: 39.69 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.239e-06/0.09571, allocations: 0 / 0.6935 GB, free: 39.69 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.09678, allocations: 0.7739 MB / 0.6942 GB, free: 38.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.332e-06/0.0968, allocations: 0 / 0.6942 GB, free: 38.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002828/0.0971, allocations: 55.84 kB / 0.6943 GB, free: 38.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002611/0.09737, allocations: 48.81 kB / 0.6943 GB, free: 38.75 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.747e-05/0.09742, allocations: 4 kB / 0.6943 GB, free: 38.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/0.09855, allocations: 1.441 MB / 0.6957 GB, free: 37.18 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.43e-06/0.09858, allocations: 4.062 kB / 0.6957 GB, free: 37.18 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007545/0.09934, allocations: 0.4934 MB / 0.6962 GB, free: 36.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001589/0.09952, allocations: 128.7 kB / 0.6964 GB, free: 36.51 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.38e-05/0.09959, allocations: 8 kB / 0.6964 GB, free: 36.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002883/0.0999, allocations: 19.94 kB / 0.6964 GB, free: 36.48 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.079e-05/0.09997, allocations: 24.2 kB / 0.6964 GB, free: 36.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.146e-05/0.1, allocations: 8 kB / 0.6964 GB, free: 36.45 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002788/0.1003, allocations: 275.1 kB / 0.6967 GB, free: 36.19 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.85e-07/0.1003, allocations: 0 / 0.6967 GB, free: 36.19 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005415/0.1009, allocations: 108 kB / 0.6968 GB, free: 36.08 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.motor.phi_el,dcm_ser.motor.w_el,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * 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.0008797/0.1017, allocations: 327.3 kB / 0.6971 GB, free: 35.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0008117/0.1026, allocations: 479.5 kB / 0.6975 GB, free: 35.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.072e-06/0.1026, allocations: 0 / 0.6975 GB, free: 35.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003956/0.103, allocations: 254.4 kB / 0.6978 GB, free: 35.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008233/0.1038, allocations: 113.7 kB / 0.6979 GB, free: 34.93 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.1057, allocations: 1.35 MB / 0.6992 GB, free: 33.55 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.106, allocations: 0.8779 MB / 0.7001 GB, free: 32.64 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002748/0.1063, allocations: 55.31 kB / 0.7001 GB, free: 32.59 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.758e-05/0.1064, allocations: 35.44 kB / 0.7002 GB, free: 32.55 MB / 442.7 MB Notification: Performance of SimCode: time 1.285e-06/0.1064, allocations: 0 / 0.7002 GB, free: 32.55 MB / 442.7 MB Notification: Performance of Templates: time 0.01199/0.1184, allocations: 5.56 MB / 0.7056 GB, free: 27 MB / 442.7 MB