Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001113, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.001135/0.001135, allocations: 195 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1907/0.1907, allocations: 38.03 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 67.89 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3696/0.371, allocations: 58.05 MB / 0.5036 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.008584/0.3796, allocations: 6.496 MB / 0.51 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004119/0.3838, allocations: 2.445 MB / 0.5123 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007045/0.3845, allocations: 25.03 kB / 0.5124 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00145/0.386, allocations: 435.5 kB / 0.5128 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001791/0.3878, allocations: 0.5946 MB / 0.5134 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001369/0.3892, allocations: 493.1 kB / 0.5138 GB, free: 456 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002598/0.3918, allocations: 1.96 MB / 0.5157 GB, free: 15.6 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001451/0.3932, allocations: 0.8621 MB / 0.5166 GB, free: 15.21 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001644/0.3949, allocations: 0.7899 MB / 0.5174 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001957/0.3969, allocations: 0.9699 MB / 0.5183 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005671/0.3975, allocations: 159.6 kB / 0.5185 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001558/0.399, allocations: 0.6417 MB / 0.5191 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001073/0.4001, allocations: 0.6438 MB / 0.5197 GB, free: 14.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001559/0.4017, allocations: 0.6723 MB / 0.5204 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003312/0.405, allocations: 2.044 MB / 0.5224 GB, free: 13.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.405, allocations: 0 / 0.5224 GB, free: 13.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.405, allocations: 0 / 0.5224 GB, free: 13.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.919e-05/0.4051, allocations: 0 / 0.5224 GB, free: 13.07 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.005493/0.4106, allocations: 1.905 MB / 0.5242 GB, free: 12.03 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.4106, allocations: 13.58 kB / 0.5242 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002914/0.4109, allocations: 166.5 kB / 0.5244 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007873/0.4117, allocations: 161.8 kB / 0.5246 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002294/0.414, allocations: 0.9723 MB / 0.5255 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006203/0.4147, allocations: 0.5003 MB / 0.526 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002708/0.415, allocations: 100.1 kB / 0.5261 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00402/0.419, allocations: 2.015 MB / 0.5281 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.88e-05/0.419, allocations: 3.594 kB / 0.5281 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001498/0.4192, allocations: 35.05 kB / 0.5281 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002041/0.4194, allocations: 93.17 kB / 0.5282 GB, free: 9.633 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00482/0.4242, allocations: 2.246 MB / 0.5304 GB, free: 8.551 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009931/0.4342, allocations: 5.666 MB / 0.5359 GB, free: 4.613 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00459/0.4388, allocations: 1.796 MB / 0.5377 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002503/0.4413, allocations: 1.149 MB / 0.5388 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.919e-05/0.4414, allocations: 15.98 kB / 0.5388 GB, free: 3.062 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002866/0.4443, allocations: 1.387 MB / 0.5401 GB, free: 2.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 6.483e-06/0.4443, allocations: 0 / 0.5401 GB, free: 2.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.01374/0.4581, allocations: 5.635 MB / 0.5457 GB, free: 13.17 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.911e-05/0.4582, allocations: 94.11 kB / 0.5457 GB, free: 13.06 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006984/0.4589, allocations: 0.4941 MB / 0.5462 GB, free: 12.56 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001551/0.4591, allocations: 53.7 kB / 0.5463 GB, free: 12.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003311/0.4594, allocations: 364.7 kB / 0.5466 GB, free: 12.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004254/0.4598, allocations: 422 kB / 0.547 GB, free: 11.72 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004789/0.4603, allocations: 226.9 kB / 0.5472 GB, free: 11.49 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002052/0.4605, allocations: 394.7 kB / 0.5476 GB, free: 11.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002048/0.4626, allocations: 1.021 MB / 0.5486 GB, free: 10.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002169/0.4648, allocations: 1.18 MB / 0.5498 GB, free: 8.855 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003887/0.4687, allocations: 2.039 MB / 0.5518 GB, free: 6.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.4687, allocations: 0 / 0.5518 GB, free: 6.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01081/0.4795, allocations: 3.903 MB / 0.5556 GB, free: 2.848 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.4796, allocations: 57.67 kB / 0.5556 GB, free: 2.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.4797, allocations: 0 / 0.5556 GB, free: 2.785 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005907/0.4856, allocations: 2.079 MB / 0.5577 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.4866, allocations: 187.8 kB / 0.5578 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02586/0.5125, allocations: 11.31 MB / 0.5689 GB, free: 5.062 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001509/0.514, allocations: 159.8 kB / 0.569 GB, free: 4.906 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003784/0.5144, allocations: 75.94 kB / 0.5691 GB, free: 4.832 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0009289/0.5154, allocations: 381.5 kB / 0.5695 GB, free: 4.449 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003873/0.5158, allocations: 83.05 kB / 0.5696 GB, free: 4.367 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006146/0.5219, allocations: 2.353 MB / 0.5718 GB, free: 2.004 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-05/0.522, allocations: 35.92 kB / 0.5719 GB, free: 1.969 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.522, allocations: 0 / 0.5719 GB, free: 1.969 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.522, allocations: 3.984 kB / 0.5719 GB, free: 1.965 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008487/0.5305, allocations: 4.101 MB / 0.5759 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/0.5306, allocations: 4 kB / 0.5759 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01028/0.5408, allocations: 2.017 MB / 0.5779 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.569e-05/0.5409, allocations: 11.94 kB / 0.5779 GB, free: 11.74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003549/0.5413, allocations: 31.97 kB / 0.5779 GB, free: 11.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-05/0.5413, allocations: 8 kB / 0.5779 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.5413, allocations: 4 kB / 0.5779 GB, free: 11.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008831/0.5501, allocations: 3.87 MB / 0.5817 GB, free: 7.781 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007711/0.5509, allocations: 336 kB / 0.582 GB, free: 7.434 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00037/0.5513, allocations: 91.88 kB / 0.5821 GB, free: 7.344 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001531/0.5529, allocations: 179.8 kB / 0.5823 GB, free: 7.168 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004416/0.5533, allocations: 200.6 kB / 0.5825 GB, free: 6.973 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.5535, allocations: 39.97 kB / 0.5825 GB, free: 6.934 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004622/0.5539, allocations: 350.8 kB / 0.5828 GB, free: 6.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5539, allocations: 0 / 0.5828 GB, free: 6.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001506/0.5555, allocations: 355.9 kB / 0.5832 GB, free: 6.242 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008885/0.5644, allocations: 4.532 MB / 0.5876 GB, free: 1.648 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006875/0.5713, allocations: 2.998 MB / 0.5905 GB, free: 14.62 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.154e-06/0.5713, allocations: 0 / 0.5905 GB, free: 14.62 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006191/0.5775, allocations: 1.934 MB / 0.5924 GB, free: 12.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001797/0.5793, allocations: 182.2 kB / 0.5926 GB, free: 12.52 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0379/0.6173, allocations: 15.63 MB / 0.6079 GB, free: 12.61 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00105/0.6183, allocations: 1.148 MB / 0.609 GB, free: 11.44 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001401/0.6198, allocations: 318.8 kB / 0.6093 GB, free: 11.12 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008363/0.6206, allocations: 343.3 kB / 0.6096 GB, free: 10.79 MB / 478.1 MB Notification: Performance of SimCode: time 1.243e-06/0.6206, allocations: 0 / 0.6096 GB, free: 10.79 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.067/0.6877, allocations: 33.43 MB / 0.6423 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.66/13.35, allocations: 7.922 kB / 0.6423 GB, free: 9.598 MB / 0.4981 GB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_latest_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)