Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.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.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 109.1 kB / 17.06 MB, free: 6.023 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.001481/0.001482, allocations: 191 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.607/1.607, 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.1779/0.1779, allocations: 37.99 MB / 309.2 MB, free: 5.961 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.001421/0.001421, allocations: 67.91 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1536, allocations: 55.24 MB / 487.1 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.01015/0.1638, allocations: 6.925 MB / 494 MB, free: 1.383 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004721/0.1686, allocations: 2.073 MB / 496.1 MB, free: 15.3 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006038/0.1692, allocations: 27.88 kB / 496.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001588/0.1708, allocations: 0.4981 MB / 496.6 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001624/0.1725, allocations: 0.5522 MB / 497.2 MB, free: 14.22 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.1736, allocations: 403.2 kB / 497.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001457/0.1751, allocations: 1.395 MB / 499 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001002/0.1761, allocations: 0.8146 MB / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009535/0.1771, allocations: 0.6423 MB / 0.4887 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009117/0.178, allocations: 0.6775 MB / 0.4894 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001761/0.1782, allocations: 100 kB / 0.4895 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0011/0.1793, allocations: 0.511 MB / 0.49 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006992/0.18, allocations: 0.5028 MB / 0.4905 GB, free: 9.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000814/0.1808, allocations: 0.5677 MB / 0.491 GB, free: 8.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002443/0.1833, allocations: 1.523 MB / 0.4925 GB, free: 7.066 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1833, allocations: 0 / 0.4925 GB, free: 7.066 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.1833, allocations: 4 kB / 0.4925 GB, free: 7.062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.978e-05/0.1833, allocations: 0 / 0.4925 GB, free: 7.062 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.004026/0.1874, allocations: 1.571 MB / 0.494 GB, free: 5.414 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.854e-05/0.1875, allocations: 15.89 kB / 0.4941 GB, free: 5.398 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008899/0.1884, allocations: 163.5 kB / 0.4942 GB, free: 5.238 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001452/0.1898, allocations: 0.7254 MB / 0.4949 GB, free: 4.473 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002149/0.1901, allocations: 179.6 kB / 0.4951 GB, free: 4.281 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002755/0.1903, allocations: 115.7 kB / 0.4952 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002603/0.193, allocations: 1.532 MB / 0.4967 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.536e-05/0.193, allocations: 0 / 0.4967 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/0.1931, allocations: 43.97 kB / 0.4967 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001641/0.1933, allocations: 69.97 kB / 0.4968 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002185/0.1955, allocations: 1.163 MB / 0.4979 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006836/0.2024, allocations: 4.769 MB / 0.5026 GB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003041/0.2054, allocations: 1.125 MB / 0.5037 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00125/0.2067, allocations: 0.5579 MB / 0.5042 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.695e-05/0.2068, allocations: 8.547 kB / 0.5042 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00143/0.2082, allocations: 0.7222 MB / 0.505 GB, free: 9.883 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.645e-06/0.2082, allocations: 4 kB / 0.505 GB, free: 9.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=81): time 0.007242/0.2155, allocations: 3.177 MB / 0.5081 GB, free: 6.609 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.2156, allocations: 123.5 kB / 0.5082 GB, free: 6.465 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007392/0.2163, allocations: 0.6003 MB / 0.5088 GB, free: 5.855 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.839e-05/0.2164, allocations: 57.64 kB / 0.5088 GB, free: 5.793 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003984/0.2168, allocations: 451.1 kB / 0.5092 GB, free: 5.344 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002333/0.2171, allocations: 272.2 kB / 0.5095 GB, free: 5.074 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00031/0.2174, allocations: 206.4 kB / 0.5097 GB, free: 4.867 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.2176, allocations: 394.7 kB / 0.5101 GB, free: 4.473 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007142/0.2183, allocations: 486 kB / 0.5105 GB, free: 3.992 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009334/0.2193, allocations: 0.7421 MB / 0.5113 GB, free: 3.137 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001727/0.221, allocations: 1.254 MB / 0.5125 GB, free: 1.766 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.842e-06/0.221, allocations: 4 kB / 0.5125 GB, free: 1.762 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002545/0.2236, allocations: 1.576 MB / 0.514 GB, free: 152 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.812e-05/0.2237, allocations: 61.62 kB / 0.5141 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001995/0.2257, allocations: 1.332 MB / 0.5154 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000472/0.2262, allocations: 117.6 kB / 0.5155 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007811/0.227, allocations: 203.6 kB / 0.5157 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003338/0.2303, allocations: 3.36 MB / 0.519 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008082/0.2311, allocations: 75.92 kB / 0.5191 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/0.2313, allocations: 80.06 kB / 0.5191 GB, free: 10.6 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,ac_dc.modulator.t0[3],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 109 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007775/0.2321, allocations: 381.5 kB / 0.5195 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003199/0.2324, allocations: 75.06 kB / 0.5196 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002948/0.2354, allocations: 1.274 MB / 0.5208 GB, free: 8.836 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.188e-05/0.2354, allocations: 12 kB / 0.5208 GB, free: 8.824 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2354, allocations: 0 / 0.5208 GB, free: 8.824 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.2354, allocations: 11.92 kB / 0.5208 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004462/0.2399, allocations: 2.428 MB / 0.5232 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.2399, allocations: 4 kB / 0.5232 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006932/0.2406, allocations: 147.9 kB / 0.5234 GB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001142/0.2407, allocations: 36.83 kB / 0.5234 GB, free: 6.109 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-05/0.2408, allocations: 27.97 kB / 0.5234 GB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001457/0.2423, allocations: 1.634 MB / 0.525 GB, free: 4.312 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2423, allocations: 0 / 0.525 GB, free: 4.312 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004013/0.2463, allocations: 1.924 MB / 0.5269 GB, free: 2.336 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000488/0.2468, allocations: 236.1 kB / 0.5271 GB, free: 2.086 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001792/0.247, allocations: 79.94 kB / 0.5272 GB, free: 2.008 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006993/0.2477, allocations: 87.88 kB / 0.5273 GB, free: 1.922 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/0.2479, allocations: 60.52 kB / 0.5273 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-05/0.248, allocations: 31.91 kB / 0.5274 GB, free: 1.828 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005332/0.2485, allocations: 398.8 kB / 0.5277 GB, free: 1.441 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2485, allocations: 0 / 0.5277 GB, free: 1.441 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001187/0.2497, allocations: 244 kB / 0.528 GB, free: 1.203 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,ac_dc.modulator.gates[1],ac_dc.modulator.gates[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.t0[1],ac_dc.modulator.t0[2],ac_dc.modulator.t0[3],system.initime) * Number of discrete states: 12 (ac_dc.modulator.t0[3],ac_dc.modulator.sigdel_t[3],ac_dc.modulator.gates[5],ac_dc.modulator.gates[6],ac_dc.modulator.t0[2],ac_dc.modulator.sigdel_t[2],ac_dc.modulator.gates[3],ac_dc.modulator.gates[4],ac_dc.modulator.t0[1],ac_dc.modulator.sigdel_t[1],ac_dc.modulator.gates[1],ac_dc.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 63 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003908/0.2501, allocations: 190.9 kB / 0.5282 GB, free: 1.008 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.354/0.6042, allocations: 1.623 MB / 0.5297 GB, free: 51.89 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/0.6042, allocations: 0 / 0.5297 GB, free: 51.89 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002418/0.6066, allocations: 0.6615 MB / 0.5304 GB, free: 51.78 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001555/0.6082, allocations: 172.8 kB / 0.5306 GB, free: 51.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00571/0.614, allocations: 2.312 MB / 0.5328 GB, free: 51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00104/0.615, allocations: 1.109 MB / 0.5339 GB, free: 50.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0009348/0.616, allocations: 243.1 kB / 0.5341 GB, free: 50.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002215/0.6162, allocations: 65.22 kB / 0.5342 GB, free: 50.26 MB / 414.1 MB Notification: Performance of SimCode: time 1.553e-06/0.6162, allocations: 0 / 0.5342 GB, free: 50.26 MB / 414.1 MB Notification: Performance of Templates: time 0.0302/0.6464, allocations: 11.32 MB / 0.5452 GB, free: 47.59 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)