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.002597/0.002597, allocations: 361.4 kB / 17.21 MB, free: 4.926 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.853/3.853, allocations: 388.9 MB / 406.8 MB, free: 11.99 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.003519/0.003519, allocations: 223.8 kB / 452.2 MB, free: 14.59 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.7766/0.7766, allocations: 76.01 MB / 0.56 GB, free: 177.5 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004447/0.0004449, allocations: 12 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09042/0.09088, allocations: 53.23 MB / 0.6742 GB, free: 60.81 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007807/0.09873, allocations: 6.514 MB / 0.6806 GB, free: 54.27 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.004081/0.1029, allocations: 1.755 MB / 0.6823 GB, free: 52.51 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007421/0.1037, allocations: 47.69 kB / 0.6823 GB, free: 52.46 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005271/0.1042, allocations: 139 kB / 0.6825 GB, free: 52.32 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001293/0.1055, allocations: 445.6 kB / 0.6829 GB, free: 51.89 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008251/0.1064, allocations: 223.5 kB / 0.6831 GB, free: 51.67 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001273/0.1077, allocations: 1.098 MB / 0.6842 GB, free: 50.57 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003835/0.1081, allocations: 184.3 kB / 0.6844 GB, free: 50.38 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005639/0.1086, allocations: 326.4 kB / 0.6847 GB, free: 50.06 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007639/0.1094, allocations: 454.5 kB / 0.6851 GB, free: 49.61 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 7.778e-05/0.1095, allocations: 28 kB / 0.6851 GB, free: 49.59 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.1096, allocations: 24 kB / 0.6852 GB, free: 49.56 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002598/0.1099, allocations: 239.4 kB / 0.6854 GB, free: 49.33 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.1101, allocations: 137.3 kB / 0.6855 GB, free: 49.19 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005499/0.1106, allocations: 0.4987 MB / 0.686 GB, free: 48.69 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1107, allocations: 0 / 0.686 GB, free: 48.69 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1107, allocations: 0 / 0.686 GB, free: 48.69 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.864e-06/0.1107, allocations: 0 / 0.686 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.0021/0.1128, allocations: 0.851 MB / 0.6868 GB, free: 47.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.1129, allocations: 8.031 kB / 0.6868 GB, free: 47.78 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.113, allocations: 71.16 kB / 0.6869 GB, free: 47.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.1142, allocations: 0.5092 MB / 0.6874 GB, free: 47.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.214e-05/0.1143, allocations: 33 kB / 0.6874 GB, free: 47.12 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.1144, allocations: 59.89 kB / 0.6875 GB, free: 47.06 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/0.1157, allocations: 0.6171 MB / 0.6881 GB, free: 46.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.493e-05/0.1157, allocations: 0 / 0.6881 GB, free: 46.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.664e-05/0.1158, allocations: 20 kB / 0.6881 GB, free: 46.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001964/0.116, allocations: 36.97 kB / 0.6882 GB, free: 46.36 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001188/0.1172, allocations: 0.5034 MB / 0.6886 GB, free: 45.85 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004402/0.1216, allocations: 2.234 MB / 0.6908 GB, free: 43.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.1229, allocations: 493.2 kB / 0.6913 GB, free: 43.02 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008987/0.1238, allocations: 337.6 kB / 0.6916 GB, free: 42.69 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.739e-05/0.1239, allocations: 8 kB / 0.6916 GB, free: 42.68 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.1239, allocations: 35.28 kB / 0.6917 GB, free: 42.64 MB / 442.7 MB Notification: Performance of pre-optimization done (n=45): time 3.616e-06/0.124, allocations: 0 / 0.6917 GB, free: 42.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=47): time 0.005012/0.129, allocations: 1.768 MB / 0.6934 GB, free: 40.79 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.304e-05/0.1291, allocations: 89.22 kB / 0.6935 GB, free: 40.69 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005312/0.1296, allocations: 409.9 kB / 0.6939 GB, free: 40.28 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.123e-05/0.1297, allocations: 37.7 kB / 0.6939 GB, free: 40.23 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.1298, allocations: 292.5 kB / 0.6942 GB, free: 39.95 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000133/0.13, allocations: 173.5 kB / 0.6943 GB, free: 39.77 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.555e-05/0.13, allocations: 8 kB / 0.6944 GB, free: 39.77 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.528e-05/0.1301, allocations: 358.8 kB / 0.6947 GB, free: 39.41 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004128/0.1306, allocations: 189 kB / 0.6949 GB, free: 39.22 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004777/0.1311, allocations: 311.7 kB / 0.6952 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.003295/0.1344, allocations: 0.7684 MB / 0.6959 GB, free: 38.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.1344, allocations: 0 / 0.6959 GB, free: 38.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001708/0.1361, allocations: 0.7066 MB / 0.6966 GB, free: 37.36 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.1362, allocations: 8.469 kB / 0.6966 GB, free: 37.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.1362, allocations: 8 kB / 0.6966 GB, free: 37.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000615/0.1368, allocations: 132.8 kB / 0.6968 GB, free: 37.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008212/0.1376, allocations: 111.8 kB / 0.6969 GB, free: 37.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003506/0.1412, allocations: 2.373 MB / 0.6992 GB, free: 34.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005524/0.1418, allocations: 32.02 kB / 0.6992 GB, free: 34.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-05/0.1418, allocations: 20 kB / 0.6992 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.0003681/0.1422, allocations: 225.7 kB / 0.6994 GB, free: 34.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.827e-05/0.1423, allocations: 51.34 kB / 0.6995 GB, free: 34.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001615/0.1439, allocations: 0.6581 MB / 0.7001 GB, free: 33.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/0.144, allocations: 3.984 kB / 0.7001 GB, free: 33.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/0.144, allocations: 0 / 0.7001 GB, free: 33.59 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.1441, allocations: 124.4 kB / 0.7003 GB, free: 33.45 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.757e-05/0.1442, allocations: 12 kB / 0.7003 GB, free: 33.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004423/0.1447, allocations: 19.97 kB / 0.7003 GB, free: 33.42 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.146e-05/0.1448, allocations: 40.38 kB / 0.7003 GB, free: 33.38 MB / 442.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002382/0.1471, allocations: 0.8469 MB / 0.7012 GB, free: 32.52 MB / 442.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001653/0.1488, allocations: 1.001 MB / 0.7021 GB, free: 31.5 MB / 442.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004474/0.1493, allocations: 227.3 kB / 0.7023 GB, free: 31.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003875/0.1497, allocations: 287.1 kB / 0.7026 GB, free: 31.01 MB / 442.7 MB Notification: Performance of Backend: time 4.71e-07/0.1497, allocations: 0 / 0.7026 GB, free: 31.01 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001771/0.1515, allocations: 0.5698 MB / 0.7032 GB, free: 30.41 MB / 442.7 MB Notification: Performance of SimCode: time 0.002973/0.1545, allocations: 2.003 MB / 0.7051 GB, free: 28.36 MB / 442.7 MB Notification: Performance of Templates: time 0.01709/0.1716, allocations: 6.428 MB / 0.7114 GB, free: 21.96 MB / 442.7 MB