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.002642/0.002647, allocations: 365.6 kB / 17.21 MB, free: 4.953 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.69/3.69, allocations: 388.9 MB / 406.8 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.003543/0.003543, allocations: 223.9 kB / 452.2 MB, free: 14.58 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.7345/0.7345, allocations: 76.01 MB / 0.56 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004457/0.0004459, allocations: 8 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08801/0.08848, allocations: 53.22 MB / 0.6742 GB, free: 60.82 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4474/0.536, allocations: 95.08 MB / 0.7671 GB, free: 81.43 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.5363, allocations: 104.7 kB / 0.7672 GB, free: 81.43 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04972/0.5861, allocations: 12.95 MB / 0.7798 GB, free: 80.04 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5861, allocations: 3.844 kB / 0.7798 GB, free: 80.04 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.587e-05/0.5862, allocations: 7.688 kB / 0.7798 GB, free: 80.04 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.001652/0.5878, allocations: 0.7268 MB / 0.7805 GB, free: 79.46 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.5879, allocations: 11.47 kB / 0.7805 GB, free: 79.46 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.588, allocations: 55.03 kB / 0.7806 GB, free: 79.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00129/0.5893, allocations: 0.4939 MB / 0.7811 GB, free: 79.11 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001206/0.5895, allocations: 64.66 kB / 0.7811 GB, free: 79.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.5896, allocations: 49.91 kB / 0.7812 GB, free: 79.07 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.5908, allocations: 0.5039 MB / 0.7817 GB, free: 78.85 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.13e-05/0.5908, allocations: 0 / 0.7817 GB, free: 78.85 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.23e-05/0.5909, allocations: 24.36 kB / 0.7817 GB, free: 78.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.5909, allocations: 11.47 kB / 0.7817 GB, free: 78.84 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009598/0.5919, allocations: 350 kB / 0.782 GB, free: 78.77 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003005/0.5949, allocations: 1.997 MB / 0.784 GB, free: 77.32 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006568/0.5956, allocations: 223.4 kB / 0.7842 GB, free: 77.23 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000307/0.5959, allocations: 100.6 kB / 0.7843 GB, free: 77.19 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.596, allocations: 3.844 kB / 0.7843 GB, free: 77.19 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.596, allocations: 38.12 kB / 0.7843 GB, free: 77.15 MB / 442.7 MB Notification: Performance of pre-optimization done (n=20): time 2.766e-06/0.596, allocations: 0 / 0.7843 GB, free: 77.15 MB / 442.7 MB Notification: Performance of matching and sorting (n=23): time 0.002847/0.5989, allocations: 1.083 MB / 0.7854 GB, free: 76.48 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.599, allocations: 111 kB / 0.7855 GB, free: 76.35 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004265/0.5994, allocations: 334.3 kB / 0.7858 GB, free: 76.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.943e-05/0.5995, allocations: 32.39 kB / 0.7859 GB, free: 76.15 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.5997, allocations: 268.1 kB / 0.7861 GB, free: 75.97 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.965e-05/0.5997, allocations: 84.41 kB / 0.7862 GB, free: 75.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.985e-05/0.5998, allocations: 7.25 kB / 0.7862 GB, free: 75.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.566e-05/0.5999, allocations: 343.5 kB / 0.7865 GB, free: 75.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003275/0.6002, allocations: 94.17 kB / 0.7866 GB, free: 75.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003709/0.6006, allocations: 219 kB / 0.7868 GB, free: 75.39 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.6018, allocations: 303.5 kB / 0.7871 GB, free: 75.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.6018, allocations: 7.906 kB / 0.7871 GB, free: 75.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001295/0.6031, allocations: 438 kB / 0.7875 GB, free: 75.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.6032, allocations: 3.844 kB / 0.7875 GB, free: 75.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.123e-05/0.6032, allocations: 7.375 kB / 0.7876 GB, free: 75.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004929/0.6037, allocations: 85.64 kB / 0.7876 GB, free: 75.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004293/0.6041, allocations: 69.28 kB / 0.7877 GB, free: 75.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002322/0.6065, allocations: 1.792 MB / 0.7895 GB, free: 73.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004116/0.6069, allocations: 18.44 kB / 0.7895 GB, free: 73.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.398e-05/0.607, allocations: 22.89 kB / 0.7895 GB, free: 73.59 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 (35): * Single equations (assignments): 34 * 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.0003426/0.6073, allocations: 192.2 kB / 0.7897 GB, free: 73.46 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.32e-05/0.6074, allocations: 32.06 kB / 0.7897 GB, free: 73.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.538e-05/0.6075, allocations: 48.17 kB / 0.7898 GB, free: 73.43 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.6075, allocations: 3.875 kB / 0.7898 GB, free: 73.43 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.6075, allocations: 0 / 0.7898 GB, free: 73.43 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.6076, allocations: 4 kB / 0.7898 GB, free: 73.43 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001597/0.6092, allocations: 0.794 MB / 0.7905 GB, free: 72.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.6092, allocations: 0 / 0.7905 GB, free: 72.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004833/0.6097, allocations: 54.38 kB / 0.7906 GB, free: 72.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001232/0.6098, allocations: 24.25 kB / 0.7906 GB, free: 72.92 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.6099, allocations: 8.812 kB / 0.7906 GB, free: 72.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008581/0.6107, allocations: 1.28 MB / 0.7919 GB, free: 71.63 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.6108, allocations: 3.781 kB / 0.7919 GB, free: 71.63 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.612, allocations: 0.5115 MB / 0.7924 GB, free: 71.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001593/0.6122, allocations: 123.4 kB / 0.7925 GB, free: 71.22 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.486e-05/0.6122, allocations: 7.781 kB / 0.7925 GB, free: 71.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003324/0.6126, allocations: 7.766 kB / 0.7925 GB, free: 71.22 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.318e-05/0.6127, allocations: 19.44 kB / 0.7925 GB, free: 71.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.303e-05/0.6127, allocations: 15.39 kB / 0.7925 GB, free: 71.21 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003144/0.613, allocations: 221.7 kB / 0.7927 GB, free: 71.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6131, allocations: 0 / 0.7927 GB, free: 71.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006958/0.6138, allocations: 98.19 kB / 0.7928 GB, free: 71.1 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 0.0001987/0.614, allocations: 124.7 kB / 0.793 GB, free: 71 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.6151, allocations: 399.5 kB / 0.7933 GB, free: 70.83 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.6151, allocations: 4.062 kB / 0.7933 GB, free: 70.82 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004989/0.6156, allocations: 223.8 kB / 0.7936 GB, free: 70.69 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009886/0.6167, allocations: 95.75 kB / 0.7937 GB, free: 70.66 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002155/0.6188, allocations: 1.179 MB / 0.7948 GB, free: 69.87 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003938/0.6193, allocations: 0.8643 MB / 0.7956 GB, free: 69.09 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003618/0.6196, allocations: 46.12 kB / 0.7957 GB, free: 69.07 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.988e-05/0.6197, allocations: 30.69 kB / 0.7957 GB, free: 69.05 MB / 442.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6197, allocations: 0 / 0.7957 GB, free: 69.05 MB / 442.7 MB Notification: Performance of Templates: time 0.01315/0.6329, allocations: 4.434 MB / 0.8001 GB, free: 66.97 MB / 442.7 MB