Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009374/0.0009374, allocations: 170.5 kB / 16.07 MB, free: 5.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.189/1.189, allocations: 205.4 MB / 222.2 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007139/0.000714, allocations: 84.92 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1602/0.1602, allocations: 38.07 MB / 356.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003361/0.0003363, allocations: 12 kB / 423.3 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2256, allocations: 56.32 MB / 479.6 MB, free: 9.219 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.005874/0.2315, allocations: 6.927 MB / 486.6 MB, free: 4.543 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003313/0.2349, allocations: 2.177 MB / 488.7 MB, free: 3 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005104/0.2354, allocations: 48.81 kB / 488.8 MB, free: 2.98 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004688/0.2359, allocations: 177.1 kB / 489 MB, free: 2.891 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009825/0.2369, allocations: 474.8 kB / 489.4 MB, free: 2.629 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.2379, allocations: 368.2 kB / 489.8 MB, free: 2.469 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.2392, allocations: 1.205 MB / 491 MB, free: 2.023 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009648/0.2402, allocations: 0.6907 MB / 491.7 MB, free: 1.605 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006256/0.2408, allocations: 375.6 kB / 492 MB, free: 1.461 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007521/0.2416, allocations: 0.5566 MB / 492.6 MB, free: 1.293 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.449e-05/0.2417, allocations: 34.31 kB / 492.6 MB, free: 1.293 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005613/0.2423, allocations: 256.4 kB / 492.9 MB, free: 1.227 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003688/0.2426, allocations: 338.8 kB / 493.2 MB, free: 1.133 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003621/0.243, allocations: 392.1 kB / 493.6 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008661/0.2439, allocations: 0.7479 MB / 494.3 MB, free: 0.75 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2439, allocations: 0 / 494.3 MB, free: 0.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2439, allocations: 0 / 494.3 MB, free: 0.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.2439, allocations: 0 / 494.3 MB, free: 0.75 MB / 314.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.001728/0.2457, allocations: 0.9892 MB / 495.3 MB, free: 80 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.2457, allocations: 12.25 kB / 495.3 MB, free: 76 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006598/0.2464, allocations: 130.1 kB / 495.5 MB, free: 28 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/0.2474, allocations: 0.5667 MB / 496 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.992e-05/0.2475, allocations: 53.09 kB / 496.1 MB, free: 15.63 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001639/0.2477, allocations: 79.36 kB / 496.2 MB, free: 15.6 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001579/0.2493, allocations: 1.009 MB / 497.2 MB, free: 15.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.2493, allocations: 1 kB / 497.2 MB, free: 15.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.606e-05/0.2494, allocations: 22.19 kB / 497.2 MB, free: 15.16 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002048/0.2496, allocations: 76.83 kB / 497.3 MB, free: 15.15 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/0.2512, allocations: 0.9712 MB / 498.2 MB, free: 14.85 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004775/0.256, allocations: 3.292 MB / 0.4898 GB, free: 12.41 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.257, allocations: 0.6783 MB / 0.4904 GB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006079/0.2577, allocations: 429.8 kB / 0.4909 GB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.308e-05/0.2577, allocations: 16.2 kB / 0.4909 GB, free: 11.83 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.2578, allocations: 38.41 kB / 0.4909 GB, free: 11.79 MB / 330.7 MB Notification: Performance of pre-optimization done (n=73): time 3.036e-06/0.2578, allocations: 0 / 0.4909 GB, free: 11.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=75): time 0.003838/0.2616, allocations: 2.426 MB / 0.4933 GB, free: 10.3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.809e-05/0.2617, allocations: 84.42 kB / 0.4934 GB, free: 10.2 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004894/0.2622, allocations: 442.2 kB / 0.4938 GB, free: 9.934 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.997e-05/0.2622, allocations: 44.8 kB / 0.4938 GB, free: 9.887 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000217/0.2625, allocations: 358.3 kB / 0.4942 GB, free: 9.566 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002236/0.2627, allocations: 260.1 kB / 0.4944 GB, free: 9.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.24e-05/0.2627, allocations: 15.19 kB / 0.4944 GB, free: 9.328 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.2629, allocations: 379.5 kB / 0.4948 GB, free: 8.965 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005083/0.2634, allocations: 336 kB / 0.4951 GB, free: 8.812 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006034/0.264, allocations: 0.5221 MB / 0.4956 GB, free: 8.422 MB / 330.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.00504/0.2691, allocations: 2.221 MB / 0.4978 GB, free: 7.152 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/0.2691, allocations: 1.531 kB / 0.4978 GB, free: 7.152 MB / 330.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00177/0.2709, allocations: 1.095 MB / 0.4989 GB, free: 6.547 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.2709, allocations: 10.06 kB / 0.4989 GB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.766e-05/0.271, allocations: 4.625 kB / 0.4989 GB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001624/0.2711, allocations: 41.22 kB / 0.4989 GB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007524/0.2719, allocations: 195.6 kB / 0.4991 GB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001068/0.273, allocations: 1.393 MB / 0.5005 GB, free: 4.777 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004979/0.2735, allocations: 40.03 kB / 0.5005 GB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.815e-05/0.2736, allocations: 35.98 kB / 0.5005 GB, free: 4.703 MB / 330.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.0004283/0.274, allocations: 273.5 kB / 0.5008 GB, free: 4.426 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.2741, allocations: 63.19 kB / 0.5009 GB, free: 4.363 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001464/0.2756, allocations: 0.9661 MB / 0.5018 GB, free: 3.367 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.511e-05/0.2756, allocations: 15.98 kB / 0.5018 GB, free: 3.352 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.2756, allocations: 0 / 0.5018 GB, free: 3.352 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.2757, allocations: 3.984 kB / 0.5018 GB, free: 3.348 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003371/0.279, allocations: 2.001 MB / 0.5038 GB, free: 1.219 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.2791, allocations: 8.125 kB / 0.5038 GB, free: 1.211 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006375/0.2797, allocations: 151.7 kB / 0.5039 GB, free: 1.062 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001063/0.2798, allocations: 36.83 kB / 0.504 GB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.948e-05/0.2799, allocations: 27.94 kB / 0.504 GB, free: 0.9961 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009915/0.2809, allocations: 1.386 MB / 0.5053 GB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/0.2809, allocations: 11.92 kB / 0.5053 GB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/0.2828, allocations: 1.525 MB / 0.5068 GB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001804/0.283, allocations: 140.2 kB / 0.507 GB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.2831, allocations: 24.06 kB / 0.507 GB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003713/0.2835, allocations: 35.95 kB / 0.507 GB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.2836, allocations: 60.36 kB / 0.5071 GB, free: 13.56 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.885e-05/0.2837, allocations: 28 kB / 0.5071 GB, free: 13.54 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000352/0.284, allocations: 295.1 kB / 0.5074 GB, free: 13.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.284, allocations: 0 / 0.5074 GB, free: 13.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007463/0.2848, allocations: 184 kB / 0.5076 GB, free: 13.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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.0002627/0.2851, allocations: 158.9 kB / 0.5077 GB, free: 12.9 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001477/0.2866, allocations: 0.9473 MB / 0.5086 GB, free: 11.94 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.2866, allocations: 0 / 0.5086 GB, free: 11.94 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006918/0.2873, allocations: 0.5213 MB / 0.5092 GB, free: 11.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/0.2883, allocations: 136.3 kB / 0.5093 GB, free: 11.28 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003148/0.2915, allocations: 2.437 MB / 0.5117 GB, free: 8.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006062/0.2921, allocations: 1.013 MB / 0.5127 GB, free: 7.711 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002456/0.2924, allocations: 67.42 kB / 0.5127 GB, free: 7.645 MB / 346.7 MB Notification: Performance of SimCode: time 7.51e-07/0.2924, allocations: 0 / 0.5127 GB, free: 7.645 MB / 346.7 MB Notification: Performance of Templates: time 0.01624/0.3086, allocations: 11.9 MB / 0.5243 GB, free: 11.75 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)