Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001046/0.001046, allocations: 173.2 kB / 16.07 MB, free: 5.715 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.264/1.264, allocations: 205.4 MB / 222.2 MB, free: 9.023 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.0007159/0.0007159, allocations: 79.92 kB / 270.6 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1738/0.1738, allocations: 38.08 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003739/0.000374, allocations: 12 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.2212, allocations: 56.32 MB / 479.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.005623/0.2268, allocations: 6.27 MB / 485.9 MB, free: 5.039 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002862/0.2297, allocations: 1.839 MB / 487.7 MB, free: 3.738 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006217/0.2304, allocations: 43.62 kB / 487.8 MB, free: 3.719 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005266/0.2309, allocations: 151.3 kB / 487.9 MB, free: 3.641 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001023/0.232, allocations: 390.6 kB / 488.3 MB, free: 3.43 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008151/0.2328, allocations: 286.3 kB / 488.6 MB, free: 3.305 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001614/0.2344, allocations: 1.373 MB / 490 MB, free: 2.781 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004344/0.2349, allocations: 312.7 kB / 490.3 MB, free: 2.66 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007923/0.2357, allocations: 438.1 kB / 490.7 MB, free: 2.508 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008211/0.2365, allocations: 0.5095 MB / 491.2 MB, free: 2.348 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001173/0.2366, allocations: 39.5 kB / 491.2 MB, free: 2.348 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001585/0.2368, allocations: 38.47 kB / 491.3 MB, free: 2.348 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003843/0.2372, allocations: 299.1 kB / 491.6 MB, free: 2.258 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00042/0.2376, allocations: 363.7 kB / 491.9 MB, free: 2.055 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008857/0.2385, allocations: 0.8006 MB / 492.7 MB, free: 1.898 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2385, allocations: 1.281 kB / 492.7 MB, free: 1.898 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.963e-06/0.2385, allocations: 0 / 492.7 MB, free: 1.898 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.629e-05/0.2386, allocations: 4 kB / 492.7 MB, free: 1.895 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002227/0.2408, allocations: 1.08 MB / 493.8 MB, free: 1.211 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.2408, allocations: 13.27 kB / 493.8 MB, free: 1.207 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000199/0.241, allocations: 84.34 kB / 493.9 MB, free: 1.172 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/0.2422, allocations: 0.6238 MB / 494.5 MB, free: 0.7852 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003797/0.2426, allocations: 349.4 kB / 494.9 MB, free: 0.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.2428, allocations: 64.44 kB / 494.9 MB, free: 488 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002289/0.2451, allocations: 1.104 MB / 496 MB, free: 60 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.2451, allocations: 1.797 kB / 496 MB, free: 60 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.827e-05/0.2452, allocations: 21.95 kB / 496.1 MB, free: 44 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.669e-05/0.2452, allocations: 14.97 kB / 496.1 MB, free: 44 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002948/0.2482, allocations: 1.2 MB / 497.3 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005187/0.2534, allocations: 3.26 MB / 0.4888 GB, free: 13.22 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002168/0.2556, allocations: 0.8322 MB / 0.4896 GB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/0.257, allocations: 0.5862 MB / 0.4902 GB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.701e-05/0.2571, allocations: 17.52 kB / 0.4902 GB, free: 12.53 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001501/0.2586, allocations: 0.6841 MB / 0.4909 GB, free: 12.12 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 4.138e-06/0.2586, allocations: 1.219 kB / 0.4909 GB, free: 12.12 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.003996/0.2626, allocations: 1.563 MB / 0.4924 GB, free: 11.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.475e-05/0.2627, allocations: 136.9 kB / 0.4925 GB, free: 11.25 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004783/0.2632, allocations: 393 kB / 0.4929 GB, free: 10.99 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.403e-05/0.2633, allocations: 40.42 kB / 0.4929 GB, free: 10.95 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002174/0.2635, allocations: 297.7 kB / 0.4932 GB, free: 10.69 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.2637, allocations: 163.5 kB / 0.4934 GB, free: 10.55 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.655e-05/0.2638, allocations: 11.5 kB / 0.4934 GB, free: 10.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.2639, allocations: 358.7 kB / 0.4937 GB, free: 10.19 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.265, allocations: 0.4954 MB / 0.4942 GB, free: 9.957 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/0.2661, allocations: 0.5996 MB / 0.4948 GB, free: 9.605 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002018/0.2681, allocations: 0.9878 MB / 0.4958 GB, free: 9.062 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.2681, allocations: 1.375 kB / 0.4958 GB, free: 9.062 MB / 330.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002429/0.2706, allocations: 1.178 MB / 0.4969 GB, free: 8.496 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.988e-05/0.2706, allocations: 59.92 kB / 0.497 GB, free: 8.445 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.2707, allocations: 3.938 kB / 0.497 GB, free: 8.445 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.2707, allocations: 4.781 kB / 0.497 GB, free: 8.445 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005872/0.2766, allocations: 1.587 MB / 0.4985 GB, free: 7.039 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007353/0.2839, allocations: 4.832 MB / 0.5033 GB, free: 1.941 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007913/0.2848, allocations: 143.5 kB / 0.5034 GB, free: 1.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-05/0.2849, allocations: 39.97 kB / 0.5034 GB, free: 1.762 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004426/0.2853, allocations: 247.3 kB / 0.5037 GB, free: 1.508 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.55e-05/0.2854, allocations: 43.44 kB / 0.5037 GB, free: 1.465 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002661/0.2881, allocations: 1.114 MB / 0.5048 GB, free: 352 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.2881, allocations: 4 kB / 0.5048 GB, free: 348 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2881, allocations: 4 kB / 0.5048 GB, free: 344 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.2882, allocations: 7.938 kB / 0.5048 GB, free: 336 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004147/0.2923, allocations: 2.242 MB / 0.507 GB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.217e-06/0.2924, allocations: 8.172 kB / 0.507 GB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006905/0.2993, allocations: 1.838 MB / 0.5088 GB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.108e-05/0.2993, allocations: 4 kB / 0.5088 GB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/0.2994, allocations: 15.98 kB / 0.5088 GB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.753e-06/0.2994, allocations: 8 kB / 0.5088 GB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/0.2995, allocations: 7.938 kB / 0.5088 GB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004071/0.3035, allocations: 1.887 MB / 0.5107 GB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003534/0.3039, allocations: 208.4 kB / 0.5109 GB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.304, allocations: 27.98 kB / 0.5109 GB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006879/0.3047, allocations: 119.9 kB / 0.511 GB, free: 9.832 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000227/0.305, allocations: 99.78 kB / 0.5111 GB, free: 9.734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.96e-05/0.305, allocations: 16 kB / 0.5111 GB, free: 9.719 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003119/0.3053, allocations: 267.1 kB / 0.5114 GB, free: 9.461 MB / 346.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3054, allocations: 0 / 0.5114 GB, free: 9.461 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000709/0.3061, allocations: 179.5 kB / 0.5116 GB, free: 9.285 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001734/0.3063, allocations: 126.5 kB / 0.5117 GB, free: 9.156 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007508/0.3138, allocations: 2.641 MB / 0.5143 GB, free: 6.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/0.3138, allocations: 3.938 kB / 0.5143 GB, free: 6.496 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003467/0.3173, allocations: 1.159 MB / 0.5154 GB, free: 5.336 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009763/0.3183, allocations: 130 kB / 0.5155 GB, free: 5.211 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003572/0.3219, allocations: 1.938 MB / 0.5174 GB, free: 3.223 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005126/0.3224, allocations: 0.9293 MB / 0.5183 GB, free: 2.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002999/0.3227, allocations: 51.42 kB / 0.5184 GB, free: 2.219 MB / 346.7 MB Notification: Performance of SimCode: time 2.023e-06/0.3227, allocations: 0 / 0.5184 GB, free: 2.219 MB / 346.7 MB Notification: Performance of Templates: time 0.01466/0.3374, allocations: 11.3 MB / 0.5294 GB, free: 6.91 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)