Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",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.0007068/0.0007068, allocations: 89.16 kB / 16.65 MB, free: 6.535 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.0007342/0.0007343, allocations: 175.2 kB / 17.56 MB, free: 6.184 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.209/1.209, allocations: 205.4 MB / 223.7 MB, free: 13.09 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1615/0.1615, allocations: 38.05 MB / 310.1 MB, free: 5.914 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.0004881/0.0004881, allocations: 16.61 kB / 377.3 MB, free: 2.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1902/0.1907, allocations: 56.33 MB / 433.6 MB, free: 18.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.005001/0.1957, allocations: 7.35 MB / 440.9 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00224/0.198, allocations: 2.066 MB / 443 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003114/0.1983, allocations: 47.69 kB / 443.1 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000345/0.1986, allocations: 135.1 kB / 443.2 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005661/0.1992, allocations: 418.2 kB / 443.6 MB, free: 8.609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004058/0.1996, allocations: 311.6 kB / 443.9 MB, free: 8.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001096/0.2007, allocations: 1.999 MB / 445.9 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003085/0.2011, allocations: 332.2 kB / 446.2 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004367/0.2015, allocations: 490 kB / 446.7 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005721/0.2021, allocations: 0.6347 MB / 447.3 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.489e-05/0.2022, allocations: 44 kB / 447.4 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.931e-05/0.2023, allocations: 44 kB / 447.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002359/0.2025, allocations: 359.1 kB / 447.8 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002753/0.2028, allocations: 427.7 kB / 448.2 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006254/0.2034, allocations: 1.102 MB / 449.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2034, allocations: 4 kB / 449.3 MB, free: 2.887 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2034, allocations: 4 kB / 449.3 MB, free: 2.883 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.786e-06/0.2035, allocations: 0 / 449.3 MB, free: 2.883 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002111/0.2056, allocations: 1.165 MB / 450.5 MB, free: 1.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.2056, allocations: 8.031 kB / 450.5 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001451/0.2058, allocations: 126.7 kB / 450.6 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.2059, allocations: 92 kB / 450.7 MB, free: 1.422 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001053/0.207, allocations: 0.6937 MB / 451.4 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003269/0.2073, allocations: 354.8 kB / 451.7 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.2075, allocations: 67.98 kB / 451.8 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002158/0.2096, allocations: 1.208 MB / 453 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.2097, allocations: 3.938 kB / 453 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.76e-05/0.2097, allocations: 24 kB / 453 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001063/0.2099, allocations: 41.28 kB / 453.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00267/0.2125, allocations: 1.289 MB / 454.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004638/0.2172, allocations: 3.555 MB / 457.9 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002495/0.2197, allocations: 1.054 MB / 459 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001624/0.2213, allocations: 0.7372 MB / 459.7 MB, free: 8.145 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.009e-05/0.2214, allocations: 8.562 kB / 459.7 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001522/0.2229, allocations: 0.7475 MB / 460.5 MB, free: 7.367 MB / 334.1 MB Notification: Performance of pre-optimization done (n=59): time 2.706e-06/0.2229, allocations: 0 / 460.5 MB, free: 7.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.02012/0.2431, allocations: 6.983 MB / 467.4 MB, free: 312 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.016e-05/0.2431, allocations: 89.67 kB / 467.5 MB, free: 204 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004713/0.2436, allocations: 469.9 kB / 468 MB, free: 15.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.828e-05/0.2437, allocations: 45.64 kB / 468 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/0.2439, allocations: 332 kB / 468.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001488/0.2441, allocations: 197.2 kB / 468.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.276e-05/0.2442, allocations: 69.67 kB / 468.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.2443, allocations: 366.8 kB / 469 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.2454, allocations: 0.5637 MB / 469.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.2466, allocations: 0.6766 MB / 470.2 MB, free: 13.43 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.006869/0.2534, allocations: 3.389 MB / 473.6 MB, free: 9.961 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.2535, allocations: 0 / 473.6 MB, free: 9.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008029/0.2615, allocations: 3.049 MB / 476.7 MB, free: 6.891 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.182e-05/0.2616, allocations: 49.69 kB / 476.7 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.2616, allocations: 4 kB / 476.7 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002407/0.264, allocations: 1.188 MB / 477.9 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004264/0.2644, allocations: 115.8 kB / 478 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01512/0.2796, allocations: 7.146 MB / 485.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007725/0.2804, allocations: 115.9 kB / 485.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.635e-05/0.2804, allocations: 35.98 kB / 485.3 MB, free: 14.1 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * 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 {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.000404/0.2809, allocations: 291.4 kB / 485.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.948e-05/0.281, allocations: 59.25 kB / 485.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008379/0.2893, allocations: 3.003 MB / 488.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.2894, allocations: 8 kB / 488.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.2894, allocations: 7.938 kB / 488.7 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.2894, allocations: 3.984 kB / 488.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009732/0.2991, allocations: 4.145 MB / 492.8 MB, free: 6.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.2992, allocations: 3.938 kB / 492.8 MB, free: 6.473 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003383/0.2995, allocations: 75.89 kB / 492.9 MB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002398/0.3019, allocations: 1.199 MB / 494.1 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.213e-05/0.302, allocations: 19.98 kB / 494.1 MB, free: 5.176 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01492/0.3169, allocations: 7.119 MB / 0.4895 GB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.3169, allocations: 8 kB / 0.4895 GB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009885/0.3268, allocations: 3.836 MB / 0.4932 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003417/0.3272, allocations: 220.3 kB / 0.4934 GB, free: 9.797 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.3273, allocations: 31.98 kB / 0.4935 GB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007386/0.3281, allocations: 131.9 kB / 0.4936 GB, free: 9.637 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000363/0.3285, allocations: 164.3 kB / 0.4938 GB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.281e-05/0.3285, allocations: 23.98 kB / 0.4938 GB, free: 9.453 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003283/0.3288, allocations: 326.9 kB / 0.4941 GB, free: 9.137 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3289, allocations: 3.938 kB / 0.4941 GB, free: 9.133 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007511/0.3296, allocations: 227.9 kB / 0.4943 GB, free: 8.91 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * 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 (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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 {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01001/0.3396, allocations: 4.409 MB / 0.4986 GB, free: 4.449 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004513/0.3442, allocations: 1.946 MB / 0.5005 GB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3442, allocations: 0 / 0.5005 GB, free: 2.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003175/0.3474, allocations: 1.279 MB / 0.5018 GB, free: 1.188 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009201/0.3483, allocations: 166.2 kB / 0.5019 GB, free: 1.027 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02201/0.3703, allocations: 11.46 MB / 0.5131 GB, free: 5.355 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004996/0.3708, allocations: 1.001 MB / 0.5141 GB, free: 4.328 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003675/0.3712, allocations: 117.2 kB / 0.5142 GB, free: 4.211 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002782/0.3715, allocations: 231.4 kB / 0.5144 GB, free: 3.984 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3715, allocations: 7.938 kB / 0.5144 GB, free: 3.977 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.776/2.148, allocations: 20.96 MB / 0.5349 GB, free: 81.53 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001928/2.148, allocations: 236.8 kB / 0.5351 GB, free: 81.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.202/4.35, allocations: 0 / 0.5351 GB, free: 81.27 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)