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.001013/0.001013, allocations: 92.91 kB / 16.31 MB, free: 6.457 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.001169/0.00117, allocations: 180.7 kB / 17.21 MB, free: 6.328 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.37/1.37, allocations: 205.4 MB / 223.4 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3223/0.3223, allocations: 38.05 MB / 309.7 MB, free: 8.93 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.0005219/0.0005222, allocations: 12 kB / 376.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09694/0.09747, allocations: 56.33 MB / 432.8 MB, free: 6.699 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Inverter): time 0.007389/0.1049, allocations: 7.467 MB / 440.3 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00416/0.1091, allocations: 2.397 MB / 442.7 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006746/0.1098, allocations: 55.62 kB / 442.8 MB, free: 12.74 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004135/0.1102, allocations: 166.7 kB / 442.9 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001378/0.1116, allocations: 0.6222 MB / 443.6 MB, free: 11.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009374/0.1126, allocations: 391.3 kB / 443.9 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001422/0.114, allocations: 1.562 MB / 445.5 MB, free: 10 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001309/0.1153, allocations: 0.9005 MB / 446.4 MB, free: 9.062 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007475/0.1161, allocations: 0.5097 MB / 446.9 MB, free: 8.551 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000811/0.1169, allocations: 0.6426 MB / 447.5 MB, free: 7.906 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.143e-05/0.117, allocations: 44 kB / 447.6 MB, free: 7.863 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007598/0.1178, allocations: 471.2 kB / 448.1 MB, free: 7.402 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004036/0.1182, allocations: 450.9 kB / 448.5 MB, free: 6.961 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002122/0.1184, allocations: 217.2 kB / 448.7 MB, free: 6.742 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001005/0.1194, allocations: 1.165 MB / 449.9 MB, free: 5.574 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1194, allocations: 3.938 kB / 449.9 MB, free: 5.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1194, allocations: 0 / 449.9 MB, free: 5.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.213e-05/0.1195, allocations: 0 / 449.9 MB, free: 5.57 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.002495/0.122, allocations: 1.365 MB / 451.2 MB, free: 4.129 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.122, allocations: 8.031 kB / 451.2 MB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006984/0.1227, allocations: 158.6 kB / 451.4 MB, free: 3.965 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/0.1238, allocations: 0.6775 MB / 452.1 MB, free: 3.246 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001663/0.124, allocations: 179.1 kB / 452.3 MB, free: 3.051 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002041/0.1242, allocations: 111.9 kB / 452.4 MB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002442/0.1266, allocations: 1.54 MB / 453.9 MB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.779e-05/0.1267, allocations: 11.94 kB / 453.9 MB, free: 1.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.401e-05/0.1268, allocations: 43.92 kB / 454 MB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001537/0.1269, allocations: 65.97 kB / 454 MB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001957/0.1289, allocations: 1.186 MB / 455.2 MB, free: 28 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1977/0.3266, allocations: 4.799 MB / 460 MB, free: 48.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002281/0.3289, allocations: 1.19 MB / 461.2 MB, free: 48.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001078/0.3301, allocations: 0.591 MB / 461.8 MB, free: 48.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.258e-05/0.3301, allocations: 11.66 kB / 461.8 MB, free: 48.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/0.3313, allocations: 0.7308 MB / 462.5 MB, free: 48.67 MB / 382.1 MB Notification: Performance of pre-optimization done (n=80): time 4.959e-06/0.3313, allocations: 1.875 kB / 462.5 MB, free: 48.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=81): time 0.006079/0.3374, allocations: 3.315 MB / 465.8 MB, free: 47.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.643e-05/0.3375, allocations: 127.7 kB / 466 MB, free: 47.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005961/0.3381, allocations: 0.5848 MB / 466.6 MB, free: 47.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.983e-05/0.3382, allocations: 58.28 kB / 466.6 MB, free: 47.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002377/0.3384, allocations: 455.5 kB / 467.1 MB, free: 46.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001668/0.3386, allocations: 265.8 kB / 467.3 MB, free: 46.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.655e-05/0.3386, allocations: 25.56 kB / 467.3 MB, free: 46.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.989e-05/0.3387, allocations: 390.1 kB / 467.7 MB, free: 46.36 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005651/0.3393, allocations: 466.3 kB / 468.2 MB, free: 46.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000656/0.34, allocations: 0.7231 MB / 468.9 MB, free: 45.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008419/0.3408, allocations: 0.5999 MB / 469.5 MB, free: 45.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.653e-06/0.3408, allocations: 0 / 469.5 MB, free: 45.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002073/0.3429, allocations: 1.547 MB / 471 MB, free: 44.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.032e-05/0.343, allocations: 67.44 kB / 471.1 MB, free: 44.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001654/0.3447, allocations: 1.294 MB / 472.4 MB, free: 44.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003864/0.3451, allocations: 114 kB / 472.5 MB, free: 44.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007081/0.3458, allocations: 204.9 kB / 472.7 MB, free: 44.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002047/0.3478, allocations: 3.069 MB / 475.8 MB, free: 41.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006541/0.3485, allocations: 78.84 kB / 475.9 MB, free: 41.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001355/0.3487, allocations: 84.7 kB / 475.9 MB, free: 41.24 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,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.ac_dc.modulator.gates[1],ac_dc.modulator.gates[1],$PRE.ac_dc.modulator.gates[2],ac_dc.modulator.gates[2],$PRE.ac_dc.modulator.gates[3],ac_dc.modulator.gates[3],$PRE.ac_dc.modulator.gates[4],ac_dc.modulator.gates[4],$PRE.ac_dc.modulator.gates[5],ac_dc.modulator.gates[5],$PRE.ac_dc.modulator.gates[6],ac_dc.modulator.gates[6],$PRE.ac_dc.modulator.sigdel_t[1],ac_dc.modulator.sigdel_t[1],$PRE.ac_dc.modulator.sigdel_t[2],ac_dc.modulator.sigdel_t[2],$PRE.ac_dc.modulator.sigdel_t[3],ac_dc.modulator.sigdel_t[3],$PRE.ac_dc.modulator.t0[1],ac_dc.modulator.t0[1],$PRE.ac_dc.modulator.t0[2],ac_dc.modulator.t0[2],$PRE.ac_dc.modulator.t0[3],ac_dc.modulator.t0[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005078/0.3492, allocations: 370.9 kB / 476.3 MB, free: 41.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/0.3493, allocations: 81.14 kB / 476.4 MB, free: 40.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002346/0.3517, allocations: 1.323 MB / 477.7 MB, free: 40.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.191e-05/0.3517, allocations: 13.47 kB / 477.7 MB, free: 40.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3517, allocations: 3.125 kB / 477.7 MB, free: 40.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.3518, allocations: 6.609 kB / 477.7 MB, free: 40.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003729/0.3555, allocations: 2.485 MB / 480.2 MB, free: 39.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.3555, allocations: 3.562 kB / 480.2 MB, free: 39.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006435/0.3562, allocations: 144.5 kB / 480.4 MB, free: 39.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001048/0.3563, allocations: 36.06 kB / 480.4 MB, free: 39.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.163e-05/0.3564, allocations: 31.12 kB / 480.4 MB, free: 39.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008541/0.3573, allocations: 1.465 MB / 481.9 MB, free: 37.85 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.3573, allocations: 7.234 kB / 481.9 MB, free: 37.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003222/0.3605, allocations: 1.987 MB / 483.9 MB, free: 37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004213/0.3609, allocations: 243 kB / 484.1 MB, free: 36.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002319/0.3612, allocations: 80.77 kB / 484.2 MB, free: 36.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006933/0.3619, allocations: 107.6 kB / 484.3 MB, free: 36.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/0.362, allocations: 59.62 kB / 484.4 MB, free: 36.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.273e-05/0.3621, allocations: 32.02 kB / 484.4 MB, free: 36.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004652/0.3626, allocations: 398.2 kB / 484.8 MB, free: 36.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.8e-07/0.3626, allocations: 0 / 484.8 MB, free: 36.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001041/0.3636, allocations: 234.1 kB / 485 MB, free: 36.57 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003048/0.3639, allocations: 183.1 kB / 485.2 MB, free: 36.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002465/0.3664, allocations: 1.627 MB / 486.8 MB, free: 35.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.3664, allocations: 0 / 486.8 MB, free: 35.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.3676, allocations: 0.6805 MB / 487.5 MB, free: 35.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009071/0.3685, allocations: 177.6 kB / 487.7 MB, free: 35.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003798/0.3723, allocations: 2.813 MB / 490.5 MB, free: 33.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007164/0.3731, allocations: 1.125 MB / 491.6 MB, free: 33.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000754/0.3738, allocations: 234.6 kB / 491.8 MB, free: 33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002821/0.3741, allocations: 59.98 kB / 491.9 MB, free: 32.99 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3741, allocations: 0 / 491.9 MB, free: 32.99 MB / 382.1 MB Notification: Performance of Templates: time 0.02196/0.3961, allocations: 10.09 MB / 0.4902 GB, free: 32.32 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: