Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002412/0.002411, allocations: 357.4 kB / 16.56 MB, free: 5.57 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.487/3.487, allocations: 388.9 MB / 406.2 MB, free: 12.01 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.003397/0.003397, allocations: 233.6 kB / 451.6 MB, free: 14.6 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.6448/0.6448, allocations: 76 MB / 0.5594 GB, free: 177.7 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004634/0.0004636, allocations: 12 kB / 0.6216 GB, free: 114.3 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06849/0.06898, allocations: 53.24 MB / 0.6736 GB, free: 60.95 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.005261/0.07428, allocations: 5.368 MB / 0.6788 GB, free: 55.56 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002282/0.07659, allocations: 1.758 MB / 0.6806 GB, free: 53.79 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002832/0.07689, allocations: 35.75 kB / 0.6806 GB, free: 53.76 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002919/0.0772, allocations: 115.2 kB / 0.6807 GB, free: 53.64 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006675/0.07788, allocations: 345.9 kB / 0.681 GB, free: 53.3 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.07829, allocations: 163.7 kB / 0.6812 GB, free: 53.14 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006905/0.07899, allocations: 0.7432 MB / 0.6819 GB, free: 52.4 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003995/0.07941, allocations: 317.2 kB / 0.6822 GB, free: 52.08 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002788/0.07971, allocations: 227 kB / 0.6824 GB, free: 51.86 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003175/0.08004, allocations: 267 kB / 0.6827 GB, free: 51.6 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 5.195e-05/0.08011, allocations: 24 kB / 0.6827 GB, free: 51.57 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.938e-05/0.0802, allocations: 24 kB / 0.6827 GB, free: 51.55 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.08032, allocations: 127.6 kB / 0.6829 GB, free: 51.43 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 9.912e-05/0.08043, allocations: 121.5 kB / 0.683 GB, free: 51.3 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004123/0.08086, allocations: 458.8 kB / 0.6834 GB, free: 50.85 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.961e-06/0.08088, allocations: 0 / 0.6834 GB, free: 50.85 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.08089, allocations: 0 / 0.6834 GB, free: 50.85 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.08091, allocations: 0 / 0.6834 GB, free: 50.85 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001088/0.08201, allocations: 0.7133 MB / 0.6841 GB, free: 50.09 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.08205, allocations: 8.828 kB / 0.6841 GB, free: 50.08 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001/0.08217, allocations: 63.33 kB / 0.6842 GB, free: 50.02 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006162/0.08279, allocations: 414.9 kB / 0.6846 GB, free: 49.57 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.055e-05/0.0829, allocations: 62.69 kB / 0.6846 GB, free: 49.51 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.08302, allocations: 47.91 kB / 0.6847 GB, free: 49.46 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008551/0.08388, allocations: 0.5047 MB / 0.6852 GB, free: 48.92 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.08393, allocations: 3.938 kB / 0.6852 GB, free: 48.92 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.357e-05/0.08398, allocations: 19.94 kB / 0.6852 GB, free: 48.9 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.084, allocations: 12 kB / 0.6852 GB, free: 48.89 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000734/0.08474, allocations: 347.7 kB / 0.6855 GB, free: 48.54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002324/0.08708, allocations: 1.976 MB / 0.6875 GB, free: 46.45 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005071/0.08761, allocations: 227.6 kB / 0.6877 GB, free: 46.2 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002337/0.08786, allocations: 102.7 kB / 0.6878 GB, free: 46.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.0879, allocations: 8 kB / 0.6878 GB, free: 46.08 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.08793, allocations: 30.56 kB / 0.6878 GB, free: 46.04 MB / 442.7 MB Notification: Performance of pre-optimization done (n=20): time 2.322e-06/0.08794, allocations: 0 / 0.6878 GB, free: 46.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=23): time 0.002133/0.09008, allocations: 1.091 MB / 0.6889 GB, free: 44.87 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.09014, allocations: 118.8 kB / 0.689 GB, free: 44.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003239/0.09047, allocations: 321.6 kB / 0.6893 GB, free: 44.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.0905, allocations: 33.7 kB / 0.6893 GB, free: 44.36 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.09065, allocations: 271.5 kB / 0.6896 GB, free: 44.09 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.866e-05/0.09072, allocations: 86.83 kB / 0.6897 GB, free: 44.01 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.656e-05/0.09074, allocations: 4 kB / 0.6897 GB, free: 44 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.279e-05/0.09083, allocations: 346.9 kB / 0.69 GB, free: 43.66 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002809/0.09112, allocations: 91.88 kB / 0.6901 GB, free: 43.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003183/0.09145, allocations: 221 kB / 0.6903 GB, free: 43.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008473/0.09231, allocations: 308.9 kB / 0.6906 GB, free: 42.97 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.353e-06/0.09234, allocations: 0 / 0.6906 GB, free: 42.97 MB / 442.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001015/0.09336, allocations: 434 kB / 0.691 GB, free: 42.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.0934, allocations: 8 kB / 0.691 GB, free: 42.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.09341, allocations: 4 kB / 0.691 GB, free: 42.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003689/0.09379, allocations: 85.06 kB / 0.6911 GB, free: 42.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002989/0.09411, allocations: 67.91 kB / 0.6912 GB, free: 42.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001821/0.09595, allocations: 1.749 MB / 0.6929 GB, free: 40.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002637/0.09623, allocations: 16.06 kB / 0.6929 GB, free: 40.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.103e-05/0.09627, allocations: 24.06 kB / 0.6929 GB, free: 40.45 MB / 442.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 (36): * Single equations (assignments): 35 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002094/0.09649, allocations: 197.2 kB / 0.6931 GB, free: 40.25 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.001e-05/0.09659, allocations: 31.62 kB / 0.6931 GB, free: 40.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.679e-05/0.09667, allocations: 43.3 kB / 0.6932 GB, free: 40.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.171e-06/0.09669, allocations: 7.953 kB / 0.6932 GB, free: 40.17 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.251e-06/0.0967, allocations: 4 kB / 0.6932 GB, free: 40.16 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.667e-06/0.09671, allocations: 0 / 0.6932 GB, free: 40.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001404/0.09812, allocations: 0.7913 MB / 0.694 GB, free: 39.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.706e-06/0.09815, allocations: 0 / 0.694 GB, free: 39.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000349/0.09851, allocations: 51.97 kB / 0.694 GB, free: 39.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001089/0.09863, allocations: 16.84 kB / 0.694 GB, free: 39.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.802e-05/0.09868, allocations: 8 kB / 0.694 GB, free: 39.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007654/0.09946, allocations: 1.295 MB / 0.6953 GB, free: 37.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.292e-06/0.09948, allocations: 0 / 0.6953 GB, free: 37.79 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000824/0.1003, allocations: 0.5154 MB / 0.6958 GB, free: 37.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.1004, allocations: 124.7 kB / 0.6959 GB, free: 37.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.772e-05/0.1005, allocations: 8 kB / 0.6959 GB, free: 37.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002632/0.1008, allocations: 15.98 kB / 0.6959 GB, free: 37.09 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.103e-05/0.1008, allocations: 19.94 kB / 0.696 GB, free: 37.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.707e-05/0.1009, allocations: 4 kB / 0.696 GB, free: 37.06 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002183/0.1011, allocations: 227.2 kB / 0.6962 GB, free: 36.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.452e-06/0.1011, allocations: 0 / 0.6962 GB, free: 36.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005795/0.1017, allocations: 95.94 kB / 0.6963 GB, free: 36.75 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcm_pm.motor.phi_el,dcm_pm.motor.w_el,dcm_pm.motor.i) * 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 (22): * Single equations (assignments): 20 * 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 8.865e-05/0.1018, allocations: 107.2 kB / 0.6964 GB, free: 36.64 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0007956/0.1026, allocations: 370.7 kB / 0.6967 GB, free: 36.26 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.817e-06/0.1026, allocations: 0 / 0.6967 GB, free: 36.26 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004115/0.103, allocations: 227.3 kB / 0.697 GB, free: 36.03 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000779/0.1038, allocations: 93.5 kB / 0.697 GB, free: 35.94 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.1056, allocations: 1.184 MB / 0.6982 GB, free: 34.72 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.1059, allocations: 0.8583 MB / 0.699 GB, free: 33.83 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002586/0.1062, allocations: 55.25 kB / 0.6991 GB, free: 33.78 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.89e-05/0.1063, allocations: 31.38 kB / 0.6991 GB, free: 33.75 MB / 442.7 MB Notification: Performance of SimCode: time 1.366e-06/0.1063, allocations: 0 / 0.6991 GB, free: 33.75 MB / 442.7 MB Notification: Performance of Templates: time 0.01005/0.1163, allocations: 4.12 MB / 0.7031 GB, free: 29.65 MB / 442.7 MB