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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.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.001228/0.001228, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.00131/0.00131, allocations: 193.4 kB / 18 MB, free: 5.172 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.369/1.369, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1768/0.1768, allocations: 38.03 MB / 329.9 MB, free: 8.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 63.91 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2979, allocations: 58.05 MB / 0.5036 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.00623/0.3041, allocations: 6.553 MB / 0.51 GB, free: 2.914 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002652/0.3068, allocations: 1.659 MB / 0.5116 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004505/0.3073, allocations: 29.09 kB / 0.5117 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005163/0.3078, allocations: 150.5 kB / 0.5118 GB, free: 1.664 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009323/0.3088, allocations: 442.7 kB / 0.5122 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008102/0.3097, allocations: 351.3 kB / 0.5126 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001631/0.3113, allocations: 1.507 MB / 0.514 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004805/0.3118, allocations: 403 kB / 0.5144 GB, free: 432 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009526/0.3128, allocations: 0.5974 MB / 0.515 GB, free: 164 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001125/0.3139, allocations: 0.6435 MB / 0.5156 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002138/0.3141, allocations: 98.41 kB / 0.5157 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002603/0.3144, allocations: 98 kB / 0.5158 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005671/0.315, allocations: 417.8 kB / 0.5162 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006444/0.3156, allocations: 465.9 kB / 0.5167 GB, free: 15.49 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001954/0.3176, allocations: 1.185 MB / 0.5178 GB, free: 15.06 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.3176, allocations: 3.938 kB / 0.5178 GB, free: 15.05 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3176, allocations: 4 kB / 0.5178 GB, free: 15.05 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.378e-05/0.3177, allocations: 1.406 kB / 0.5178 GB, free: 15.05 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.003555/0.3212, allocations: 1.328 MB / 0.5191 GB, free: 14.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.3213, allocations: 9.281 kB / 0.5191 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001889/0.3215, allocations: 116.9 kB / 0.5192 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/0.3217, allocations: 97.3 kB / 0.5193 GB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001458/0.3231, allocations: 0.7468 MB / 0.5201 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005447/0.3237, allocations: 344.4 kB / 0.5204 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001524/0.3239, allocations: 69.53 kB / 0.5205 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002597/0.3265, allocations: 1.141 MB / 0.5216 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.836e-05/0.3265, allocations: 0 / 0.5216 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.174e-05/0.3266, allocations: 31.77 kB / 0.5216 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/0.3267, allocations: 37.86 kB / 0.5216 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002868/0.3296, allocations: 1.175 MB / 0.5228 GB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005762/0.3354, allocations: 3.489 MB / 0.5262 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002662/0.3381, allocations: 0.9577 MB / 0.5271 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001816/0.3399, allocations: 0.6904 MB / 0.5278 GB, free: 9.871 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.859e-05/0.34, allocations: 7.688 kB / 0.5278 GB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001624/0.3416, allocations: 0.6886 MB / 0.5285 GB, free: 9.445 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.335e-06/0.3416, allocations: 0 / 0.5285 GB, free: 9.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.02097/0.3626, allocations: 5.671 MB / 0.534 GB, free: 6.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.443e-05/0.3627, allocations: 93.56 kB / 0.5341 GB, free: 6.398 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006919/0.3634, allocations: 480 kB / 0.5346 GB, free: 6.105 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001603/0.3636, allocations: 39.55 kB / 0.5346 GB, free: 6.066 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003024/0.3639, allocations: 335.8 kB / 0.5349 GB, free: 5.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002699/0.3642, allocations: 209.3 kB / 0.5351 GB, free: 5.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002646/0.3645, allocations: 129.2 kB / 0.5353 GB, free: 5.516 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.3647, allocations: 370.2 kB / 0.5356 GB, free: 5.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001272/0.3659, allocations: 0.5077 MB / 0.5361 GB, free: 4.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/0.3672, allocations: 0.6235 MB / 0.5367 GB, free: 4.52 MB / 398.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.007385/0.3746, allocations: 3.136 MB / 0.5398 GB, free: 2.895 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.3746, allocations: 1.469 kB / 0.5398 GB, free: 2.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008184/0.3828, allocations: 2.501 MB / 0.5422 GB, free: 0.543 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.685e-05/0.3829, allocations: 53.69 kB / 0.5423 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/0.3829, allocations: 0 / 0.5423 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00265/0.3856, allocations: 1.089 MB / 0.5433 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005312/0.3861, allocations: 115.7 kB / 0.5434 GB, free: 15.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01711/0.4033, allocations: 6.853 MB / 0.5501 GB, free: 8.285 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008905/0.4042, allocations: 83.95 kB / 0.5502 GB, free: 8.203 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.4043, allocations: 47.97 kB / 0.5503 GB, free: 8.156 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: 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.0005356/0.4049, allocations: 287.4 kB / 0.5505 GB, free: 7.863 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.405, allocations: 63.58 kB / 0.5506 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008513/0.4135, allocations: 2.433 MB / 0.553 GB, free: 5.352 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.28e-05/0.4135, allocations: 8 kB / 0.553 GB, free: 5.344 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.4136, allocations: 0 / 0.553 GB, free: 5.344 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.4136, allocations: 4 kB / 0.553 GB, free: 5.34 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01052/0.4241, allocations: 3.548 MB / 0.5565 GB, free: 1.707 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.354e-05/0.4242, allocations: 4 kB / 0.5565 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004207/0.4246, allocations: 79.95 kB / 0.5565 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002653/0.4272, allocations: 1.096 MB / 0.5576 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/0.4274, allocations: 23.98 kB / 0.5576 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01714/0.4445, allocations: 6.83 MB / 0.5643 GB, free: 9.531 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.4446, allocations: 0 / 0.5643 GB, free: 9.531 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01046/0.455, allocations: 3.2 MB / 0.5674 GB, free: 6.289 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004953/0.4556, allocations: 224.7 kB / 0.5676 GB, free: 6.051 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/0.4557, allocations: 35.98 kB / 0.5677 GB, free: 6.016 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007666/0.4565, allocations: 99.8 kB / 0.5678 GB, free: 5.918 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004298/0.4569, allocations: 172.2 kB / 0.5679 GB, free: 5.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.8e-05/0.457, allocations: 23.98 kB / 0.5679 GB, free: 5.727 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004381/0.4575, allocations: 326.9 kB / 0.5683 GB, free: 5.41 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4575, allocations: 4 kB / 0.5683 GB, free: 5.406 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009569/0.4584, allocations: 224 kB / 0.5685 GB, free: 5.188 MB / 430.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.01078/0.4692, allocations: 3.768 MB / 0.5722 GB, free: 1.371 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004966/0.4742, allocations: 1.739 MB / 0.5739 GB, free: 15.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/0.4743, allocations: 0 / 0.5739 GB, free: 15.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003446/0.4777, allocations: 1.111 MB / 0.5749 GB, free: 14.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.4788, allocations: 160.2 kB / 0.5751 GB, free: 14.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02469/0.5035, allocations: 9.879 MB / 0.5847 GB, free: 4.227 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007095/0.5042, allocations: 0.9967 MB / 0.5857 GB, free: 3.199 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004318/0.5047, allocations: 129.1 kB / 0.5858 GB, free: 3.074 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003684/0.505, allocations: 227.4 kB / 0.5861 GB, free: 2.852 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.505, allocations: 0 / 0.5861 GB, free: 2.852 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05812/0.5632, allocations: 22.72 MB / 0.6082 GB, free: 12.34 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/12.83, allocations: 15.11 kB / 0.6083 GB, free: 12.32 MB / 478.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)