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.002294/0.002299, allocations: 355.1 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.422/3.422, allocations: 388.9 MB / 406.2 MB, free: 11.9 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.003282/0.003282, allocations: 223.8 kB / 451.6 MB, free: 14.5 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.6122/0.6122, allocations: 76.02 MB / 0.5594 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000507/0.0005072, allocations: 12 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06583/0.06636, allocations: 53.22 MB / 0.6736 GB, free: 60.81 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.005788/0.07219, allocations: 6.51 MB / 0.68 GB, free: 54.27 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.002655/0.07489, allocations: 1.755 MB / 0.6817 GB, free: 52.51 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000404/0.07532, allocations: 47.69 kB / 0.6817 GB, free: 52.46 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003887/0.07572, allocations: 146.9 kB / 0.6819 GB, free: 52.32 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007526/0.07649, allocations: 433.6 kB / 0.6823 GB, free: 51.89 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000504/0.07701, allocations: 227.5 kB / 0.6825 GB, free: 51.67 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008997/0.07792, allocations: 1.102 MB / 0.6836 GB, free: 50.57 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002679/0.07821, allocations: 180.3 kB / 0.6837 GB, free: 50.38 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000385/0.07861, allocations: 330.4 kB / 0.6841 GB, free: 50.06 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005591/0.07918, allocations: 458.5 kB / 0.6845 GB, free: 49.61 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 6.549e-05/0.07926, allocations: 24 kB / 0.6845 GB, free: 49.59 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.469e-05/0.07937, allocations: 28 kB / 0.6845 GB, free: 49.56 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000199/0.07958, allocations: 231.4 kB / 0.6848 GB, free: 49.33 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001192/0.07971, allocations: 141.3 kB / 0.6849 GB, free: 49.19 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003954/0.08012, allocations: 0.4948 MB / 0.6854 GB, free: 48.69 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.151e-06/0.08013, allocations: 0 / 0.6854 GB, free: 48.69 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.711e-06/0.08015, allocations: 4 kB / 0.6854 GB, free: 48.69 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.08016, allocations: 0 / 0.6854 GB, free: 48.69 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001382/0.08155, allocations: 0.8511 MB / 0.6862 GB, free: 47.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.0816, allocations: 12.03 kB / 0.6862 GB, free: 47.77 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.08173, allocations: 67.16 kB / 0.6863 GB, free: 47.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008238/0.08256, allocations: 0.5131 MB / 0.6868 GB, free: 47.15 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.621e-05/0.08262, allocations: 37 kB / 0.6868 GB, free: 47.11 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.365e-05/0.08271, allocations: 51.95 kB / 0.6869 GB, free: 47.06 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009514/0.08367, allocations: 0.6171 MB / 0.6875 GB, free: 46.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.08371, allocations: 0 / 0.6875 GB, free: 46.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.027e-05/0.08379, allocations: 24 kB / 0.6875 GB, free: 46.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001043/0.0839, allocations: 32.97 kB / 0.6875 GB, free: 46.36 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008673/0.08478, allocations: 0.4996 MB / 0.688 GB, free: 45.86 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003028/0.08782, allocations: 2.241 MB / 0.6902 GB, free: 43.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008346/0.08868, allocations: 481.2 kB / 0.6907 GB, free: 43.03 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006013/0.0893, allocations: 341.6 kB / 0.691 GB, free: 42.69 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.08934, allocations: 4 kB / 0.691 GB, free: 42.69 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.08937, allocations: 47.27 kB / 0.691 GB, free: 42.63 MB / 442.7 MB Notification: Performance of pre-optimization done (n=45): time 3.124e-06/0.08938, allocations: 0 / 0.691 GB, free: 42.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=47): time 0.003426/0.09282, allocations: 1.764 MB / 0.6928 GB, free: 40.79 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/0.09287, allocations: 81.11 kB / 0.6928 GB, free: 40.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004096/0.09329, allocations: 422 kB / 0.6932 GB, free: 40.27 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.017e-05/0.09333, allocations: 37.64 kB / 0.6933 GB, free: 40.23 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.09351, allocations: 296.5 kB / 0.6936 GB, free: 39.94 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.09363, allocations: 161.6 kB / 0.6937 GB, free: 39.78 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.09368, allocations: 19.88 kB / 0.6937 GB, free: 39.76 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.702e-05/0.09377, allocations: 362.8 kB / 0.6941 GB, free: 39.39 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003228/0.09411, allocations: 177 kB / 0.6943 GB, free: 39.22 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003584/0.09448, allocations: 311.7 kB / 0.6945 GB, free: 38.87 MB / 442.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.002101/0.09659, allocations: 0.7645 MB / 0.6953 GB, free: 38.08 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.899e-06/0.09661, allocations: 0 / 0.6953 GB, free: 38.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001263/0.09788, allocations: 0.7144 MB / 0.696 GB, free: 37.36 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.09791, allocations: 4 kB / 0.696 GB, free: 37.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.05e-06/0.09793, allocations: 4 kB / 0.696 GB, free: 37.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004144/0.09835, allocations: 145.1 kB / 0.6961 GB, free: 37.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004777/0.09884, allocations: 111.8 kB / 0.6962 GB, free: 37.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002545/0.1014, allocations: 2.373 MB / 0.6986 GB, free: 34.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003595/0.1018, allocations: 28.03 kB / 0.6986 GB, free: 34.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.016e-05/0.1019, allocations: 23.98 kB / 0.6986 GB, free: 34.54 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: 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,77.8%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002692/0.1021, allocations: 217.7 kB / 0.6988 GB, free: 34.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.751e-05/0.1022, allocations: 59.28 kB / 0.6989 GB, free: 34.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001176/0.1034, allocations: 0.6504 MB / 0.6995 GB, free: 33.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.164e-06/0.1034, allocations: 7.938 kB / 0.6995 GB, free: 33.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.638e-06/0.1035, allocations: 4 kB / 0.6995 GB, free: 33.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.1035, allocations: 0 / 0.6995 GB, free: 33.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002138/0.1056, allocations: 1.369 MB / 0.7009 GB, free: 32.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.227e-06/0.1056, allocations: 0 / 0.7009 GB, free: 32.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004225/0.1061, allocations: 75.98 kB / 0.7009 GB, free: 32.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004861/0.1066, allocations: 160.7 kB / 0.7011 GB, free: 31.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-05/0.1066, allocations: 8 kB / 0.7011 GB, free: 31.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002614/0.1093, allocations: 2.368 MB / 0.7034 GB, free: 29.38 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.13e-06/0.1093, allocations: 8 kB / 0.7034 GB, free: 29.38 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.1108, allocations: 0.977 MB / 0.7044 GB, free: 28.36 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.582e-05/0.1109, allocations: 132.4 kB / 0.7045 GB, free: 28.21 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.293e-05/0.1109, allocations: 16 kB / 0.7045 GB, free: 28.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002796/0.1112, allocations: 11.98 kB / 0.7045 GB, free: 28.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.881e-05/0.1113, allocations: 47.89 kB / 0.7046 GB, free: 28.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.182e-05/0.1114, allocations: 12 kB / 0.7046 GB, free: 28.12 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002832/0.1117, allocations: 291.1 kB / 0.7049 GB, free: 27.85 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.1117, allocations: 0 / 0.7049 GB, free: 27.85 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006501/0.1123, allocations: 144 kB / 0.705 GB, free: 27.71 MB / 442.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.0001148/0.1125, allocations: 111.3 kB / 0.7051 GB, free: 27.59 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001105/0.1136, allocations: 0.6603 MB / 0.7057 GB, free: 26.92 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.1e-06/0.1136, allocations: 0 / 0.7057 GB, free: 26.92 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007146/0.1143, allocations: 439.9 kB / 0.7062 GB, free: 26.48 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008028/0.1151, allocations: 122.8 kB / 0.7063 GB, free: 26.36 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.1173, allocations: 1.596 MB / 0.7078 GB, free: 24.71 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004479/0.1177, allocations: 0.9451 MB / 0.7088 GB, free: 23.74 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004484/0.1182, allocations: 100.7 kB / 0.7089 GB, free: 23.64 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.1183, allocations: 43.36 kB / 0.7089 GB, free: 23.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.662e-06/0.1184, allocations: 0 / 0.7089 GB, free: 23.6 MB / 442.7 MB Notification: Performance of Templates: time 0.01315/0.1315, allocations: 6.206 MB / 0.715 GB, free: 17.43 MB / 442.7 MB