Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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 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.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 111.7 kB / 17.06 MB, free: 6.016 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.001156/0.001157, allocations: 191 kB / 18 MB, free: 5.098 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.465/1.465, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1792/0.1792, allocations: 38.03 MB / 329.9 MB, free: 8.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 55.91 kB / 458.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4102/0.4117, allocations: 58.06 MB / 0.5041 GB, free: 7.934 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.008468/0.4202, allocations: 6.482 MB / 0.5104 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004703/0.4249, allocations: 2.442 MB / 0.5128 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005692/0.4255, allocations: 24.91 kB / 0.5128 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001336/0.4269, allocations: 436.8 kB / 0.5133 GB, free: 1.473 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001621/0.4285, allocations: 0.5866 MB / 0.5138 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.4299, allocations: 498 kB / 0.5143 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002519/0.4325, allocations: 1.966 MB / 0.5162 GB, free: 100 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001521/0.434, allocations: 0.8584 MB / 0.5171 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00219/0.4362, allocations: 0.7684 MB / 0.5178 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003367/0.4396, allocations: 0.9693 MB / 0.5188 GB, free: 15.06 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007144/0.4403, allocations: 160.3 kB / 0.5189 GB, free: 15.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002164/0.4425, allocations: 0.6484 MB / 0.5195 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00104/0.4435, allocations: 0.6432 MB / 0.5202 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001267/0.4448, allocations: 0.6724 MB / 0.5208 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003692/0.4485, allocations: 2.043 MB / 0.5228 GB, free: 13.57 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.4485, allocations: 8 kB / 0.5228 GB, free: 13.56 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.4486, allocations: 0 / 0.5228 GB, free: 13.56 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.693e-05/0.4486, allocations: 1.375 kB / 0.5228 GB, free: 13.56 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.005565/0.4542, allocations: 1.928 MB / 0.5247 GB, free: 12.49 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.4542, allocations: 14.38 kB / 0.5247 GB, free: 12.49 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009442/0.4552, allocations: 169.4 kB / 0.5249 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002445/0.4576, allocations: 0.9789 MB / 0.5258 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008455/0.4585, allocations: 0.4974 MB / 0.5263 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004069/0.4589, allocations: 99.69 kB / 0.5264 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004721/0.4637, allocations: 2.015 MB / 0.5284 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.157e-05/0.4637, allocations: 5.391 kB / 0.5284 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001418/0.4638, allocations: 36.45 kB / 0.5284 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000227/0.4641, allocations: 93.09 kB / 0.5285 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005905/0.47, allocations: 2.24 MB / 0.5307 GB, free: 8.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01186/0.4819, allocations: 5.662 MB / 0.5362 GB, free: 5.047 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005609/0.4876, allocations: 1.793 MB / 0.538 GB, free: 4.094 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004843/0.4925, allocations: 1.153 MB / 0.5391 GB, free: 3.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001893/0.4927, allocations: 19.97 kB / 0.5391 GB, free: 3.492 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005022/0.4977, allocations: 1.391 MB / 0.5405 GB, free: 2.695 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 4.949e-06/0.4977, allocations: 0 / 0.5405 GB, free: 2.695 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.02164/0.5194, allocations: 5.65 MB / 0.546 GB, free: 13.24 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001758/0.5196, allocations: 106.1 kB / 0.5461 GB, free: 13.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.5207, allocations: 498 kB / 0.5466 GB, free: 12.62 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002713/0.521, allocations: 65.62 kB / 0.5466 GB, free: 12.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005247/0.5215, allocations: 365.5 kB / 0.547 GB, free: 12.19 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006541/0.5222, allocations: 432.4 kB / 0.5474 GB, free: 11.76 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000851/0.5231, allocations: 226.9 kB / 0.5476 GB, free: 11.53 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002616/0.5233, allocations: 402.8 kB / 0.548 GB, free: 11.13 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003457/0.5268, allocations: 1.021 MB / 0.549 GB, free: 10.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003455/0.5303, allocations: 1.176 MB / 0.5502 GB, free: 8.895 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006399/0.5367, allocations: 2.039 MB / 0.5521 GB, free: 6.809 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.917e-06/0.5367, allocations: 4 kB / 0.5522 GB, free: 6.805 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01682/0.5536, allocations: 3.896 MB / 0.556 GB, free: 2.891 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001397/0.5537, allocations: 61.67 kB / 0.556 GB, free: 2.824 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.385e-05/0.5538, allocations: 4 kB / 0.556 GB, free: 2.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008143/0.5619, allocations: 2.071 MB / 0.558 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001631/0.5636, allocations: 195.7 kB / 0.5582 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04075/0.6044, allocations: 11.32 MB / 0.5693 GB, free: 5.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002337/0.6068, allocations: 163.8 kB / 0.5694 GB, free: 4.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005268/0.6073, allocations: 79.88 kB / 0.5695 GB, free: 4.852 MB / 430.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: 28 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],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,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.00148/0.6088, allocations: 373.4 kB / 0.5699 GB, free: 4.477 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006333/0.6095, allocations: 87.47 kB / 0.57 GB, free: 4.391 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009538/0.619, allocations: 2.361 MB / 0.5723 GB, free: 2.02 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.24e-05/0.6192, allocations: 24 kB / 0.5723 GB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.6192, allocations: 0 / 0.5723 GB, free: 1.996 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.905e-05/0.6192, allocations: 7.969 kB / 0.5723 GB, free: 1.988 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01152/0.6308, allocations: 4.109 MB / 0.5763 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-05/0.6309, allocations: 256 / 0.5763 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01113/0.642, allocations: 2.021 MB / 0.5783 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.614e-05/0.6421, allocations: 8 kB / 0.5783 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004094/0.6425, allocations: 43.89 kB / 0.5783 GB, free: 11.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.789e-05/0.6425, allocations: 4 kB / 0.5783 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.6425, allocations: 4 kB / 0.5783 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009319/0.6519, allocations: 3.863 MB / 0.5821 GB, free: 7.801 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008318/0.6527, allocations: 340.4 kB / 0.5824 GB, free: 7.449 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003973/0.6531, allocations: 91.88 kB / 0.5825 GB, free: 7.359 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001595/0.6548, allocations: 187.7 kB / 0.5827 GB, free: 7.176 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004812/0.6553, allocations: 196.7 kB / 0.5829 GB, free: 6.984 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001449/0.6554, allocations: 39.97 kB / 0.5829 GB, free: 6.945 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005698/0.656, allocations: 346.8 kB / 0.5833 GB, free: 6.605 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.656, allocations: 0 / 0.5833 GB, free: 6.605 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001704/0.6577, allocations: 351.9 kB / 0.5836 GB, free: 6.262 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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.0005356/0.6583, allocations: 224.5 kB / 0.5838 GB, free: 6.027 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007709/0.666, allocations: 3.025 MB / 0.5868 GB, free: 2.977 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.666, allocations: 0 / 0.5868 GB, free: 2.977 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006596/0.6726, allocations: 1.93 MB / 0.5886 GB, free: 1.047 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001622/0.6743, allocations: 188 kB / 0.5888 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008151/0.6824, allocations: 3.342 MB / 0.5921 GB, free: 13.47 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009498/0.6834, allocations: 1.14 MB / 0.5932 GB, free: 12.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001206/0.6847, allocations: 318.7 kB / 0.5935 GB, free: 11.99 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000513/0.6852, allocations: 79.41 kB / 0.5936 GB, free: 11.91 MB / 462.1 MB Notification: Performance of SimCode: time 7.01e-07/0.6852, allocations: 0 / 0.5936 GB, free: 11.91 MB / 462.1 MB Notification: Performance of Templates: time 0.04124/0.7264, allocations: 24.87 MB / 0.6179 GB, free: 3.141 MB / 478.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)