Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter") translateModel(PowerSystems.Examples.AC3ph.Elementary.Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001023/0.001023, allocations: 174.2 kB / 16.76 MB, free: 4.93 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.999/1.999, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008016/0.0008016, allocations: 89.97 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1745/0.1745, allocations: 38.07 MB / 357.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003853/0.0003855, allocations: 16 kB / 423.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3427/0.3431, allocations: 56.31 MB / 480.3 MB, free: 9.199 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1648/0.508, allocations: 112.5 MB / 0.5788 GB, free: 5.852 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002972/0.5083, allocations: 99.94 kB / 0.5789 GB, free: 5.754 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06916/0.5775, allocations: 24.04 MB / 0.6024 GB, free: 13.49 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5775, allocations: 0 / 0.6024 GB, free: 13.49 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.419e-05/0.5776, allocations: 20 kB / 0.6024 GB, free: 13.47 MB / 442.7 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.582, allocations: 1.402 MB / 0.6038 GB, free: 11.98 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.582, allocations: 8.031 kB / 0.6038 GB, free: 11.98 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001208/0.5833, allocations: 171.5 kB / 0.604 GB, free: 11.81 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003322/0.5866, allocations: 1.065 MB / 0.605 GB, free: 10.7 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/0.5869, allocations: 172 kB / 0.6052 GB, free: 10.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003869/0.5873, allocations: 95.91 kB / 0.6053 GB, free: 10.42 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003371/0.5906, allocations: 1.549 MB / 0.6068 GB, free: 8.797 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.923e-05/0.5907, allocations: 4 kB / 0.6068 GB, free: 8.793 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.5908, allocations: 36 kB / 0.6068 GB, free: 8.758 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.211e-05/0.5909, allocations: 53.98 kB / 0.6069 GB, free: 8.703 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002498/0.5934, allocations: 1.155 MB / 0.608 GB, free: 7.551 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007182/0.6006, allocations: 4.788 MB / 0.6127 GB, free: 2.609 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002912/0.6036, allocations: 1.188 MB / 0.6138 GB, free: 1.379 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/0.6049, allocations: 0.5891 MB / 0.6144 GB, free: 0.7812 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.998e-05/0.605, allocations: 12.55 kB / 0.6144 GB, free: 0.7695 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001448/0.6065, allocations: 0.7377 MB / 0.6151 GB, free: 12 kB / 442.7 MB Notification: Performance of pre-optimization done (n=82): time 3.887e-06/0.6065, allocations: 0 / 0.6151 GB, free: 12 kB / 442.7 MB Notification: Performance of matching and sorting (n=83): time 0.007946/0.6144, allocations: 3.302 MB / 0.6184 GB, free: 12.61 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.733e-05/0.6146, allocations: 135.2 kB / 0.6185 GB, free: 12.46 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008667/0.6155, allocations: 0.5848 MB / 0.6191 GB, free: 11.86 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001001/0.6156, allocations: 53.69 kB / 0.6191 GB, free: 11.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004533/0.616, allocations: 451.1 kB / 0.6195 GB, free: 11.36 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000278/0.6163, allocations: 280.1 kB / 0.6198 GB, free: 11.08 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.8e-05/0.6164, allocations: 23.98 kB / 0.6198 GB, free: 11.05 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.6166, allocations: 386.8 kB / 0.6202 GB, free: 10.67 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007833/0.6174, allocations: 490 kB / 0.6207 GB, free: 10.19 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009823/0.6184, allocations: 0.7421 MB / 0.6214 GB, free: 9.336 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001785/0.6202, allocations: 1.258 MB / 0.6226 GB, free: 7.957 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/0.6202, allocations: 4 kB / 0.6226 GB, free: 7.953 MB / 458.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002713/0.6229, allocations: 1.568 MB / 0.6242 GB, free: 6.348 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001103/0.623, allocations: 64.02 kB / 0.6242 GB, free: 6.281 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002136/0.6252, allocations: 1.313 MB / 0.6255 GB, free: 4.938 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004331/0.6256, allocations: 105.6 kB / 0.6256 GB, free: 4.828 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007575/0.6264, allocations: 199.6 kB / 0.6258 GB, free: 4.633 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002828/0.6293, allocations: 2.982 MB / 0.6287 GB, free: 1.383 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007933/0.6301, allocations: 75.78 kB / 0.6288 GB, free: 1.309 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001449/0.6302, allocations: 71.89 kB / 0.6288 GB, free: 1.238 MB / 458.7 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): 108 * Array equations: 2 * 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%) 1,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008246/0.6311, allocations: 377.5 kB / 0.6292 GB, free: 0.8594 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002367/0.6313, allocations: 79.05 kB / 0.6293 GB, free: 0.7812 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002985/0.6343, allocations: 1.298 MB / 0.6306 GB, free: 15.45 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-05/0.6343, allocations: 23.92 kB / 0.6306 GB, free: 15.43 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.6344, allocations: 4 kB / 0.6306 GB, free: 15.43 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.6344, allocations: 7.969 kB / 0.6306 GB, free: 15.42 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004914/0.6393, allocations: 2.494 MB / 0.633 GB, free: 12.84 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.6393, allocations: 0 / 0.633 GB, free: 12.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007265/0.6401, allocations: 147.8 kB / 0.6332 GB, free: 12.69 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-05/0.6402, allocations: 24.95 kB / 0.6332 GB, free: 12.66 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.67e-05/0.6403, allocations: 27.97 kB / 0.6332 GB, free: 12.64 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.6414, allocations: 1.385 MB / 0.6346 GB, free: 11.12 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.6414, allocations: 0 / 0.6346 GB, free: 11.12 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00415/0.6455, allocations: 2.001 MB / 0.6365 GB, free: 9.066 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005103/0.6461, allocations: 252 kB / 0.6368 GB, free: 8.801 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002625/0.6464, allocations: 75.94 kB / 0.6368 GB, free: 8.727 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008247/0.6472, allocations: 111.9 kB / 0.6369 GB, free: 8.617 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.6473, allocations: 48.58 kB / 0.637 GB, free: 8.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.996e-05/0.6474, allocations: 31.98 kB / 0.637 GB, free: 8.539 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0006227/0.6481, allocations: 390.8 kB / 0.6374 GB, free: 8.156 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6481, allocations: 3.938 kB / 0.6374 GB, free: 8.152 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001232/0.6493, allocations: 260.2 kB / 0.6376 GB, free: 7.898 MB / 474.7 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 (77): * Single equations (assignments): 61 * Array equations: 2 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004235/0.6497, allocations: 202.6 kB / 0.6378 GB, free: 7.688 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003057/0.6528, allocations: 1.662 MB / 0.6395 GB, free: 5.98 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.6528, allocations: 4.062 kB / 0.6395 GB, free: 5.977 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.6542, allocations: 0.6823 MB / 0.6401 GB, free: 5.285 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.6554, allocations: 162 kB / 0.6403 GB, free: 5.129 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005056/0.6605, allocations: 2.9 MB / 0.6431 GB, free: 2.184 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009232/0.6614, allocations: 1.107 MB / 0.6442 GB, free: 1.047 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003359/0.6618, allocations: 71.42 kB / 0.6443 GB, free: 0.9766 MB / 474.7 MB Notification: Performance of SimCode: time 8.82e-07/0.6618, allocations: 0 / 0.6443 GB, free: 0.9766 MB / 474.7 MB Notification: Performance of Templates: time 0.2388/0.9005, allocations: 17.55 MB / 0.6614 GB, free: 135.4 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)