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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 116.1 kB / 21.23 MB, free: 0.6016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001475/0.001475, allocations: 221 kB / 24.54 MB, free: 3.812 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.443/1.443, allocations: 230.6 MB / 258.3 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1819/0.1819, allocations: 38.54 MB / 353.3 MB, free: 12.53 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002924/0.002924, allocations: 59.91 kB / 493.3 MB, free: 4.883 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3153/0.3182, allocations: 62.46 MB / 0.5428 GB, free: 444 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.00918/0.3274, allocations: 6.756 MB / 0.5494 GB, free: 11.15 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00336/0.3307, allocations: 1.705 MB / 0.551 GB, free: 9.785 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005419/0.3313, allocations: 35.75 kB / 0.5511 GB, free: 9.766 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000621/0.3319, allocations: 164 kB / 0.5512 GB, free: 9.629 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001196/0.3331, allocations: 452.4 kB / 0.5516 GB, free: 9.266 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008917/0.334, allocations: 351.4 kB / 0.552 GB, free: 8.984 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002123/0.3361, allocations: 1.505 MB / 0.5535 GB, free: 8.113 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004734/0.3366, allocations: 254.6 kB / 0.5537 GB, free: 7.961 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001315/0.3379, allocations: 0.6317 MB / 0.5543 GB, free: 7.598 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001344/0.3392, allocations: 0.6948 MB / 0.555 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000274/0.3395, allocations: 99.44 kB / 0.5551 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003063/0.3398, allocations: 101.3 kB / 0.5552 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005267/0.3404, allocations: 425.6 kB / 0.5556 GB, free: 6.898 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008513/0.3412, allocations: 466.7 kB / 0.556 GB, free: 6.582 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001697/0.3429, allocations: 1.184 MB / 0.5572 GB, free: 5.727 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.3429, allocations: 4 kB / 0.5572 GB, free: 5.723 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.3429, allocations: 0 / 0.5572 GB, free: 5.723 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.991e-05/0.3429, allocations: 0 / 0.5572 GB, free: 5.723 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.003401/0.3464, allocations: 1.257 MB / 0.5584 GB, free: 4.422 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.445e-05/0.3464, allocations: 15.98 kB / 0.5584 GB, free: 4.406 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.231e-05/0.3464, allocations: 25.44 kB / 0.5585 GB, free: 4.379 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002001/0.3466, allocations: 118.7 kB / 0.5586 GB, free: 4.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002132/0.3469, allocations: 100.4 kB / 0.5587 GB, free: 4.156 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/0.3484, allocations: 0.6686 MB / 0.5593 GB, free: 3.461 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007058/0.3491, allocations: 0.7442 MB / 0.56 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001523/0.3493, allocations: 64 kB / 0.5601 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002601/0.3519, allocations: 1.145 MB / 0.5612 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.3519, allocations: 0 / 0.5612 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.208e-05/0.352, allocations: 28 kB / 0.5613 GB, free: 1.293 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001298/0.3521, allocations: 41.27 kB / 0.5613 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003083/0.3552, allocations: 1.172 MB / 0.5624 GB, free: 80 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00614/0.3614, allocations: 3.449 MB / 0.5658 GB, free: 12.54 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002749/0.3641, allocations: 0.9211 MB / 0.5667 GB, free: 11.6 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00184/0.366, allocations: 0.655 MB / 0.5673 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.258e-05/0.366, allocations: 4.5 kB / 0.5673 GB, free: 10.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00174/0.3677, allocations: 0.684 MB / 0.568 GB, free: 10.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.675e-06/0.3677, allocations: 4 kB / 0.568 GB, free: 10.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.02219/0.3899, allocations: 5.507 MB / 0.5734 GB, free: 4.672 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.635e-05/0.39, allocations: 105.5 kB / 0.5735 GB, free: 4.551 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006557/0.3907, allocations: 458 kB / 0.5739 GB, free: 4.094 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000135/0.3908, allocations: 41.7 kB / 0.574 GB, free: 4.047 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003416/0.3912, allocations: 332.8 kB / 0.5743 GB, free: 3.715 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002924/0.3915, allocations: 214.2 kB / 0.5745 GB, free: 3.504 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003041/0.3918, allocations: 134.3 kB / 0.5746 GB, free: 3.367 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.392, allocations: 374.7 kB / 0.575 GB, free: 2.992 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001265/0.3932, allocations: 0.5051 MB / 0.5755 GB, free: 2.488 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.3946, allocations: 0.6297 MB / 0.5761 GB, free: 1.82 MB / 414.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.007758/0.4023, allocations: 3.058 MB / 0.5791 GB, free: 14.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.4023, allocations: 4 kB / 0.5791 GB, free: 14.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008575/0.4109, allocations: 2.489 MB / 0.5815 GB, free: 12.19 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.985e-05/0.411, allocations: 49.69 kB / 0.5816 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.411, allocations: 4 kB / 0.5816 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002731/0.4137, allocations: 1.095 MB / 0.5826 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005584/0.4143, allocations: 107.8 kB / 0.5827 GB, free: 10.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01804/0.4324, allocations: 6.756 MB / 0.5893 GB, free: 4.055 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009214/0.4333, allocations: 83.95 kB / 0.5894 GB, free: 3.973 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/0.4334, allocations: 39.97 kB / 0.5895 GB, free: 3.934 MB / 430.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.0006135/0.434, allocations: 290.4 kB / 0.5897 GB, free: 3.645 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.4342, allocations: 59.62 kB / 0.5898 GB, free: 3.586 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00879/0.443, allocations: 2.423 MB / 0.5922 GB, free: 1.156 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.443, allocations: 11.98 kB / 0.5922 GB, free: 1.145 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.443, allocations: 0 / 0.5922 GB, free: 1.145 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.443, allocations: 0 / 0.5922 GB, free: 1.145 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01098/0.454, allocations: 3.53 MB / 0.5956 GB, free: 13.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/0.454, allocations: 4.031 kB / 0.5956 GB, free: 13.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004392/0.4544, allocations: 83.83 kB / 0.5957 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002792/0.4572, allocations: 1.09 MB / 0.5968 GB, free: 12.35 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001545/0.4574, allocations: 19.98 kB / 0.5968 GB, free: 12.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01775/0.4751, allocations: 6.729 MB / 0.6033 GB, free: 5.48 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4751, allocations: 0 / 0.6033 GB, free: 5.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01089/0.486, allocations: 3.202 MB / 0.6065 GB, free: 2.242 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007103/0.4867, allocations: 139.6 kB / 0.6066 GB, free: 2.105 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003273/0.4871, allocations: 35.98 kB / 0.6066 GB, free: 2.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009443/0.488, allocations: 95.98 kB / 0.6067 GB, free: 1.977 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005233/0.4885, allocations: 180.1 kB / 0.6069 GB, free: 1.801 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.356e-05/0.4886, allocations: 19.98 kB / 0.6069 GB, free: 1.781 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005394/0.4892, allocations: 326.9 kB / 0.6072 GB, free: 1.465 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4892, allocations: 0 / 0.6072 GB, free: 1.465 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001365/0.4905, allocations: 224 kB / 0.6075 GB, free: 1.246 MB / 446.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.01131/0.5018, allocations: 3.767 MB / 0.6111 GB, free: 13.41 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005108/0.5069, allocations: 1.669 MB / 0.6128 GB, free: 11.73 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.5069, allocations: 0 / 0.6128 GB, free: 11.73 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003646/0.5106, allocations: 1.095 MB / 0.6138 GB, free: 10.62 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001095/0.5117, allocations: 157.5 kB / 0.614 GB, free: 10.47 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02679/0.5385, allocations: 9.87 MB / 0.6236 GB, free: 372 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/0.5397, allocations: 1.004 MB / 0.6246 GB, free: 15.33 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005989/0.5403, allocations: 125.2 kB / 0.6247 GB, free: 15.21 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004961/0.5408, allocations: 235.4 kB / 0.6249 GB, free: 14.98 MB / 478.1 MB Notification: Performance of SimCode: time 1.022e-06/0.5408, allocations: 0 / 0.6249 GB, free: 14.98 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06601/0.6069, allocations: 23.56 MB / 0.6479 GB, free: 7.621 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.86/14.47, allocations: 11.67 kB / 0.648 GB, free: 7.613 MB / 494.1 MB " [Timeout remaining time 645] (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 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.336158865015022] Failed to read output from testmodel.py, exit status != 0: 14.673611904028803 14.696622284 14.349053379 Calling exit ...