Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",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.001152/0.001152, allocations: 179.8 kB / 8.352 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.717/1.717, allocations: 194.3 MB / 203.1 MB, free: 13.03 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.001719/0.001719, allocations: 116.7 kB / 248.1 MB, free: 36 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1642/0.1642, allocations: 37.93 MB / 330.9 MB, free: 2.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.31e-05/2.31e-05, allocations: 4 kB / 390.5 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2836, allocations: 53.23 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1386/0.4223, allocations: 96.29 MB / 0.5273 GB, free: 1.242 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003001/0.4227, allocations: 87.95 kB / 0.5274 GB, free: 1.156 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3239/0.7466, allocations: 15.51 MB / 0.5426 GB, free: 86.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.7467, allocations: 0 / 0.5426 GB, free: 86.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.634e-05/0.7468, allocations: 19.94 kB / 0.5426 GB, free: 86.82 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002384/0.7492, allocations: 1.046 MB / 0.5436 GB, free: 85.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/0.7493, allocations: 12.03 kB / 0.5436 GB, free: 85.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002173/0.7495, allocations: 83.16 kB / 0.5437 GB, free: 85.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003487/0.753, allocations: 1.206 MB / 0.5449 GB, free: 84.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004295/0.7534, allocations: 323.5 kB / 0.5452 GB, free: 84.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.7536, allocations: 40 kB / 0.5452 GB, free: 83.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001264/0.7548, allocations: 0.8029 MB / 0.546 GB, free: 83.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001096/0.7559, allocations: 0.8237 MB / 0.5468 GB, free: 82.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.756, allocations: 0 / 0.5468 GB, free: 82.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.914e-05/0.7561, allocations: 4 kB / 0.5468 GB, free: 82.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.7561, allocations: 12 kB / 0.5468 GB, free: 82.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004208/0.7603, allocations: 3.146 MB / 0.5499 GB, free: 79.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007527/0.7611, allocations: 0.5184 MB / 0.5504 GB, free: 78.55 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004739/0.7616, allocations: 386.8 kB / 0.5508 GB, free: 78.17 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.6e-05/0.7616, allocations: 12.38 kB / 0.5508 GB, free: 78.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005779/0.7622, allocations: 470.7 kB / 0.5512 GB, free: 77.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 3.356e-06/0.7622, allocations: 0 / 0.5512 GB, free: 77.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009736/0.7632, allocations: 0.6248 MB / 0.5518 GB, free: 77.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.7633, allocations: 136.5 kB / 0.552 GB, free: 76.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.7635, allocations: 302.1 kB / 0.5522 GB, free: 76.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.27e-05/0.7636, allocations: 33.69 kB / 0.5523 GB, free: 76.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.7637, allocations: 304.1 kB / 0.5526 GB, free: 76.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.7639, allocations: 153.8 kB / 0.5527 GB, free: 76.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.766e-05/0.7639, allocations: 7.938 kB / 0.5527 GB, free: 76.08 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.335e-05/0.764, allocations: 354.8 kB / 0.5531 GB, free: 75.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003684/0.7644, allocations: 321.2 kB / 0.5534 GB, free: 75.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003997/0.7648, allocations: 429.4 kB / 0.5538 GB, free: 74.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.7651, allocations: 294 kB / 0.5541 GB, free: 74.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.7651, allocations: 0 / 0.5541 GB, free: 74.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0009538/0.7661, allocations: 0.7482 MB / 0.5548 GB, free: 73.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.984e-05/0.7662, allocations: 50.84 kB / 0.5548 GB, free: 73.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.7662, allocations: 8 kB / 0.5548 GB, free: 73.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.7662, allocations: 4 kB / 0.5549 GB, free: 73.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005872/0.7721, allocations: 1.588 MB / 0.5564 GB, free: 72.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004317/0.7765, allocations: 3.95 MB / 0.5603 GB, free: 68.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008546/0.7773, allocations: 127.4 kB / 0.5604 GB, free: 67.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.94e-05/0.7775, allocations: 39.88 kB / 0.5604 GB, free: 67.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.modulator.t0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002091/0.7777, allocations: 138.6 kB / 0.5606 GB, free: 67.77 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008476/0.7785, allocations: 0.6176 MB / 0.5612 GB, free: 67.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.719e-05/0.7786, allocations: 47.44 kB / 0.5612 GB, free: 67.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009532/0.7796, allocations: 0.665 MB / 0.5618 GB, free: 66.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.7796, allocations: 8 kB / 0.5619 GB, free: 66.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.7796, allocations: 3.953 kB / 0.5619 GB, free: 66.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.7796, allocations: 4.094 kB / 0.5619 GB, free: 66.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/0.7816, allocations: 1.761 MB / 0.5636 GB, free: 64.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.7816, allocations: 0 / 0.5636 GB, free: 64.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007163/0.7888, allocations: 1.838 MB / 0.5654 GB, free: 62.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.617e-05/0.7888, allocations: 4 kB / 0.5654 GB, free: 62.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/0.789, allocations: 8 kB / 0.5654 GB, free: 62.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.816e-06/0.789, allocations: 15.92 kB / 0.5654 GB, free: 62.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.789, allocations: 0 / 0.5654 GB, free: 62.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.7905, allocations: 1.313 MB / 0.5667 GB, free: 61.33 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003405/0.7909, allocations: 204.4 kB / 0.5669 GB, free: 61.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.791, allocations: 32.02 kB / 0.5669 GB, free: 61.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006764/0.7917, allocations: 111.9 kB / 0.567 GB, free: 60.97 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/0.7919, allocations: 103.5 kB / 0.5671 GB, free: 60.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.657e-05/0.7919, allocations: 23.98 kB / 0.5671 GB, free: 60.85 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002412/0.7922, allocations: 216.6 kB / 0.5673 GB, free: 60.63 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7922, allocations: 0 / 0.5673 GB, free: 60.63 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007505/0.7929, allocations: 163.6 kB / 0.5675 GB, free: 60.47 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001775/0.7947, allocations: 2.378 MB / 0.5698 GB, free: 58.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005577/0.8003, allocations: 2.038 MB / 0.5718 GB, free: 55.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/0.8004, allocations: 4.312 kB / 0.5718 GB, free: 55.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003048/0.8034, allocations: 0.9874 MB / 0.5728 GB, free: 54.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008717/0.8043, allocations: 101.1 kB / 0.5729 GB, free: 54.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003371/0.8077, allocations: 1.397 MB / 0.5742 GB, free: 53.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003547/0.8081, allocations: 0.9447 MB / 0.5752 GB, free: 52.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005346/0.8086, allocations: 152.4 kB / 0.5753 GB, free: 52.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003115/0.8089, allocations: 199.4 kB / 0.5755 GB, free: 52.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.252e-06/0.8089, allocations: 0 / 0.5755 GB, free: 52.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03134/0.8403, allocations: 11.4 MB / 0.5866 GB, free: 40.69 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001513/0.8405, allocations: 145.6 kB / 0.5868 GB, free: 40.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.263/3.104, allocations: 0 / 0.5868 GB, free: 40.5 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)