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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Inverter,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.0009431/0.0009431, allocations: 179 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.339/1.339, allocations: 194.5 MB / 211.6 MB, free: 2.973 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001607/0.001607, allocations: 115.6 kB / 256.9 MB, free: 4.379 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1643/0.1643, allocations: 38 MB / 340.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003654, allocations: 12 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1019, allocations: 53.23 MB / 457.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3641/0.4661, allocations: 107.5 MB / 0.5513 GB, free: 4.078 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002667/0.4664, allocations: 92.2 kB / 0.5514 GB, free: 4.027 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06392/0.5303, allocations: 24.05 MB / 0.5749 GB, free: 15.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.5304, allocations: 0 / 0.5749 GB, free: 15.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.448e-05/0.5304, allocations: 24 kB / 0.5749 GB, free: 15.3 MB / 394.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.002914/0.5333, allocations: 1.415 MB / 0.5763 GB, free: 13.88 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.5334, allocations: 12.02 kB / 0.5763 GB, free: 13.87 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002484/0.5337, allocations: 165.1 kB / 0.5765 GB, free: 13.76 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000787/0.5345, allocations: 166.5 kB / 0.5766 GB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003797/0.5383, allocations: 1.396 MB / 0.578 GB, free: 12.39 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001642/0.5384, allocations: 179.8 kB / 0.5782 GB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001572/0.5386, allocations: 92.05 kB / 0.5783 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002606/0.5412, allocations: 1.534 MB / 0.5798 GB, free: 10.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.885e-05/0.5413, allocations: 7.938 kB / 0.5798 GB, free: 10.95 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.5414, allocations: 44.25 kB / 0.5798 GB, free: 10.94 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.308e-05/0.5415, allocations: 57.05 kB / 0.5799 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00201/0.5435, allocations: 1.155 MB / 0.581 GB, free: 10.07 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005904/0.5494, allocations: 4.785 MB / 0.5857 GB, free: 5.945 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0027/0.5521, allocations: 1.191 MB / 0.5868 GB, free: 4.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.478e-05/0.5522, allocations: 8.625 kB / 0.5868 GB, free: 4.973 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001379/0.5536, allocations: 0.739 MB / 0.5876 GB, free: 4.387 MB / 394.7 MB Notification: Performance of pre-optimization done (n=82): time 3.186e-06/0.5536, allocations: 0 / 0.5876 GB, free: 4.387 MB / 394.7 MB Notification: Performance of matching and sorting (n=83): time 0.006903/0.5605, allocations: 3.468 MB / 0.5909 GB, free: 1.438 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.253e-05/0.5606, allocations: 122.7 kB / 0.5911 GB, free: 1.297 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006462/0.5613, allocations: 0.5226 MB / 0.5916 GB, free: 0.8789 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.278e-05/0.5614, allocations: 52.12 kB / 0.5916 GB, free: 0.832 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000358/0.5617, allocations: 458.1 kB / 0.5921 GB, free: 496 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.5619, allocations: 278 kB / 0.5923 GB, free: 252 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.414e-05/0.562, allocations: 17.56 kB / 0.5923 GB, free: 248 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001769/0.5622, allocations: 388 kB / 0.5927 GB, free: 15.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006536/0.5628, allocations: 0.4988 MB / 0.5932 GB, free: 15.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008109/0.5636, allocations: 0.7761 MB / 0.594 GB, free: 14.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007658/0.5644, allocations: 0.6479 MB / 0.5946 GB, free: 14.42 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.5644, allocations: 7.938 kB / 0.5946 GB, free: 14.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002291/0.5667, allocations: 1.611 MB / 0.5962 GB, free: 12.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.982e-05/0.5668, allocations: 61.67 kB / 0.5962 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001832/0.5687, allocations: 1.371 MB / 0.5976 GB, free: 11.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003725/0.569, allocations: 97.92 kB / 0.5977 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000762/0.5698, allocations: 199.6 kB / 0.5978 GB, free: 11.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002426/0.5723, allocations: 3.005 MB / 0.6008 GB, free: 7.918 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006381/0.5729, allocations: 83.81 kB / 0.6009 GB, free: 7.836 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.573, allocations: 71.89 kB / 0.6009 GB, free: 7.766 MB / 410.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.0006484/0.5737, allocations: 373.6 kB / 0.6013 GB, free: 7.391 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001418/0.5738, allocations: 75.06 kB / 0.6014 GB, free: 7.316 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002671/0.5765, allocations: 1.298 MB / 0.6026 GB, free: 5.984 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.513e-05/0.5765, allocations: 16 kB / 0.6026 GB, free: 5.969 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.5766, allocations: 4 kB / 0.6026 GB, free: 5.965 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.5766, allocations: 3.984 kB / 0.6027 GB, free: 5.961 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004216/0.5808, allocations: 2.478 MB / 0.6051 GB, free: 3.398 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.5808, allocations: 7.938 kB / 0.6051 GB, free: 3.391 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006854/0.5815, allocations: 143.8 kB / 0.6052 GB, free: 3.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.553e-05/0.5816, allocations: 24.84 kB / 0.6052 GB, free: 3.223 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.145e-05/0.5817, allocations: 31.97 kB / 0.6053 GB, free: 3.191 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008927/0.5826, allocations: 1.385 MB / 0.6066 GB, free: 1.672 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.5826, allocations: 12.19 kB / 0.6066 GB, free: 1.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003663/0.5863, allocations: 2.031 MB / 0.6086 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004633/0.5868, allocations: 244.1 kB / 0.6088 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/0.5869, allocations: 75.94 kB / 0.6089 GB, free: 15.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007053/0.5877, allocations: 107.9 kB / 0.609 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.5878, allocations: 64.41 kB / 0.6091 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.278e-05/0.5879, allocations: 31.97 kB / 0.6091 GB, free: 15.02 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000479/0.5883, allocations: 394.8 kB / 0.6095 GB, free: 14.63 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5884, allocations: 4 kB / 0.6095 GB, free: 14.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009672/0.5893, allocations: 260.2 kB / 0.6097 GB, free: 14.37 MB / 426.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.004185/0.5935, allocations: 2.948 MB / 0.6126 GB, free: 11.35 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002642/0.5962, allocations: 1.681 MB / 0.6143 GB, free: 9.633 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.5962, allocations: 4 kB / 0.6143 GB, free: 9.629 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.5975, allocations: 0.6831 MB / 0.6149 GB, free: 8.934 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008749/0.5984, allocations: 154.8 kB / 0.6151 GB, free: 8.781 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/0.6096, allocations: 12.3 MB / 0.6271 GB, free: 12.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006969/0.6103, allocations: 1.13 MB / 0.6282 GB, free: 11.04 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000681/0.611, allocations: 234.5 kB / 0.6284 GB, free: 10.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004879/0.6115, allocations: 331.3 kB / 0.6287 GB, free: 10.48 MB / 442.7 MB Notification: Performance of SimCode: time 1.213e-06/0.6115, allocations: 4 kB / 0.6287 GB, free: 10.47 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03324/0.6447, allocations: 17.7 MB / 0.646 GB, free: 8.766 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002047/0.645, allocations: 205.6 kB / 0.6462 GB, free: 8.516 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.506/3.151, allocations: 0 / 0.6462 GB, free: 8.516 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Inverter.pipe 2>&1)