Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000956/0.0009559, allocations: 166.5 kB / 16.07 MB, free: 5.574 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.282/1.282, allocations: 205.4 MB / 222.2 MB, free: 9.02 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.0007502/0.0007502, allocations: 93 kB / 270.6 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1716/0.1716, allocations: 38.07 MB / 356.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003468/0.0003471, allocations: 8 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2286, allocations: 56.33 MB / 479.6 MB, free: 9.242 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.006022/0.2347, allocations: 6.553 MB / 486.2 MB, free: 4.828 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00312/0.2378, allocations: 1.764 MB / 487.9 MB, free: 3.562 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008244/0.2387, allocations: 47.44 kB / 488 MB, free: 3.543 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006666/0.2394, allocations: 158.3 kB / 488.1 MB, free: 3.461 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001365/0.2407, allocations: 444.3 kB / 488.6 MB, free: 3.223 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008102/0.2416, allocations: 231.9 kB / 488.8 MB, free: 3.109 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001456/0.243, allocations: 1.099 MB / 489.9 MB, free: 2.707 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003935/0.2434, allocations: 227.8 kB / 490.1 MB, free: 2.621 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006988/0.2442, allocations: 336.1 kB / 490.5 MB, free: 2.488 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007931/0.245, allocations: 459.8 kB / 490.9 MB, free: 2.34 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.658e-05/0.2451, allocations: 25.88 kB / 490.9 MB, free: 2.34 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001455/0.2452, allocations: 25.56 kB / 491 MB, free: 2.34 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002784/0.2455, allocations: 245.1 kB / 491.2 MB, free: 2.27 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003626/0.2459, allocations: 298.5 kB / 491.5 MB, free: 2.094 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005532/0.2464, allocations: 0.4896 MB / 492 MB, free: 1.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2465, allocations: 1.375 kB / 492 MB, free: 1.98 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2465, allocations: 0 / 492 MB, free: 1.98 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.2465, allocations: 4 kB / 492 MB, free: 1.977 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001474/0.248, allocations: 0.851 MB / 492.8 MB, free: 1.371 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.248, allocations: 9.938 kB / 492.8 MB, free: 1.371 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/0.2481, allocations: 67.72 kB / 492.9 MB, free: 1.336 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008114/0.249, allocations: 0.5151 MB / 493.4 MB, free: 0.9922 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.286e-05/0.249, allocations: 41.31 kB / 493.5 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.079e-05/0.2491, allocations: 52.7 kB / 493.5 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009812/0.2501, allocations: 0.6163 MB / 494.1 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.2501, allocations: 1.125 kB / 494.1 MB, free: 0.6562 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.636e-05/0.2502, allocations: 20.66 kB / 494.2 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/0.2503, allocations: 46.39 kB / 494.2 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008167/0.2511, allocations: 0.4983 MB / 494.7 MB, free: 484 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003387/0.2545, allocations: 2.243 MB / 496.9 MB, free: 15.03 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008505/0.2554, allocations: 497.8 kB / 497.4 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006219/0.256, allocations: 342.4 kB / 497.8 MB, free: 14.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.2561, allocations: 4.594 kB / 497.8 MB, free: 14.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.2561, allocations: 37.73 kB / 497.8 MB, free: 14.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 2.625e-06/0.2561, allocations: 0 / 497.8 MB, free: 14.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.003568/0.2597, allocations: 1.741 MB / 499.5 MB, free: 13.75 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/0.2598, allocations: 90.53 kB / 499.6 MB, free: 13.65 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005521/0.2603, allocations: 426.1 kB / 0.4883 GB, free: 13.43 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.597e-05/0.2604, allocations: 30.98 kB / 0.4884 GB, free: 13.39 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002066/0.2606, allocations: 300.1 kB / 0.4886 GB, free: 13.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.2608, allocations: 161.4 kB / 0.4888 GB, free: 12.98 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.798e-05/0.2608, allocations: 11.16 kB / 0.4888 GB, free: 12.98 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.261, allocations: 358.9 kB / 0.4891 GB, free: 12.63 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003119/0.2613, allocations: 187.6 kB / 0.4893 GB, free: 12.54 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003843/0.2617, allocations: 312.3 kB / 0.4896 GB, free: 12.29 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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002614/0.2643, allocations: 1.25 MB / 0.4908 GB, free: 11.53 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.678e-06/0.2643, allocations: 1.656 kB / 0.4908 GB, free: 11.53 MB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001236/0.2656, allocations: 0.7056 MB / 0.4915 GB, free: 11.15 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.398e-05/0.2657, allocations: 7.25 kB / 0.4915 GB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.2657, allocations: 6.891 kB / 0.4915 GB, free: 11.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004202/0.2661, allocations: 139.9 kB / 0.4917 GB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004692/0.2666, allocations: 108.1 kB / 0.4918 GB, free: 11.06 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002884/0.2695, allocations: 2.378 MB / 0.4941 GB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004451/0.27, allocations: 31.11 kB / 0.4941 GB, free: 9.066 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.004e-05/0.27, allocations: 19.12 kB / 0.4942 GB, free: 9.062 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[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.0004116/0.2704, allocations: 228.2 kB / 0.4944 GB, free: 8.879 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.2706, allocations: 51.47 kB / 0.4944 GB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001203/0.2718, allocations: 0.6533 MB / 0.4951 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.154e-06/0.2718, allocations: 6.719 kB / 0.4951 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.2718, allocations: 1.406 kB / 0.4951 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.2718, allocations: 5.172 kB / 0.4951 GB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002359/0.2742, allocations: 1.368 MB / 0.4964 GB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.303e-06/0.2742, allocations: 2.656 kB / 0.4964 GB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003512/0.2746, allocations: 78.77 kB / 0.4965 GB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004108/0.275, allocations: 148.5 kB / 0.4966 GB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.385e-05/0.2751, allocations: 12.12 kB / 0.4966 GB, free: 7.395 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002794/0.2779, allocations: 2.365 MB / 0.4989 GB, free: 5.43 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.2779, allocations: 6.344 kB / 0.499 GB, free: 5.426 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00152/0.2794, allocations: 0.9957 MB / 0.4999 GB, free: 4.805 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001842/0.2796, allocations: 120.8 kB / 0.5 GB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.588e-05/0.2797, allocations: 13.06 kB / 0.5001 GB, free: 4.676 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.28, allocations: 19.78 kB / 0.5001 GB, free: 4.664 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.751e-05/0.2801, allocations: 37.88 kB / 0.5001 GB, free: 4.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-05/0.2801, allocations: 21.62 kB / 0.5001 GB, free: 4.633 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003455/0.2805, allocations: 285.8 kB / 0.5004 GB, free: 4.457 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2805, allocations: 0 / 0.5004 GB, free: 4.457 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006604/0.2811, allocations: 147.6 kB / 0.5005 GB, free: 4.438 MB / 330.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.0001364/0.2813, allocations: 111.8 kB / 0.5007 GB, free: 4.336 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001193/0.2825, allocations: 0.6562 MB / 0.5013 GB, free: 3.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.2825, allocations: 4 kB / 0.5013 GB, free: 3.766 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006762/0.2832, allocations: 443 kB / 0.5017 GB, free: 3.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008619/0.2841, allocations: 126.4 kB / 0.5018 GB, free: 3.195 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.2865, allocations: 1.633 MB / 0.5034 GB, free: 1.516 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005396/0.2871, allocations: 0.9334 MB / 0.5043 GB, free: 0.5547 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000172/0.2873, allocations: 43.42 kB / 0.5044 GB, free: 0.5117 MB / 330.7 MB Notification: Performance of SimCode: time 7.02e-07/0.2873, allocations: 0 / 0.5044 GB, free: 0.5117 MB / 330.7 MB Notification: Performance of Templates: time 0.01262/0.2999, allocations: 9.087 MB / 0.5133 GB, free: 7.422 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)