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.001567/0.001571, allocations: 189.9 kB / 15.77 MB, free: 6.352 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.953/1.953, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001106/0.001106, allocations: 94.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2745/0.2745, allocations: 38.05 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006186/0.0006186, allocations: 12 kB / 422.7 MB, free: 26.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1091, allocations: 56.34 MB / 479 MB, free: 2.051 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.01009/0.1193, allocations: 5.975 MB / 485 MB, free: 12.05 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0049/0.1242, allocations: 1.849 MB / 486.9 MB, free: 10.19 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008258/0.1251, allocations: 43.69 kB / 486.9 MB, free: 10.15 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007411/0.1259, allocations: 147.1 kB / 487 MB, free: 10 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001593/0.1275, allocations: 327 kB / 487.4 MB, free: 9.684 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.1287, allocations: 279.5 kB / 487.6 MB, free: 9.41 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001654/0.1304, allocations: 0.7018 MB / 488.3 MB, free: 8.707 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006026/0.1311, allocations: 259.7 kB / 488.6 MB, free: 8.457 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001132/0.1322, allocations: 414.7 kB / 489 MB, free: 8.051 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001047/0.1333, allocations: 402.8 kB / 489.4 MB, free: 7.656 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001971/0.1336, allocations: 36 kB / 489.4 MB, free: 7.621 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00024/0.1338, allocations: 40 kB / 489.5 MB, free: 7.582 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005135/0.1343, allocations: 275.3 kB / 489.7 MB, free: 7.312 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003304/0.1347, allocations: 149.4 kB / 489.9 MB, free: 7.16 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001352/0.1361, allocations: 0.8066 MB / 490.7 MB, free: 6.352 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1361, allocations: 0 / 490.7 MB, free: 6.352 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.1361, allocations: 4 kB / 490.7 MB, free: 6.348 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.834e-05/0.1362, allocations: 0 / 490.7 MB, free: 6.348 MB / 330.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.00404/0.1402, allocations: 1.086 MB / 491.8 MB, free: 5.195 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.1403, allocations: 11.98 kB / 491.8 MB, free: 5.184 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004134/0.1407, allocations: 79.16 kB / 491.9 MB, free: 5.105 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002272/0.143, allocations: 0.615 MB / 492.5 MB, free: 4.449 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007971/0.1438, allocations: 346.8 kB / 492.8 MB, free: 4.062 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002889/0.1442, allocations: 63.98 kB / 492.9 MB, free: 4 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004437/0.1486, allocations: 1.093 MB / 494 MB, free: 2.871 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.115e-05/0.1487, allocations: 0 / 494 MB, free: 2.871 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000138/0.1488, allocations: 27.95 kB / 494 MB, free: 2.844 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/0.1489, allocations: 12 kB / 494 MB, free: 2.832 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005625/0.1545, allocations: 1.194 MB / 495.2 MB, free: 1.637 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00936/0.1639, allocations: 3.275 MB / 498.5 MB, free: 14.26 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004479/0.1685, allocations: 0.851 MB / 499.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001048/0.1686, allocations: 8.375 kB / 499.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003072/0.1717, allocations: 0.6774 MB / 0.4883 GB, free: 12.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.268e-06/0.1717, allocations: 0 / 0.4883 GB, free: 12.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.008397/0.1802, allocations: 1.557 MB / 0.4898 GB, free: 11.12 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.1803, allocations: 140.5 kB / 0.49 GB, free: 10.95 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000674/0.181, allocations: 389.8 kB / 0.4903 GB, free: 10.56 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001852/0.1812, allocations: 37.7 kB / 0.4904 GB, free: 10.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003156/0.1815, allocations: 342.7 kB / 0.4907 GB, free: 10.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002975/0.1818, allocations: 165.8 kB / 0.4908 GB, free: 10.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.22e-05/0.1819, allocations: 12 kB / 0.4909 GB, free: 10 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.1821, allocations: 334.8 kB / 0.4912 GB, free: 9.668 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002172/0.1843, allocations: 492.9 kB / 0.4916 GB, free: 9.184 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002335/0.1867, allocations: 0.5952 MB / 0.4922 GB, free: 8.543 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002196/0.1889, allocations: 0.4918 MB / 0.4927 GB, free: 8.051 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.538e-06/0.189, allocations: 0 / 0.4927 GB, free: 8.051 MB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004958/0.194, allocations: 1.137 MB / 0.4938 GB, free: 6.898 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001088/0.1941, allocations: 49.69 kB / 0.4939 GB, free: 6.844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.1941, allocations: 4 kB / 0.4939 GB, free: 6.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.771e-05/0.1942, allocations: 7.984 kB / 0.4939 GB, free: 6.832 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01261/0.2068, allocations: 1.588 MB / 0.4954 GB, free: 5.242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0158/0.2227, allocations: 4.973 MB / 0.5003 GB, free: 4 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.2241, allocations: 143.5 kB / 0.5004 GB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001962/0.2243, allocations: 39.97 kB / 0.5005 GB, free: 15.82 MB / 362.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.0006324/0.2249, allocations: 243.4 kB / 0.5007 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001819/0.2251, allocations: 43.44 kB / 0.5007 GB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005604/0.2308, allocations: 1.121 MB / 0.5018 GB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.878e-05/0.2308, allocations: 15.92 kB / 0.5018 GB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.2309, allocations: 4 kB / 0.5018 GB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.416e-05/0.2309, allocations: 0 / 0.5018 GB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008135/0.239, allocations: 2.199 MB / 0.504 GB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-05/0.2391, allocations: 4 kB / 0.504 GB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01557/0.2547, allocations: 1.846 MB / 0.5058 GB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.605e-05/0.2547, allocations: 4 kB / 0.5058 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001615/0.2549, allocations: 15.98 kB / 0.5058 GB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-05/0.2549, allocations: 4 kB / 0.5058 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.2549, allocations: 7.938 kB / 0.5058 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008638/0.2636, allocations: 1.966 MB / 0.5078 GB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006015/0.2642, allocations: 212.3 kB / 0.508 GB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002172/0.2645, allocations: 31.98 kB / 0.508 GB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001445/0.2659, allocations: 115.9 kB / 0.5081 GB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000477/0.2665, allocations: 103.7 kB / 0.5082 GB, free: 7.719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.781e-05/0.2666, allocations: 19.98 kB / 0.5082 GB, free: 7.699 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004808/0.2671, allocations: 259.2 kB / 0.5085 GB, free: 7.449 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.2671, allocations: 0 / 0.5085 GB, free: 7.449 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001053/0.2682, allocations: 183.6 kB / 0.5086 GB, free: 7.27 MB / 362.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) * 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.0003099/0.2685, allocations: 127 kB / 0.5088 GB, free: 7.137 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01646/0.285, allocations: 2.64 MB / 0.5113 GB, free: 4.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/0.285, allocations: 0 / 0.5113 GB, free: 4.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007587/0.2926, allocations: 1.148 MB / 0.5125 GB, free: 3.332 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00115/0.2938, allocations: 121.5 kB / 0.5126 GB, free: 3.215 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006755/0.3006, allocations: 1.933 MB / 0.5145 GB, free: 1.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007315/0.3014, allocations: 0.9371 MB / 0.5154 GB, free: 276 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005011/0.3019, allocations: 51.42 kB / 0.5154 GB, free: 224 kB / 362.7 MB Notification: Performance of SimCode: time 1.263e-06/0.3019, allocations: 0 / 0.5154 GB, free: 224 kB / 362.7 MB Notification: Performance of Templates: time 0.3145/0.6165, allocations: 11.03 MB / 0.5262 GB, free: 50.4 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)