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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002379/0.002378, allocations: 181.8 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.047/2.047, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.00113/0.00113, allocations: 90.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2618/0.2618, allocations: 38.06 MB / 356.6 MB, free: 0.793 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004559/0.000456, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.11, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5203/0.6303, allocations: 112.4 MB / 0.5777 GB, free: 3.25 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000324/0.6307, allocations: 98.08 kB / 0.5778 GB, free: 3.199 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1048/0.7355, allocations: 24.06 MB / 0.6013 GB, free: 14.49 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.7356, allocations: 0 / 0.6013 GB, free: 14.49 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.668e-05/0.7357, allocations: 23.94 kB / 0.6013 GB, free: 14.46 MB / 410.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.004268/0.74, allocations: 1.411 MB / 0.6027 GB, free: 13.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.74, allocations: 8.031 kB / 0.6027 GB, free: 13.04 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003341/0.7404, allocations: 163.4 kB / 0.6029 GB, free: 12.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001166/0.7415, allocations: 163.2 kB / 0.603 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005977/0.7475, allocations: 1.41 MB / 0.6044 GB, free: 11.55 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002396/0.7478, allocations: 172.9 kB / 0.6046 GB, free: 11.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002914/0.7481, allocations: 92.88 kB / 0.6046 GB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004488/0.7526, allocations: 1.539 MB / 0.6061 GB, free: 10.13 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.754e-05/0.7527, allocations: 7.938 kB / 0.6062 GB, free: 10.12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001572/0.7529, allocations: 34.31 kB / 0.6062 GB, free: 10.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/0.753, allocations: 56.98 kB / 0.6062 GB, free: 10.06 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003782/0.7568, allocations: 1.149 MB / 0.6074 GB, free: 9.242 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009903/0.7667, allocations: 4.789 MB / 0.612 GB, free: 5.121 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005311/0.7721, allocations: 1.19 MB / 0.6132 GB, free: 4.152 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.925e-05/0.7722, allocations: 20.16 kB / 0.6132 GB, free: 4.137 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002459/0.7747, allocations: 0.7285 MB / 0.6139 GB, free: 3.551 MB / 410.7 MB Notification: Performance of pre-optimization done (n=82): time 5.381e-06/0.7747, allocations: 3.984 kB / 0.6139 GB, free: 3.547 MB / 410.7 MB Notification: Performance of matching and sorting (n=83): time 0.01219/0.7869, allocations: 3.47 MB / 0.6173 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.787, allocations: 127.1 kB / 0.6174 GB, free: 468 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009555/0.788, allocations: 0.5129 MB / 0.6179 GB, free: 48 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001223/0.7881, allocations: 51.19 kB / 0.618 GB, free: 4 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004603/0.7886, allocations: 490.3 kB / 0.6185 GB, free: 15.61 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003395/0.7889, allocations: 274 kB / 0.6187 GB, free: 15.38 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.574e-05/0.7891, allocations: 23.75 kB / 0.6187 GB, free: 15.37 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.7893, allocations: 357.4 kB / 0.6191 GB, free: 15.03 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.7905, allocations: 0.5014 MB / 0.6196 GB, free: 14.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001457/0.792, allocations: 0.7645 MB / 0.6203 GB, free: 14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.7934, allocations: 0.6469 MB / 0.621 GB, free: 13.57 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.904e-06/0.7934, allocations: 0 / 0.621 GB, free: 13.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.003911/0.7973, allocations: 1.59 MB / 0.6225 GB, free: 12.35 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.7975, allocations: 67.11 kB / 0.6226 GB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003163/0.8006, allocations: 1.362 MB / 0.6239 GB, free: 11.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000582/0.8013, allocations: 109.6 kB / 0.624 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001407/0.8027, allocations: 195.6 kB / 0.6242 GB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003707/0.8064, allocations: 3.013 MB / 0.6271 GB, free: 7.633 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/0.8076, allocations: 79.8 kB / 0.6272 GB, free: 7.555 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000198/0.8078, allocations: 64.14 kB / 0.6273 GB, free: 7.492 MB / 426.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.0009379/0.8088, allocations: 369.5 kB / 0.6276 GB, free: 7.121 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002151/0.809, allocations: 82.98 kB / 0.6277 GB, free: 7.039 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005111/0.8141, allocations: 1.29 MB / 0.629 GB, free: 5.715 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.826e-05/0.8142, allocations: 23.98 kB / 0.629 GB, free: 5.691 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.675e-06/0.8142, allocations: 3.953 kB / 0.629 GB, free: 5.688 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.8143, allocations: 3.984 kB / 0.629 GB, free: 5.684 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007677/0.8219, allocations: 2.49 MB / 0.6314 GB, free: 3.109 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.594e-06/0.822, allocations: 3.938 kB / 0.6314 GB, free: 3.105 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/0.8234, allocations: 143.8 kB / 0.6316 GB, free: 2.965 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001118/0.8235, allocations: 24.95 kB / 0.6316 GB, free: 2.938 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001048/0.8236, allocations: 27.97 kB / 0.6316 GB, free: 2.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001409/0.825, allocations: 1.381 MB / 0.633 GB, free: 1.395 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.8251, allocations: 3.938 kB / 0.633 GB, free: 1.391 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007196/0.8323, allocations: 2.035 MB / 0.635 GB, free: 15.28 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006291/0.8329, allocations: 252 kB / 0.6352 GB, free: 15.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000317/0.8333, allocations: 79.89 kB / 0.6353 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001377/0.8347, allocations: 111.9 kB / 0.6354 GB, free: 14.83 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001969/0.8349, allocations: 48.58 kB / 0.6354 GB, free: 14.78 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.835, allocations: 39.92 kB / 0.6355 GB, free: 14.74 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007997/0.8358, allocations: 394.8 kB / 0.6358 GB, free: 14.35 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.8358, allocations: 0 / 0.6358 GB, free: 14.35 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001346/0.8372, allocations: 251.9 kB / 0.6361 GB, free: 14.11 MB / 442.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.008066/0.8452, allocations: 2.956 MB / 0.639 GB, free: 11.07 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004682/0.85, allocations: 1.673 MB / 0.6406 GB, free: 9.359 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.85, allocations: 1.562 kB / 0.6406 GB, free: 9.359 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002507/0.8525, allocations: 0.6901 MB / 0.6413 GB, free: 8.656 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/0.8538, allocations: 154.4 kB / 0.6414 GB, free: 8.508 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01875/0.8726, allocations: 12.37 MB / 0.6535 GB, free: 11.85 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001193/0.8738, allocations: 1.13 MB / 0.6546 GB, free: 10.69 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/0.8751, allocations: 335.3 kB / 0.6549 GB, free: 10.36 MB / 458.7 MB Notification: Performance of SimCode: time 1.693e-06/0.8751, allocations: 0 / 0.6549 GB, free: 10.36 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.468/4.343, allocations: 21.55 MB / 0.676 GB, free: 4.793 MB / 474.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)