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.001405/0.001405, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001516/0.001516, allocations: 212.8 kB / 23.74 MB, free: 4.656 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.494/1.494, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.1955/0.1955, allocations: 38.53 MB / 352.4 MB, free: 12.57 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="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"}) [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.002256/0.002256, allocations: 67.89 kB / 492.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3671/0.3693, allocations: 62.45 MB / 0.542 GB, free: 468 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.009847/0.3792, allocations: 6.749 MB / 0.5486 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004685/0.3838, allocations: 1.705 MB / 0.5502 GB, free: 9.812 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008388/0.3847, allocations: 36.28 kB / 0.5503 GB, free: 9.793 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007775/0.3855, allocations: 159.1 kB / 0.5504 GB, free: 9.66 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001623/0.3871, allocations: 453.2 kB / 0.5509 GB, free: 9.297 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.3883, allocations: 359.5 kB / 0.5512 GB, free: 9.008 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002543/0.3908, allocations: 1.505 MB / 0.5527 GB, free: 8.137 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005143/0.3914, allocations: 250.6 kB / 0.5529 GB, free: 7.988 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001797/0.3932, allocations: 0.6355 MB / 0.5535 GB, free: 7.621 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001455/0.3946, allocations: 0.6914 MB / 0.5542 GB, free: 7.211 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001921/0.3948, allocations: 98.66 kB / 0.5543 GB, free: 7.211 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002631/0.3951, allocations: 98.28 kB / 0.5544 GB, free: 7.211 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005353/0.3956, allocations: 424.8 kB / 0.5548 GB, free: 6.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006906/0.3963, allocations: 470.7 kB / 0.5553 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001608/0.3979, allocations: 1.192 MB / 0.5564 GB, free: 5.742 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3979, allocations: 0 / 0.5564 GB, free: 5.742 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3979, allocations: 4 kB / 0.5564 GB, free: 5.738 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.194e-05/0.3979, allocations: 0 / 0.5564 GB, free: 5.738 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.003252/0.4012, allocations: 1.255 MB / 0.5577 GB, free: 4.441 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.4012, allocations: 15.98 kB / 0.5577 GB, free: 4.426 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000157/0.4014, allocations: 114.7 kB / 0.5578 GB, free: 4.305 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001914/0.4016, allocations: 100.4 kB / 0.5579 GB, free: 4.207 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001568/0.4031, allocations: 0.6649 MB / 0.5585 GB, free: 3.512 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007188/0.4039, allocations: 0.752 MB / 0.5593 GB, free: 2.613 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.404, allocations: 67.94 kB / 0.5593 GB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002481/0.4065, allocations: 1.141 MB / 0.5604 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.111e-05/0.4065, allocations: 0 / 0.5604 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.531e-05/0.4066, allocations: 31.98 kB / 0.5605 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001276/0.4067, allocations: 37.28 kB / 0.5605 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00279/0.4095, allocations: 1.176 MB / 0.5616 GB, free: 120 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006063/0.4156, allocations: 3.449 MB / 0.565 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002569/0.4181, allocations: 0.9132 MB / 0.5659 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001733/0.4199, allocations: 0.654 MB / 0.5665 GB, free: 10.99 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.389e-05/0.4199, allocations: 12.48 kB / 0.5666 GB, free: 10.97 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001572/0.4215, allocations: 0.684 MB / 0.5672 GB, free: 10.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=59): time 2.094e-06/0.4215, allocations: 0 / 0.5672 GB, free: 10.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=61): time 0.01927/0.4408, allocations: 5.514 MB / 0.5726 GB, free: 4.711 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.401e-05/0.4409, allocations: 97.47 kB / 0.5727 GB, free: 4.598 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007223/0.4416, allocations: 462 kB / 0.5731 GB, free: 4.137 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001255/0.4417, allocations: 45.7 kB / 0.5732 GB, free: 4.086 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003247/0.442, allocations: 332.8 kB / 0.5735 GB, free: 3.754 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002434/0.4423, allocations: 214.2 kB / 0.5737 GB, free: 3.543 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000265/0.4426, allocations: 134.3 kB / 0.5738 GB, free: 3.406 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002288/0.4428, allocations: 370.8 kB / 0.5742 GB, free: 3.035 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.444, allocations: 0.509 MB / 0.5747 GB, free: 2.527 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001219/0.4452, allocations: 0.622 MB / 0.5753 GB, free: 1.863 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.007218/0.4524, allocations: 3.062 MB / 0.5783 GB, free: 14.74 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.4524, allocations: 0 / 0.5783 GB, free: 14.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007651/0.46, allocations: 2.493 MB / 0.5807 GB, free: 12.23 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.396e-05/0.4601, allocations: 49.69 kB / 0.5808 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.4601, allocations: 4 kB / 0.5808 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002544/0.4627, allocations: 1.096 MB / 0.5818 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005045/0.4632, allocations: 103.9 kB / 0.5819 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01617/0.4793, allocations: 6.757 MB / 0.5885 GB, free: 4.102 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008365/0.4802, allocations: 83.95 kB / 0.5886 GB, free: 4.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000138/0.4803, allocations: 43.97 kB / 0.5887 GB, free: 3.977 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.0005627/0.4809, allocations: 287.4 kB / 0.5889 GB, free: 3.688 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.481, allocations: 55.62 kB / 0.589 GB, free: 3.633 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007889/0.4889, allocations: 2.423 MB / 0.5914 GB, free: 1.199 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.334e-05/0.4889, allocations: 19.92 kB / 0.5914 GB, free: 1.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.4889, allocations: 0 / 0.5914 GB, free: 1.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.4889, allocations: 0 / 0.5914 GB, free: 1.18 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009899/0.4988, allocations: 3.526 MB / 0.5948 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/0.4988, allocations: 8.125 kB / 0.5948 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003968/0.4992, allocations: 79.83 kB / 0.5949 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002527/0.5018, allocations: 1.094 MB / 0.596 GB, free: 12.39 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.21e-05/0.5019, allocations: 19.98 kB / 0.596 GB, free: 12.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01597/0.5178, allocations: 6.729 MB / 0.6026 GB, free: 5.516 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.5178, allocations: 0 / 0.6026 GB, free: 5.516 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009825/0.5277, allocations: 3.199 MB / 0.6057 GB, free: 2.281 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006337/0.5283, allocations: 143.6 kB / 0.6058 GB, free: 2.141 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00022/0.5285, allocations: 31.98 kB / 0.6059 GB, free: 2.109 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008002/0.5293, allocations: 99.86 kB / 0.6059 GB, free: 2.012 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004463/0.5298, allocations: 176 kB / 0.6061 GB, free: 1.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.452e-05/0.5298, allocations: 23.98 kB / 0.6061 GB, free: 1.816 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005182/0.5304, allocations: 318.9 kB / 0.6064 GB, free: 1.508 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5304, allocations: 8 kB / 0.6065 GB, free: 1.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001188/0.5315, allocations: 224 kB / 0.6067 GB, free: 1.281 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.00987/0.5414, allocations: 3.767 MB / 0.6103 GB, free: 13.45 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004705/0.5461, allocations: 1.669 MB / 0.612 GB, free: 11.76 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.5461, allocations: 0 / 0.612 GB, free: 11.76 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003249/0.5494, allocations: 1.091 MB / 0.613 GB, free: 10.66 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.5504, allocations: 156.9 kB / 0.6132 GB, free: 10.51 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02352/0.574, allocations: 9.87 MB / 0.6228 GB, free: 420 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009232/0.5749, allocations: 1.004 MB / 0.6238 GB, free: 15.38 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004396/0.5753, allocations: 121.2 kB / 0.6239 GB, free: 15.26 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004104/0.5757, allocations: 231.4 kB / 0.6241 GB, free: 15.04 MB / 478.1 MB Notification: Performance of SimCode: time 1.533e-06/0.5757, allocations: 0 / 0.6241 GB, free: 15.04 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07038/0.6461, allocations: 23.54 MB / 0.6471 GB, free: 7.672 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.73/14.37, allocations: 4.062 kB / 0.6471 GB, free: 7.668 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.346295872004703] Failed to read output from testmodel.py, exit status != 0: 14.502865817863494 14.517987961 14.116849379 Calling exit ...