Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001122, allocations: 104.7 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 196 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.472/1.472, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1704/0.1704, allocations: 37.98 MB / 309.2 MB, free: 5.969 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002515/0.002515, allocations: 67.91 kB / 431.9 MB, free: 15.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1412, allocations: 55.24 MB / 487.1 MB, free: 8.488 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.008454/0.1497, allocations: 5.963 MB / 493.1 MB, free: 2.488 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002822/0.1525, allocations: 1.594 MB / 494.7 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004741/0.1531, allocations: 27.88 kB / 494.7 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005462/0.1536, allocations: 142.9 kB / 494.8 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009714/0.1546, allocations: 358.1 kB / 495.2 MB, free: 376 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005974/0.1552, allocations: 319.5 kB / 495.5 MB, free: 56 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001309/0.1566, allocations: 1.34 MB / 496.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004494/0.157, allocations: 368.6 kB / 497.2 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007597/0.1578, allocations: 0.5412 MB / 497.7 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007962/0.1586, allocations: 0.5491 MB / 498.3 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.1588, allocations: 92 kB / 498.4 MB, free: 13.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001572/0.1589, allocations: 92 kB / 498.5 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000335/0.1593, allocations: 343.2 kB / 498.8 MB, free: 12.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003674/0.1596, allocations: 414.2 kB / 499.2 MB, free: 12.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000988/0.1606, allocations: 1.063 MB / 0.4885 GB, free: 11.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.1607, allocations: 4 kB / 0.4885 GB, free: 11.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1607, allocations: 0 / 0.4885 GB, free: 11.27 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.251e-05/0.1607, allocations: 0 / 0.4885 GB, free: 11.27 MB / 382.1 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.002615/0.1633, allocations: 1.196 MB / 0.4897 GB, free: 10 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.1634, allocations: 11.89 kB / 0.4897 GB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001735/0.1635, allocations: 80.09 kB / 0.4898 GB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001252/0.1648, allocations: 0.6589 MB / 0.4904 GB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004208/0.1652, allocations: 335.4 kB / 0.4908 GB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.1654, allocations: 63.92 kB / 0.4908 GB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002109/0.1675, allocations: 1.042 MB / 0.4918 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.1675, allocations: 3.938 kB / 0.4918 GB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.221e-05/0.1676, allocations: 24 kB / 0.4919 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.1676, allocations: 12 kB / 0.4919 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002372/0.17, allocations: 1.093 MB / 0.4929 GB, free: 6.566 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004755/0.1748, allocations: 3.209 MB / 0.4961 GB, free: 3.258 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001984/0.1768, allocations: 0.7451 MB / 0.4968 GB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/0.178, allocations: 0.5299 MB / 0.4973 GB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.925e-05/0.178, allocations: 8.438 kB / 0.4973 GB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001352/0.1794, allocations: 0.6225 MB / 0.4979 GB, free: 1.301 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.996e-06/0.1794, allocations: 0 / 0.4979 GB, free: 1.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003551/0.1829, allocations: 1.374 MB / 0.4993 GB, free: 15.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.185e-05/0.183, allocations: 140.5 kB / 0.4994 GB, free: 15.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000444/0.1835, allocations: 393.8 kB / 0.4998 GB, free: 15.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.173e-05/0.1836, allocations: 37.7 kB / 0.4998 GB, free: 15.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002344/0.1838, allocations: 292.3 kB / 0.5001 GB, free: 15.03 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001535/0.184, allocations: 161.7 kB / 0.5003 GB, free: 14.87 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002022/0.1842, allocations: 114.2 kB / 0.5004 GB, free: 14.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.1844, allocations: 370.8 kB / 0.5007 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009451/0.1853, allocations: 448.9 kB / 0.5012 GB, free: 13.94 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009721/0.1863, allocations: 0.5561 MB / 0.5017 GB, free: 13.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001778/0.1881, allocations: 0.8934 MB / 0.5026 GB, free: 12.4 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.1881, allocations: 0 / 0.5026 GB, free: 12.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002145/0.1902, allocations: 1.085 MB / 0.5036 GB, free: 11.3 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.941e-05/0.1903, allocations: 53.62 kB / 0.5037 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.1903, allocations: 4 kB / 0.5037 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.1904, allocations: 8.219 kB / 0.5037 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004963/0.1953, allocations: 1.108 MB / 0.5048 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007055/0.2024, allocations: 4.705 MB / 0.5094 GB, free: 5.141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007299/0.2031, allocations: 103.4 kB / 0.5095 GB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-05/0.2032, allocations: 35.97 kB / 0.5095 GB, free: 5.004 MB / 398.1 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 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1) * 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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003935/0.2036, allocations: 259.5 kB / 0.5097 GB, free: 4.742 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.647e-05/0.2037, allocations: 51.38 kB / 0.5098 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002367/0.2061, allocations: 0.9848 MB / 0.5108 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/0.2061, allocations: 8 kB / 0.5108 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-06/0.2061, allocations: 0 / 0.5108 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.2062, allocations: 11.97 kB / 0.5108 GB, free: 3.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003699/0.2099, allocations: 2.13 MB / 0.5129 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.2099, allocations: 0 / 0.5129 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006017/0.2159, allocations: 1.287 MB / 0.5141 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-06/0.2159, allocations: 4 kB / 0.5141 GB, free: 180 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.435e-05/0.216, allocations: 15.98 kB / 0.5141 GB, free: 164 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.053e-06/0.216, allocations: 11.98 kB / 0.5141 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.216, allocations: 4 kB / 0.5141 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003733/0.2197, allocations: 1.693 MB / 0.5158 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002927/0.2201, allocations: 196.5 kB / 0.516 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/0.2202, allocations: 31.98 kB / 0.516 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006303/0.2208, allocations: 91.88 kB / 0.5161 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002236/0.221, allocations: 95.78 kB / 0.5162 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.642e-05/0.2211, allocations: 19.98 kB / 0.5162 GB, free: 13.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002975/0.2214, allocations: 267.2 kB / 0.5165 GB, free: 13.7 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.462e-06/0.2214, allocations: 0 / 0.5165 GB, free: 13.7 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006269/0.222, allocations: 187.5 kB / 0.5167 GB, free: 13.52 MB / 414.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001802/0.2222, allocations: 123.2 kB / 0.5168 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006823/0.2291, allocations: 2.078 MB / 0.5188 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.2291, allocations: 0 / 0.5188 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003258/0.2323, allocations: 0.964 MB / 0.5197 GB, free: 10.33 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008141/0.2332, allocations: 149.2 kB / 0.5199 GB, free: 10.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003589/0.2368, allocations: 1.581 MB / 0.5214 GB, free: 8.555 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005425/0.2373, allocations: 0.9328 MB / 0.5223 GB, free: 7.594 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005019/0.2378, allocations: 160.6 kB / 0.5225 GB, free: 7.434 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001947/0.2381, allocations: 47.42 kB / 0.5225 GB, free: 7.387 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2381, allocations: 0 / 0.5225 GB, free: 7.387 MB / 414.1 MB Notification: Performance of Templates: time 0.2671/0.5052, allocations: 8.919 MB / 0.5312 GB, free: 52.45 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)