Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002567/0.002567, allocations: 363.8 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.309/3.309, allocations: 388.9 MB / 406.9 MB, free: 6.848 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003462/0.003462, allocations: 233.8 kB / 452.2 MB, free: 0.5742 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.7131/0.7131, allocations: 76.03 MB / 0.56 GB, free: 14.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006161/0.0006163, allocations: 8 kB / 0.6222 GB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.3249, allocations: 53.22 MB / 0.6742 GB, free: 62.65 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1443/0.4693, allocations: 96.02 MB / 0.768 GB, free: 14.5 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003458/0.4697, allocations: 99.95 kB / 0.7681 GB, free: 14.4 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3885/0.8582, allocations: 15.21 MB / 0.7829 GB, free: 96.37 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.597e-06/0.8582, allocations: 0.7031 kB / 0.7829 GB, free: 96.37 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.992e-05/0.8583, allocations: 21.27 kB / 0.783 GB, free: 96.36 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00263/0.8609, allocations: 0.8811 MB / 0.7838 GB, free: 95.83 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.861, allocations: 12.47 kB / 0.7838 GB, free: 95.83 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002517/0.8613, allocations: 67.72 kB / 0.7839 GB, free: 95.8 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002417/0.8637, allocations: 0.735 MB / 0.7846 GB, free: 95.53 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.731e-05/0.8638, allocations: 37.81 kB / 0.7846 GB, free: 95.53 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001323/0.8639, allocations: 47.53 kB / 0.7847 GB, free: 95.53 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.8655, allocations: 0.6322 MB / 0.7853 GB, free: 95.4 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/0.8655, allocations: 1.406 kB / 0.7853 GB, free: 95.4 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.472e-05/0.8656, allocations: 24.09 kB / 0.7853 GB, free: 95.4 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.874e-05/0.8657, allocations: 14.52 kB / 0.7853 GB, free: 95.4 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001302/0.867, allocations: 0.5073 MB / 0.7858 GB, free: 95.4 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004917/0.8719, allocations: 2.251 MB / 0.788 GB, free: 94.4 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.8733, allocations: 481.7 kB / 0.7885 GB, free: 94.34 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009532/0.8743, allocations: 337.7 kB / 0.7888 GB, free: 94.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.173e-05/0.8744, allocations: 7.984 kB / 0.7888 GB, free: 94.32 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.8744, allocations: 44.19 kB / 0.7889 GB, free: 94.28 MB / 394.7 MB Notification: Performance of pre-optimization done (n=45): time 3.076e-06/0.8744, allocations: 0 / 0.7889 GB, free: 94.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=47): time 0.005201/0.8797, allocations: 1.73 MB / 0.7906 GB, free: 93.69 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.8797, allocations: 87.48 kB / 0.7906 GB, free: 93.59 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005702/0.8803, allocations: 422.9 kB / 0.791 GB, free: 93.39 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.206e-05/0.8804, allocations: 29.83 kB / 0.7911 GB, free: 93.36 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.8806, allocations: 297.8 kB / 0.7914 GB, free: 93.12 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001664/0.8808, allocations: 164.6 kB / 0.7915 GB, free: 92.99 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.54e-05/0.8808, allocations: 11.72 kB / 0.7915 GB, free: 92.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.788e-05/0.8809, allocations: 363.9 kB / 0.7919 GB, free: 92.65 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004291/0.8814, allocations: 183.3 kB / 0.792 GB, free: 92.59 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004813/0.8819, allocations: 308 kB / 0.7923 GB, free: 92.39 MB / 394.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.003287/0.8852, allocations: 0.7489 MB / 0.7931 GB, free: 92.12 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.8852, allocations: 3.781 kB / 0.7931 GB, free: 92.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001716/0.8869, allocations: 0.6969 MB / 0.7938 GB, free: 91.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.887, allocations: 5.219 kB / 0.7938 GB, free: 91.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.887, allocations: 3.75 kB / 0.7938 GB, free: 91.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005817/0.8876, allocations: 133.6 kB / 0.7939 GB, free: 91.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008309/0.8884, allocations: 113.7 kB / 0.794 GB, free: 91.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003489/0.8919, allocations: 2.351 MB / 0.7963 GB, free: 90.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006205/0.8926, allocations: 25.31 kB / 0.7963 GB, free: 90.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.261e-05/0.8927, allocations: 21.77 kB / 0.7963 GB, free: 90.04 MB / 394.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (54): * Single equations (assignments): 53 * 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: 1 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004493/0.8932, allocations: 229 kB / 0.7966 GB, free: 89.88 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001225/0.8933, allocations: 53.38 kB / 0.7966 GB, free: 89.85 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001617/0.8949, allocations: 0.646 MB / 0.7972 GB, free: 89.57 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.895, allocations: 7.594 kB / 0.7973 GB, free: 89.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.984e-06/0.895, allocations: 3.5 kB / 0.7973 GB, free: 89.57 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.895, allocations: 3.938 kB / 0.7973 GB, free: 89.57 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002981/0.898, allocations: 1.356 MB / 0.7986 GB, free: 88.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.898, allocations: 2.094 kB / 0.7986 GB, free: 88.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006409/0.8987, allocations: 73.69 kB / 0.7987 GB, free: 88.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005932/0.8993, allocations: 148.1 kB / 0.7988 GB, free: 88.77 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.322e-05/0.8994, allocations: 10.81 kB / 0.7988 GB, free: 88.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003359/0.9027, allocations: 2.338 MB / 0.8011 GB, free: 87.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.9028, allocations: 3.938 kB / 0.8011 GB, free: 87.01 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002057/0.9048, allocations: 0.9743 MB / 0.802 GB, free: 86.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/0.905, allocations: 118.9 kB / 0.8022 GB, free: 86.39 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.9051, allocations: 21.62 kB / 0.8022 GB, free: 86.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004154/0.9056, allocations: 15.52 kB / 0.8022 GB, free: 86.38 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.219e-05/0.9057, allocations: 40.67 kB / 0.8022 GB, free: 86.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.256e-05/0.9057, allocations: 19.5 kB / 0.8023 GB, free: 86.36 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004027/0.9061, allocations: 282.2 kB / 0.8025 GB, free: 86.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.9061, allocations: 4 kB / 0.8025 GB, free: 86.22 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008339/0.907, allocations: 152.2 kB / 0.8027 GB, free: 86.2 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * 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 (41): * Single equations (assignments): 39 * 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 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002044/0.9072, allocations: 126 kB / 0.8028 GB, free: 86.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001559/0.9088, allocations: 0.656 MB / 0.8034 GB, free: 85.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.9088, allocations: 0 / 0.8034 GB, free: 85.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009224/0.9097, allocations: 432.3 kB / 0.8038 GB, free: 85.46 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.9109, allocations: 119.6 kB / 0.804 GB, free: 85.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003189/0.9142, allocations: 1.595 MB / 0.8055 GB, free: 83.93 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004729/0.9147, allocations: 0.9446 MB / 0.8064 GB, free: 83.05 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006211/0.9153, allocations: 107.5 kB / 0.8065 GB, free: 82.98 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001666/0.9155, allocations: 35.44 kB / 0.8066 GB, free: 82.95 MB / 394.7 MB Notification: Performance of SimCode: time 2.024e-06/0.9155, allocations: 0 / 0.8066 GB, free: 82.95 MB / 394.7 MB Notification: Performance of Templates: time 0.01764/0.9331, allocations: 6.329 MB / 0.8128 GB, free: 77.93 MB / 394.7 MB