Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.AC3ph.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.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002482/0.002482, allocations: 354.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.166/3.166, allocations: 388.9 MB / 406.2 MB, free: 6.91 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.003495/0.003495, allocations: 229.3 kB / 451.6 MB, free: 0.5898 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.6275/0.6275, allocations: 76.02 MB / 0.5594 GB, free: 14.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004372/0.0004373, allocations: 15.98 kB / 0.6216 GB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2643/0.2647, allocations: 53.21 MB / 0.6736 GB, free: 62.64 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.006408/0.2712, allocations: 6.896 MB / 0.6803 GB, free: 55.71 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003973/0.2752, allocations: 2.172 MB / 0.6825 GB, free: 53.55 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004827/0.2757, allocations: 47.69 kB / 0.6825 GB, free: 53.5 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004434/0.2762, allocations: 158.9 kB / 0.6827 GB, free: 53.34 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009344/0.2771, allocations: 465.4 kB / 0.6831 GB, free: 52.89 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009987/0.2781, allocations: 355.2 kB / 0.6834 GB, free: 52.54 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009062/0.2791, allocations: 1.204 MB / 0.6846 GB, free: 51.33 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009075/0.28, allocations: 0.6367 MB / 0.6852 GB, free: 50.66 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004483/0.2804, allocations: 370.3 kB / 0.6856 GB, free: 50.29 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006705/0.2811, allocations: 0.5607 MB / 0.6861 GB, free: 49.73 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.965e-05/0.2812, allocations: 36 kB / 0.6862 GB, free: 49.7 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004757/0.2817, allocations: 203.6 kB / 0.6864 GB, free: 49.5 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002978/0.282, allocations: 335.1 kB / 0.6867 GB, free: 49.17 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001558/0.2822, allocations: 165.3 kB / 0.6868 GB, free: 49 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007064/0.2829, allocations: 0.7599 MB / 0.6876 GB, free: 48.24 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.445e-06/0.283, allocations: 0 / 0.6876 GB, free: 48.24 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.836e-06/0.283, allocations: 0 / 0.6876 GB, free: 48.24 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.283, allocations: 0 / 0.6876 GB, free: 48.24 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.001856/0.2848, allocations: 0.992 MB / 0.6885 GB, free: 47.2 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.2849, allocations: 8.031 kB / 0.6886 GB, free: 47.19 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008281/0.2857, allocations: 134.9 kB / 0.6887 GB, free: 47.05 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.2868, allocations: 0.5601 MB / 0.6892 GB, free: 46.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.529e-05/0.2868, allocations: 57.25 kB / 0.6893 GB, free: 46.4 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001719/0.287, allocations: 67.94 kB / 0.6894 GB, free: 46.33 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001496/0.2885, allocations: 1.002 MB / 0.6903 GB, free: 45.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.832e-05/0.2886, allocations: 7.984 kB / 0.6903 GB, free: 45.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.194e-05/0.2887, allocations: 23.98 kB / 0.6904 GB, free: 45.27 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002053/0.2889, allocations: 73.95 kB / 0.6904 GB, free: 45.2 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001693/0.2906, allocations: 0.9641 MB / 0.6914 GB, free: 44.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005055/0.2956, allocations: 3.276 MB / 0.6946 GB, free: 40.83 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.2968, allocations: 0.6792 MB / 0.6952 GB, free: 40.13 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007408/0.2976, allocations: 419.5 kB / 0.6956 GB, free: 39.72 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.336e-05/0.2977, allocations: 17.44 kB / 0.6956 GB, free: 39.7 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.2977, allocations: 35.12 kB / 0.6957 GB, free: 39.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=73): time 3.803e-06/0.2977, allocations: 7.938 kB / 0.6957 GB, free: 39.65 MB / 346.7 MB Notification: Performance of matching and sorting (n=75): time 0.004137/0.3019, allocations: 2.416 MB / 0.6981 GB, free: 37.15 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.438e-05/0.3019, allocations: 85.67 kB / 0.6981 GB, free: 37.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004736/0.3024, allocations: 433.8 kB / 0.6985 GB, free: 36.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.726e-05/0.3025, allocations: 41.69 kB / 0.6986 GB, free: 36.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.3027, allocations: 367.7 kB / 0.6989 GB, free: 36.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/0.3028, allocations: 256.2 kB / 0.6992 GB, free: 35.95 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.609e-05/0.3029, allocations: 12 kB / 0.6992 GB, free: 35.93 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.732e-05/0.303, allocations: 378.8 kB / 0.6996 GB, free: 35.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005593/0.3036, allocations: 329.8 kB / 0.6999 GB, free: 35.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006404/0.3042, allocations: 0.5185 MB / 0.7004 GB, free: 34.65 MB / 346.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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.004495/0.3087, allocations: 1.377 MB / 0.7017 GB, free: 33.26 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.493e-06/0.3088, allocations: 4 kB / 0.7017 GB, free: 33.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001882/0.3107, allocations: 1.09 MB / 0.7028 GB, free: 32.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.3107, allocations: 8 kB / 0.7028 GB, free: 32.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.3107, allocations: 8 kB / 0.7028 GB, free: 32.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001633/0.3109, allocations: 36.83 kB / 0.7028 GB, free: 32.08 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008692/0.3118, allocations: 187.7 kB / 0.703 GB, free: 31.9 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/0.3128, allocations: 1.4 MB / 0.7044 GB, free: 30.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005223/0.3134, allocations: 35.97 kB / 0.7044 GB, free: 30.33 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.635e-05/0.3135, allocations: 31.98 kB / 0.7044 GB, free: 30.3 MB / 346.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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (95): * Single equations (assignments): 92 * Array equations: 2 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004477/0.3139, allocations: 277.5 kB / 0.7047 GB, free: 30.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.3141, allocations: 63.45 kB / 0.7048 GB, free: 29.95 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001572/0.3157, allocations: 0.9621 MB / 0.7057 GB, free: 28.96 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.881e-05/0.3157, allocations: 15.98 kB / 0.7057 GB, free: 28.95 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.176e-06/0.3158, allocations: 4 kB / 0.7057 GB, free: 28.95 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.3158, allocations: 3.984 kB / 0.7057 GB, free: 28.94 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003485/0.3193, allocations: 2.002 MB / 0.7077 GB, free: 26.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/0.3193, allocations: 7.938 kB / 0.7077 GB, free: 26.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007744/0.3201, allocations: 151.8 kB / 0.7078 GB, free: 26.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001262/0.3202, allocations: 33.44 kB / 0.7079 GB, free: 26.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.143e-05/0.3203, allocations: 31.98 kB / 0.7079 GB, free: 26.58 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009139/0.3212, allocations: 1.374 MB / 0.7092 GB, free: 25.07 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.3213, allocations: 7.938 kB / 0.7093 GB, free: 25.06 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002147/0.3234, allocations: 1.522 MB / 0.7107 GB, free: 23.44 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.3236, allocations: 144.2 kB / 0.7109 GB, free: 23.28 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.3237, allocations: 24 kB / 0.7109 GB, free: 23.26 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004518/0.3241, allocations: 43.91 kB / 0.7109 GB, free: 23.21 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.721e-05/0.3243, allocations: 60.45 kB / 0.711 GB, free: 23.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-05/0.3243, allocations: 28 kB / 0.711 GB, free: 23.13 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003379/0.3247, allocations: 295.1 kB / 0.7113 GB, free: 22.84 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.64e-07/0.3247, allocations: 0 / 0.7113 GB, free: 22.84 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008024/0.3255, allocations: 192 kB / 0.7115 GB, free: 22.65 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],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 (75): * Single equations (assignments): 71 * Array equations: 2 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002452/0.3258, allocations: 135.2 kB / 0.7116 GB, free: 22.51 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001531/0.3273, allocations: 0.9342 MB / 0.7125 GB, free: 21.57 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.3273, allocations: 0 / 0.7125 GB, free: 21.57 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007382/0.3281, allocations: 0.5154 MB / 0.713 GB, free: 21.04 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009585/0.3291, allocations: 137.3 kB / 0.7132 GB, free: 20.9 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003148/0.3322, allocations: 2.381 MB / 0.7155 GB, free: 18.44 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005363/0.3328, allocations: 1.028 MB / 0.7165 GB, free: 17.38 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000807/0.3336, allocations: 201.4 kB / 0.7167 GB, free: 17.18 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002202/0.3338, allocations: 59.42 kB / 0.7167 GB, free: 17.12 MB / 346.7 MB Notification: Performance of SimCode: time 2.107e-06/0.3338, allocations: 0 / 0.7167 GB, free: 17.12 MB / 346.7 MB Notification: Performance of Templates: time 0.01925/0.3531, allocations: 7.216 MB / 0.7238 GB, free: 9.98 MB / 346.7 MB