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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 111 kB / 17.06 MB, free: 5.965 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.001305/0.001305, allocations: 198.9 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.393/1.393, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1739/0.1739, allocations: 37.99 MB / 309.2 MB, free: 5.945 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 71.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09488/0.09628, allocations: 55.24 MB / 486.6 MB, free: 8.852 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.007404/0.1037, allocations: 5.974 MB / 492.6 MB, free: 2.844 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00274/0.1065, allocations: 1.59 MB / 494.2 MB, free: 1.246 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004294/0.107, allocations: 23.88 kB / 494.2 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005162/0.1075, allocations: 138.9 kB / 494.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009893/0.1085, allocations: 366.2 kB / 494.7 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006605/0.1092, allocations: 319.4 kB / 495 MB, free: 424 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001543/0.1108, allocations: 1.344 MB / 496.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005026/0.1113, allocations: 360.6 kB / 496.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001013/0.1123, allocations: 0.5529 MB / 497.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001008/0.1133, allocations: 0.5375 MB / 497.8 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001943/0.1135, allocations: 92 kB / 497.9 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002039/0.1137, allocations: 88 kB / 498 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003668/0.1141, allocations: 355.2 kB / 498.3 MB, free: 13.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005305/0.1147, allocations: 414.2 kB / 498.7 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001047/0.1157, allocations: 1.059 MB / 499.8 MB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1157, allocations: 0 / 499.8 MB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1157, allocations: 0 / 499.8 MB, free: 11.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.351e-05/0.1158, allocations: 4 kB / 499.8 MB, free: 11.62 MB / 382.1 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.003295/0.1191, allocations: 1.192 MB / 0.4892 GB, free: 10.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.1191, allocations: 15.89 kB / 0.4892 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001981/0.1194, allocations: 102.7 kB / 0.4893 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002157/0.1196, allocations: 84.09 kB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001511/0.1211, allocations: 0.6705 MB / 0.4901 GB, free: 9.449 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004352/0.1215, allocations: 339.2 kB / 0.4904 GB, free: 9.066 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/0.1217, allocations: 59.91 kB / 0.4904 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002264/0.124, allocations: 1.042 MB / 0.4915 GB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.124, allocations: 4 kB / 0.4915 GB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.413e-05/0.1241, allocations: 24 kB / 0.4915 GB, free: 7.906 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.709e-05/0.1241, allocations: 19.98 kB / 0.4915 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002657/0.1268, allocations: 1.089 MB / 0.4926 GB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005289/0.1321, allocations: 3.189 MB / 0.4957 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002179/0.1343, allocations: 0.7567 MB / 0.4964 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.1357, allocations: 0.5299 MB / 0.4969 GB, free: 2.199 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.844e-05/0.1358, allocations: 12.42 kB / 0.497 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001495/0.1373, allocations: 0.6225 MB / 0.4976 GB, free: 1.535 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.156e-06/0.1373, allocations: 0 / 0.4976 GB, free: 1.535 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.003987/0.1413, allocations: 1.362 MB / 0.4989 GB, free: 172 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.1414, allocations: 144.5 kB / 0.499 GB, free: 16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004706/0.1419, allocations: 393.8 kB / 0.4994 GB, free: 15.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.925e-05/0.142, allocations: 41.69 kB / 0.4994 GB, free: 15.56 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002264/0.1422, allocations: 292.4 kB / 0.4997 GB, free: 15.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.1424, allocations: 161.7 kB / 0.4999 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002266/0.1426, allocations: 122.1 kB / 0.5 GB, free: 14.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.1428, allocations: 354.8 kB / 0.5003 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001085/0.1439, allocations: 460.9 kB / 0.5008 GB, free: 14.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001095/0.145, allocations: 0.5523 MB / 0.5013 GB, free: 13.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001986/0.147, allocations: 0.8856 MB / 0.5022 GB, free: 12.65 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.147, allocations: 4 kB / 0.5022 GB, free: 12.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002459/0.1495, allocations: 1.093 MB / 0.5033 GB, free: 11.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.855e-05/0.1496, allocations: 53.69 kB / 0.5033 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.1496, allocations: 0 / 0.5033 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.1496, allocations: 8 kB / 0.5033 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005895/0.1555, allocations: 1.108 MB / 0.5044 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00803/0.1636, allocations: 4.697 MB / 0.509 GB, free: 5.387 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008222/0.1644, allocations: 103.4 kB / 0.5091 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.1646, allocations: 47.97 kB / 0.5091 GB, free: 5.238 MB / 398.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: 14 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,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) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004357/0.165, allocations: 243.4 kB / 0.5094 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001337/0.1651, allocations: 67.2 kB / 0.5094 GB, free: 4.926 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002731/0.1679, allocations: 0.981 MB / 0.5104 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.1679, allocations: 4 kB / 0.5104 GB, free: 3.934 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1679, allocations: 8 kB / 0.5104 GB, free: 3.926 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.1679, allocations: 7.969 kB / 0.5104 GB, free: 3.918 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00437/0.1723, allocations: 2.13 MB / 0.5125 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.1723, allocations: 4 kB / 0.5125 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007148/0.1795, allocations: 1.28 MB / 0.5137 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.306e-05/0.1795, allocations: 7.938 kB / 0.5137 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001027/0.1796, allocations: 15.98 kB / 0.5138 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.201e-06/0.1796, allocations: 4 kB / 0.5138 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.1797, allocations: 11.92 kB / 0.5138 GB, free: 392 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004596/0.1843, allocations: 1.689 MB / 0.5154 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004642/0.1848, allocations: 208.3 kB / 0.5156 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/0.1849, allocations: 31.98 kB / 0.5156 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007443/0.1857, allocations: 87.88 kB / 0.5157 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/0.1859, allocations: 91.8 kB / 0.5158 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.481e-05/0.186, allocations: 23.98 kB / 0.5158 GB, free: 14.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003252/0.1863, allocations: 271.1 kB / 0.5161 GB, free: 13.94 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1863, allocations: 0 / 0.5161 GB, free: 13.94 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006766/0.187, allocations: 171.7 kB / 0.5163 GB, free: 13.77 MB / 414.1 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]) * Number of clocked states: 0 () * 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 (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.004636/0.1917, allocations: 2.271 MB / 0.5185 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007746/0.1994, allocations: 2.078 MB / 0.5205 GB, free: 9.348 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.1995, allocations: 0 / 0.5205 GB, free: 9.348 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00365/0.2031, allocations: 0.9602 MB / 0.5215 GB, free: 8.387 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008982/0.204, allocations: 145.3 kB / 0.5216 GB, free: 8.246 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.2156, allocations: 6.573 MB / 0.528 GB, free: 1.469 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005318/0.2162, allocations: 0.929 MB / 0.5289 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005155/0.2167, allocations: 156.6 kB / 0.5291 GB, free: 368 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003526/0.2171, allocations: 199.4 kB / 0.5293 GB, free: 168 kB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2171, allocations: 0 / 0.5293 GB, free: 168 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2392/0.4563, allocations: 13.92 MB / 0.5429 GB, free: 50.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.41, allocations: 13.88 kB / 0.5429 GB, free: 50.43 MB / 414.1 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/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)