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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001218/0.001223, allocations: 107.3 kB / 16.92 MB, free: 6.145 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.001304/0.001304, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1953/0.1953, allocations: 38.04 MB / 329.7 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 66.02 kB / 398.8 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.163/0.1649, allocations: 58.06 MB / 456.9 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.0125/0.1774, allocations: 6.928 MB / 463.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00594/0.1834, allocations: 2.033 MB / 465.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00087/0.1844, allocations: 27.88 kB / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001965/0.1863, allocations: 0.4934 MB / 466.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002199/0.1886, allocations: 0.5483 MB / 466.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001442/0.19, allocations: 407.2 kB / 467.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002194/0.1922, allocations: 1.395 MB / 468.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001466/0.1937, allocations: 0.8186 MB / 469.5 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001163/0.1949, allocations: 0.6112 MB / 470.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001394/0.1963, allocations: 0.6892 MB / 470.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002335/0.1966, allocations: 96 kB / 470.9 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001495/0.1981, allocations: 0.5461 MB / 471.4 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007334/0.1988, allocations: 0.4988 MB / 471.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009302/0.1998, allocations: 0.5599 MB / 472.5 MB, free: 8.344 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002385/0.2022, allocations: 1.507 MB / 474 MB, free: 6.832 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2022, allocations: 0 / 474 MB, free: 6.832 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2022, allocations: 0 / 474 MB, free: 6.832 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.132e-05/0.2022, allocations: 3.938 kB / 474 MB, free: 6.828 MB / 350.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.004387/0.2066, allocations: 1.567 MB / 475.6 MB, free: 5.184 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/0.2067, allocations: 11.89 kB / 475.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001284/0.208, allocations: 167.5 kB / 475.7 MB, free: 5.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00172/0.2097, allocations: 0.6864 MB / 476.4 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002518/0.21, allocations: 175.6 kB / 476.6 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003573/0.2104, allocations: 107.8 kB / 476.7 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003893/0.2143, allocations: 1.535 MB / 478.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.739e-05/0.2143, allocations: 7.938 kB / 478.3 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001586/0.2145, allocations: 36 kB / 478.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002243/0.2147, allocations: 65.97 kB / 478.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003256/0.218, allocations: 1.171 MB / 479.5 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008883/0.2269, allocations: 4.793 MB / 484.3 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004465/0.2314, allocations: 1.118 MB / 485.4 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001955/0.2334, allocations: 0.572 MB / 486 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.282e-05/0.2335, allocations: 12.55 kB / 486 MB, free: 10.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002207/0.2357, allocations: 0.7144 MB / 486.7 MB, free: 9.676 MB / 366.1 MB Notification: Performance of pre-optimization done (n=80): time 7.094e-06/0.2357, allocations: 3.984 kB / 486.7 MB, free: 9.672 MB / 366.1 MB Notification: Performance of matching and sorting (n=81): time 0.01135/0.2471, allocations: 3.193 MB / 489.9 MB, free: 6.383 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.2472, allocations: 127.5 kB / 490.1 MB, free: 6.234 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001327/0.2486, allocations: 0.5887 MB / 490.6 MB, free: 5.637 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001221/0.2487, allocations: 53.69 kB / 490.7 MB, free: 5.578 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000525/0.2493, allocations: 459 kB / 491.1 MB, free: 5.121 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003575/0.2496, allocations: 272.2 kB / 491.4 MB, free: 4.852 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004849/0.2501, allocations: 194.5 kB / 491.6 MB, free: 4.656 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002472/0.2504, allocations: 390.7 kB / 492 MB, free: 4.266 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.2515, allocations: 486 kB / 492.5 MB, free: 3.785 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.2529, allocations: 0.7499 MB / 493.2 MB, free: 2.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002462/0.2554, allocations: 1.254 MB / 494.5 MB, free: 1.555 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.198e-05/0.2554, allocations: 4 kB / 494.5 MB, free: 1.551 MB / 366.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003554/0.259, allocations: 1.584 MB / 496 MB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.828e-05/0.2591, allocations: 65.61 kB / 496.1 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002882/0.262, allocations: 1.321 MB / 497.4 MB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006731/0.2627, allocations: 121.8 kB / 497.6 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001145/0.2638, allocations: 199.6 kB / 497.7 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0047/0.2686, allocations: 3.361 MB / 0.4894 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.2699, allocations: 79.88 kB / 0.4894 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002946/0.2702, allocations: 75.94 kB / 0.4895 GB, free: 10.39 MB / 382.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.001112/0.2713, allocations: 373.4 kB / 0.4899 GB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003827/0.2717, allocations: 79.05 kB / 0.4899 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004422/0.2762, allocations: 1.278 MB / 0.4912 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.091e-05/0.2762, allocations: 19.98 kB / 0.4912 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.2763, allocations: 0 / 0.4912 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.857e-05/0.2763, allocations: 7.922 kB / 0.4912 GB, free: 8.598 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007031/0.2833, allocations: 2.432 MB / 0.4936 GB, free: 6.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.164e-05/0.2834, allocations: 4 kB / 0.4936 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001086/0.2845, allocations: 143.8 kB / 0.4937 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001655/0.2846, allocations: 36.84 kB / 0.4938 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/0.2848, allocations: 28.06 kB / 0.4938 GB, free: 5.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002217/0.287, allocations: 1.638 MB / 0.4954 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.287, allocations: 0 / 0.4954 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006045/0.2931, allocations: 1.926 MB / 0.4973 GB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006276/0.2938, allocations: 240 kB / 0.4975 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000309/0.2941, allocations: 79.95 kB / 0.4976 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.2953, allocations: 91.86 kB / 0.4977 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.2955, allocations: 56.52 kB / 0.4977 GB, free: 1.641 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.2956, allocations: 27.98 kB / 0.4977 GB, free: 1.613 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000731/0.2963, allocations: 402.8 kB / 0.4981 GB, free: 1.219 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2963, allocations: 0 / 0.4981 GB, free: 1.219 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001546/0.2979, allocations: 240.2 kB / 0.4984 GB, free: 0.9844 MB / 382.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.0004471/0.2984, allocations: 189.3 kB / 0.4985 GB, free: 0.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005271/0.3037, allocations: 1.979 MB / 0.5005 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/0.3037, allocations: 4.25 kB / 0.5005 GB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001969/0.3057, allocations: 0.6546 MB / 0.5011 GB, free: 14.1 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/0.3072, allocations: 170.5 kB / 0.5013 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00646/0.3137, allocations: 2.339 MB / 0.5036 GB, free: 11.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001182/0.3149, allocations: 1.111 MB / 0.5046 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001091/0.316, allocations: 246.5 kB / 0.5049 GB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003217/0.3164, allocations: 63.42 kB / 0.5049 GB, free: 10.11 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3164, allocations: 0 / 0.5049 GB, free: 10.11 MB / 398.1 MB Notification: Performance of Templates: time 0.2321/0.5484, allocations: 11.02 MB / 0.5157 GB, free: 70.94 MB / 398.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)