Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002767/0.002772, allocations: 361.4 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.671/3.671, allocations: 388.9 MB / 406.8 MB, free: 11.89 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.00355/0.00355, allocations: 233.5 kB / 452.2 MB, free: 14.49 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.7366/0.7366, allocations: 76.01 MB / 0.56 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006089/0.0006093, allocations: 12 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09102/0.09166, allocations: 53.23 MB / 0.6742 GB, free: 60.82 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4462/0.5379, allocations: 94.35 MB / 0.7664 GB, free: 81.54 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/0.5383, allocations: 96.97 kB / 0.7664 GB, free: 81.54 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04274/0.5811, allocations: 11.34 MB / 0.7775 GB, free: 80.46 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.5811, allocations: 4.969 kB / 0.7775 GB, free: 80.46 MB / 442.7 MB Notification: Performance of Transformations before backend: time 3.273e-05/0.5811, allocations: 7.688 kB / 0.7775 GB, free: 80.46 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001462/0.5826, allocations: 0.6678 MB / 0.7782 GB, free: 79.98 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.5827, allocations: 10.3 kB / 0.7782 GB, free: 79.98 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.5828, allocations: 47.53 kB / 0.7782 GB, free: 79.96 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.5839, allocations: 462.5 kB / 0.7787 GB, free: 79.71 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.584, allocations: 56.17 kB / 0.7787 GB, free: 79.68 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.082e-05/0.5842, allocations: 43.66 kB / 0.7788 GB, free: 79.67 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009435/0.5851, allocations: 439.1 kB / 0.7792 GB, free: 79.51 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.729e-05/0.5852, allocations: 7.891 kB / 0.7792 GB, free: 79.5 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.01e-05/0.5852, allocations: 16.09 kB / 0.7792 GB, free: 79.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.5852, allocations: 11.38 kB / 0.7792 GB, free: 79.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000742/0.586, allocations: 269 kB / 0.7795 GB, free: 79.45 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002776/0.5888, allocations: 1.859 MB / 0.7813 GB, free: 78.06 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000485/0.5893, allocations: 185.1 kB / 0.7815 GB, free: 77.96 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002206/0.5895, allocations: 82.53 kB / 0.7816 GB, free: 77.93 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.5896, allocations: 13.86 kB / 0.7816 GB, free: 77.92 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.219e-05/0.5896, allocations: 33.12 kB / 0.7816 GB, free: 77.88 MB / 442.7 MB Notification: Performance of pre-optimization done (n=18): time 3.166e-06/0.5896, allocations: 3.375 kB / 0.7816 GB, free: 77.88 MB / 442.7 MB Notification: Performance of matching and sorting (n=20): time 0.002255/0.5919, allocations: 0.9382 MB / 0.7825 GB, free: 77.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/0.592, allocations: 113.8 kB / 0.7826 GB, free: 77.13 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003965/0.5924, allocations: 302.5 kB / 0.7829 GB, free: 77 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.5924, allocations: 33.23 kB / 0.7829 GB, free: 76.97 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.5926, allocations: 251.7 kB / 0.7832 GB, free: 76.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.215e-05/0.5927, allocations: 72.94 kB / 0.7833 GB, free: 76.74 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.921e-05/0.5927, allocations: 3.688 kB / 0.7833 GB, free: 76.74 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.023e-05/0.5928, allocations: 339.1 kB / 0.7836 GB, free: 76.42 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002582/0.5931, allocations: 80.33 kB / 0.7837 GB, free: 76.41 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003054/0.5934, allocations: 212.3 kB / 0.7839 GB, free: 76.23 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003142/0.5937, allocations: 112.3 kB / 0.784 GB, free: 76.21 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.5937, allocations: 3.844 kB / 0.784 GB, free: 76.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008013/0.5945, allocations: 343.5 kB / 0.7843 GB, free: 76.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.461e-05/0.5946, allocations: 7.656 kB / 0.7843 GB, free: 76.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.5946, allocations: 3.875 kB / 0.7843 GB, free: 76.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.45e-05/0.5946, allocations: 7.656 kB / 0.7843 GB, free: 76.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005322/0.5952, allocations: 77.25 kB / 0.7844 GB, free: 76.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.587e-05/0.5952, allocations: 13.88 kB / 0.7844 GB, free: 76.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.5956, allocations: 22.94 kB / 0.7844 GB, free: 76.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.157e-05/0.5956, allocations: 19 kB / 0.7844 GB, free: 76.07 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (41): * Single equations (assignments): 41 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002812/0.5959, allocations: 182.1 kB / 0.7846 GB, free: 75.95 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-05/0.596, allocations: 30.69 kB / 0.7847 GB, free: 75.93 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006026/0.5966, allocations: 208.6 kB / 0.7849 GB, free: 75.86 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.5966, allocations: 4.875 kB / 0.7849 GB, free: 75.86 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.5967, allocations: 0 / 0.7849 GB, free: 75.86 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.5967, allocations: 7.984 kB / 0.7849 GB, free: 75.86 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001249/0.5979, allocations: 0.6372 MB / 0.7855 GB, free: 75.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.598, allocations: 7.828 kB / 0.7855 GB, free: 75.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004576/0.5984, allocations: 42.64 kB / 0.7855 GB, free: 75.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-06/0.5984, allocations: 7.906 kB / 0.7855 GB, free: 75.45 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.5985, allocations: 4.25 kB / 0.7855 GB, free: 75.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.5985, allocations: 3.875 kB / 0.7855 GB, free: 75.45 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5985, allocations: 3.984 kB / 0.7856 GB, free: 75.44 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008546/0.5994, allocations: 477.3 kB / 0.786 GB, free: 75.16 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.356e-05/0.5995, allocations: 104.5 kB / 0.7861 GB, free: 75.05 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.459e-05/0.5996, allocations: 10.06 kB / 0.7861 GB, free: 75.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003007/0.5999, allocations: 7.281 kB / 0.7861 GB, free: 75.05 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.676e-05/0.6, allocations: 11.67 kB / 0.7861 GB, free: 75.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.6, allocations: 8.969 kB / 0.7861 GB, free: 75.05 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002902/0.6003, allocations: 223.3 kB / 0.7864 GB, free: 74.93 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6003, allocations: 0 / 0.7864 GB, free: 74.93 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005835/0.6009, allocations: 76.53 kB / 0.7864 GB, free: 74.93 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.motor.phi_el,machine.motor.w_el) * 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 (21): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001958/0.6011, allocations: 129.5 kB / 0.7866 GB, free: 74.82 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006164/0.6017, allocations: 207.2 kB / 0.7867 GB, free: 74.79 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.6017, allocations: 0 / 0.7867 GB, free: 74.79 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002583/0.602, allocations: 88.69 kB / 0.7868 GB, free: 74.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009646/0.603, allocations: 83.97 kB / 0.7869 GB, free: 74.74 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002143/0.6051, allocations: 1.138 MB / 0.788 GB, free: 73.97 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003098/0.6055, allocations: 0.8298 MB / 0.7888 GB, free: 73.21 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003746/0.6059, allocations: 49.44 kB / 0.7889 GB, free: 73.19 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.359e-05/0.606, allocations: 26.72 kB / 0.7889 GB, free: 73.18 MB / 442.7 MB Notification: Performance of SimCode: time 1.122e-06/0.606, allocations: 0 / 0.7889 GB, free: 73.18 MB / 442.7 MB Notification: Performance of Templates: time 0.01072/0.6167, allocations: 3.439 MB / 0.7923 GB, free: 71.59 MB / 442.7 MB