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.001365/0.001365, allocations: 121 kB / 18.5 MB, free: 4.562 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.001363/0.001363, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.58/1.58, allocations: 230.6 MB / 254.8 MB, free: 15.24 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.1921/0.1921, allocations: 38.51 MB / 349.4 MB, free: 2.613 MB / 270.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.002107/0.002107, allocations: 67.91 kB / 487.8 MB, free: 32.31 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1198, allocations: 62.41 MB / 0.5374 GB, free: 9.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.009359/0.1292, allocations: 6.626 MB / 0.5438 GB, free: 2.883 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00411/0.1333, allocations: 1.699 MB / 0.5455 GB, free: 1.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009514/0.1342, allocations: 35.69 kB / 0.5455 GB, free: 1.145 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007599/0.135, allocations: 162.7 kB / 0.5457 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001281/0.1363, allocations: 453.8 kB / 0.5461 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008214/0.1371, allocations: 339.5 kB / 0.5464 GB, free: 212 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001899/0.139, allocations: 1.504 MB / 0.5479 GB, free: 14.7 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005362/0.1395, allocations: 321.8 kB / 0.5482 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001224/0.1407, allocations: 0.619 MB / 0.5488 GB, free: 13.75 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001104/0.1418, allocations: 0.6894 MB / 0.5495 GB, free: 13.06 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001657/0.142, allocations: 100 kB / 0.5496 GB, free: 12.96 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002257/0.1422, allocations: 100 kB / 0.5497 GB, free: 12.87 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005203/0.1428, allocations: 422.9 kB / 0.5501 GB, free: 12.45 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006041/0.1434, allocations: 469.9 kB / 0.5505 GB, free: 11.99 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001496/0.1449, allocations: 1.191 MB / 0.5517 GB, free: 10.8 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1449, allocations: 0 / 0.5517 GB, free: 10.8 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1449, allocations: 0 / 0.5517 GB, free: 10.8 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.039e-05/0.1449, allocations: 0 / 0.5517 GB, free: 10.8 MB / 414.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.003232/0.1481, allocations: 1.332 MB / 0.553 GB, free: 9.402 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.1482, allocations: 12.03 kB / 0.553 GB, free: 9.391 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.157e-05/0.1482, allocations: 13.5 kB / 0.553 GB, free: 9.375 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001605/0.1484, allocations: 118.7 kB / 0.5531 GB, free: 9.25 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002064/0.1486, allocations: 104.4 kB / 0.5532 GB, free: 9.148 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001535/0.1501, allocations: 0.7407 MB / 0.5539 GB, free: 8.367 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004814/0.1506, allocations: 342.8 kB / 0.5543 GB, free: 7.984 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001426/0.1507, allocations: 64 kB / 0.5543 GB, free: 7.922 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002598/0.1533, allocations: 1.141 MB / 0.5555 GB, free: 6.742 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.1533, allocations: 8 kB / 0.5555 GB, free: 6.734 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.194e-05/0.1534, allocations: 24 kB / 0.5555 GB, free: 6.711 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001375/0.1536, allocations: 45.22 kB / 0.5555 GB, free: 6.664 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00313/0.1567, allocations: 1.172 MB / 0.5567 GB, free: 5.492 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005973/0.1627, allocations: 3.489 MB / 0.5601 GB, free: 1.906 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002824/0.1655, allocations: 0.9064 MB / 0.561 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001949/0.1674, allocations: 0.659 MB / 0.5616 GB, free: 324 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.115e-05/0.1675, allocations: 8.562 kB / 0.5616 GB, free: 316 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001791/0.1693, allocations: 0.6888 MB / 0.5623 GB, free: 15.6 MB / 430.1 MB Notification: Performance of pre-optimization done (n=59): time 2.294e-06/0.1693, allocations: 0 / 0.5623 GB, free: 15.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=61): time 0.02265/0.1919, allocations: 5.669 MB / 0.5678 GB, free: 9.852 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.234e-05/0.192, allocations: 93.59 kB / 0.5679 GB, free: 9.742 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000711/0.1928, allocations: 466 kB / 0.5684 GB, free: 9.277 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001357/0.1929, allocations: 37.7 kB / 0.5684 GB, free: 9.234 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000302/0.1932, allocations: 336.8 kB / 0.5687 GB, free: 8.898 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002629/0.1935, allocations: 218.2 kB / 0.5689 GB, free: 8.684 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002682/0.1937, allocations: 126.3 kB / 0.569 GB, free: 8.555 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000214/0.1939, allocations: 370.8 kB / 0.5694 GB, free: 8.184 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001266/0.1952, allocations: 0.509 MB / 0.5699 GB, free: 7.676 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.1966, allocations: 0.6335 MB / 0.5705 GB, free: 6.992 MB / 430.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.00803/0.2046, allocations: 3.135 MB / 0.5736 GB, free: 3.781 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.2046, allocations: 0 / 0.5736 GB, free: 3.781 MB / 430.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008809/0.2134, allocations: 2.491 MB / 0.576 GB, free: 1.273 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.059e-05/0.2135, allocations: 53.69 kB / 0.5761 GB, free: 1.215 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.2135, allocations: 0 / 0.5761 GB, free: 1.215 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002762/0.2163, allocations: 1.095 MB / 0.5771 GB, free: 120 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005811/0.2168, allocations: 107.8 kB / 0.5772 GB, free: 12 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01822/0.2351, allocations: 6.857 MB / 0.5839 GB, free: 9.012 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008895/0.236, allocations: 83.95 kB / 0.584 GB, free: 8.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.2361, allocations: 43.92 kB / 0.584 GB, free: 8.887 MB / 446.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.0005212/0.2366, allocations: 287.4 kB / 0.5843 GB, free: 8.598 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.2367, allocations: 67.55 kB / 0.5844 GB, free: 8.531 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008931/0.2456, allocations: 2.417 MB / 0.5867 GB, free: 6.105 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.2456, allocations: 12 kB / 0.5868 GB, free: 6.094 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.2457, allocations: 0 / 0.5868 GB, free: 6.094 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.506e-05/0.2457, allocations: 3.984 kB / 0.5868 GB, free: 6.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/0.2565, allocations: 3.548 MB / 0.5902 GB, free: 2.453 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.289e-05/0.2566, allocations: 4 kB / 0.5902 GB, free: 2.449 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004271/0.257, allocations: 80.02 kB / 0.5903 GB, free: 2.371 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002767/0.2598, allocations: 1.096 MB / 0.5914 GB, free: 1.273 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001132/0.2599, allocations: 19.98 kB / 0.5914 GB, free: 1.254 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0179/0.2778, allocations: 6.843 MB / 0.5981 GB, free: 10.27 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.2778, allocations: 0 / 0.5981 GB, free: 10.27 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01083/0.2886, allocations: 3.196 MB / 0.6012 GB, free: 7.027 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004513/0.289, allocations: 216.7 kB / 0.6014 GB, free: 6.797 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001295/0.2892, allocations: 31.98 kB / 0.6014 GB, free: 6.766 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008027/0.29, allocations: 95.88 kB / 0.6015 GB, free: 6.672 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004586/0.2904, allocations: 172.2 kB / 0.6017 GB, free: 6.504 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.896e-05/0.2905, allocations: 27.98 kB / 0.6017 GB, free: 6.477 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004595/0.291, allocations: 322.9 kB / 0.602 GB, free: 6.164 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.291, allocations: 4 kB / 0.602 GB, free: 6.16 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0009482/0.2919, allocations: 220 kB / 0.6022 GB, free: 5.945 MB / 462.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.01113/0.3031, allocations: 3.768 MB / 0.6059 GB, free: 2.125 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005101/0.3082, allocations: 1.68 MB / 0.6076 GB, free: 428 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3082, allocations: 0 / 0.6076 GB, free: 428 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2397/0.5479, allocations: 1.074 MB / 0.6086 GB, free: 67.94 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.549, allocations: 166.7 kB / 0.6088 GB, free: 67.93 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02504/0.574, allocations: 9.858 MB / 0.6184 GB, free: 65.27 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006095/0.5746, allocations: 1.001 MB / 0.6194 GB, free: 64.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005406/0.5752, allocations: 124.6 kB / 0.6195 GB, free: 64.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003239/0.5755, allocations: 231.4 kB / 0.6197 GB, free: 64.34 MB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5755, allocations: 1.219 kB / 0.6197 GB, free: 64.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06159/0.6371, allocations: 22.87 MB / 0.642 GB, free: 49.34 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/13.71, allocations: 14.11 kB / 0.6421 GB, free: 49.32 MB / 462.1 MB " [Timeout remaining time 646] (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: 16.808345226978417] Failed to read output from testmodel.py, exit status != 0: 13.876807202992495 13.891852901 13.744094128 Calling exit ...