Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.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.001763/0.001763, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.002066/0.002066, allocations: 218.9 kB / 21.46 MB, free: 1.586 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.543/1.543, allocations: 230.6 MB / 254.8 MB, free: 15.23 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.1879/0.1879, allocations: 38.51 MB / 349.4 MB, free: 2.598 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.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",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.001975/0.001975, allocations: 69.61 kB / 487.8 MB, free: 32.22 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1086, allocations: 62.41 MB / 0.5374 GB, free: 9.531 MB / 398.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.009718/0.1183, allocations: 6.158 MB / 0.5434 GB, free: 3.344 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003212/0.1215, allocations: 1.449 MB / 0.5448 GB, free: 1.891 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005711/0.1221, allocations: 35.69 kB / 0.5448 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006041/0.1227, allocations: 138.9 kB / 0.5449 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001061/0.1238, allocations: 402 kB / 0.5453 GB, free: 1.324 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000575/0.1244, allocations: 187.6 kB / 0.5455 GB, free: 1.141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0013/0.1257, allocations: 0.9189 MB / 0.5464 GB, free: 224 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003507/0.126, allocations: 214.7 kB / 0.5466 GB, free: 4 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007101/0.1267, allocations: 426.2 kB / 0.547 GB, free: 15.59 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007125/0.1274, allocations: 0.4905 MB / 0.5475 GB, free: 15.09 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.601e-05/0.1275, allocations: 48 kB / 0.5475 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.1276, allocations: 44 kB / 0.5476 GB, free: 15 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002864/0.1279, allocations: 275.2 kB / 0.5478 GB, free: 14.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003312/0.1282, allocations: 310.4 kB / 0.5481 GB, free: 14.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008558/0.1291, allocations: 0.6845 MB / 0.5488 GB, free: 13.74 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1291, allocations: 0 / 0.5488 GB, free: 13.74 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1291, allocations: 0 / 0.5488 GB, free: 13.74 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.546e-05/0.1291, allocations: 0 / 0.5488 GB, free: 13.74 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001882/0.131, allocations: 0.9675 MB / 0.5498 GB, free: 12.72 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.131, allocations: 12.03 kB / 0.5498 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.657e-05/0.1311, allocations: 13.19 kB / 0.5498 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001053/0.1312, allocations: 90.7 kB / 0.5499 GB, free: 12.6 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.1313, allocations: 76.47 kB / 0.5499 GB, free: 12.52 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009811/0.1323, allocations: 0.5689 MB / 0.5505 GB, free: 11.91 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.959e-05/0.1323, allocations: 37 kB / 0.5505 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.739e-05/0.1324, allocations: 55.89 kB / 0.5506 GB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009745/0.1334, allocations: 0.6249 MB / 0.5512 GB, free: 11.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.1334, allocations: 0 / 0.5512 GB, free: 11.16 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.165e-05/0.1335, allocations: 24 kB / 0.5512 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001199/0.1336, allocations: 36.95 kB / 0.5513 GB, free: 11.1 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008408/0.1344, allocations: 0.5035 MB / 0.5517 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003264/0.1377, allocations: 2.219 MB / 0.5539 GB, free: 8.285 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009443/0.1386, allocations: 459.8 kB / 0.5544 GB, free: 7.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007068/0.1393, allocations: 330.7 kB / 0.5547 GB, free: 7.492 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.694e-05/0.1394, allocations: 11.94 kB / 0.5547 GB, free: 7.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/0.1394, allocations: 38.5 kB / 0.5547 GB, free: 7.434 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 2.195e-06/0.1394, allocations: 0 / 0.5547 GB, free: 7.434 MB / 414.1 MB Notification: Performance of matching and sorting (n=47): time 0.003697/0.1431, allocations: 1.757 MB / 0.5564 GB, free: 5.602 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.544e-05/0.1432, allocations: 85.11 kB / 0.5565 GB, free: 5.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004979/0.1437, allocations: 417.8 kB / 0.5569 GB, free: 5.086 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.902e-05/0.1437, allocations: 37.83 kB / 0.5569 GB, free: 5.043 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002394/0.1439, allocations: 301 kB / 0.5572 GB, free: 4.742 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/0.1441, allocations: 170.5 kB / 0.5574 GB, free: 4.574 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/0.1443, allocations: 98.2 kB / 0.5575 GB, free: 4.473 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.1445, allocations: 366.8 kB / 0.5578 GB, free: 4.105 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003132/0.1448, allocations: 185 kB / 0.558 GB, free: 3.926 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004274/0.1452, allocations: 307.6 kB / 0.5583 GB, free: 3.574 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.002946/0.1481, allocations: 1.234 MB / 0.5595 GB, free: 2.273 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.1482, allocations: 4 kB / 0.5595 GB, free: 2.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001269/0.1494, allocations: 0.6993 MB / 0.5602 GB, free: 1.559 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.1494, allocations: 7.984 kB / 0.5602 GB, free: 1.551 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.1495, allocations: 4 kB / 0.5602 GB, free: 1.547 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004302/0.1499, allocations: 148.6 kB / 0.5604 GB, free: 1.398 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004932/0.1504, allocations: 107.8 kB / 0.5605 GB, free: 1.293 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003347/0.1537, allocations: 2.617 MB / 0.563 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003504/0.1541, allocations: 28.02 kB / 0.563 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.103e-05/0.1541, allocations: 24 kB / 0.5631 GB, free: 14.49 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: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004292/0.1546, allocations: 233.5 kB / 0.5633 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.1547, allocations: 59.62 kB / 0.5633 GB, free: 14.2 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001287/0.1559, allocations: 0.6425 MB / 0.564 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.1559, allocations: 4 kB / 0.564 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.156, allocations: 7.938 kB / 0.564 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.156, allocations: 3.984 kB / 0.564 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002484/0.1584, allocations: 1.369 MB / 0.5653 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.1585, allocations: 4.109 kB / 0.5653 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003727/0.1588, allocations: 75.83 kB / 0.5654 GB, free: 11.99 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004975/0.1593, allocations: 148.7 kB / 0.5655 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.457e-05/0.1594, allocations: 8 kB / 0.5655 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003422/0.1628, allocations: 2.623 MB / 0.5681 GB, free: 9.07 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.1628, allocations: 3.984 kB / 0.5681 GB, free: 9.066 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001574/0.1644, allocations: 0.9891 MB / 0.5691 GB, free: 8.039 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.1645, allocations: 128.7 kB / 0.5692 GB, free: 7.895 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.807e-05/0.1646, allocations: 16.03 kB / 0.5692 GB, free: 7.879 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002628/0.1648, allocations: 15.98 kB / 0.5692 GB, free: 7.863 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.876e-05/0.1649, allocations: 47.86 kB / 0.5693 GB, free: 7.816 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.01e-05/0.165, allocations: 12 kB / 0.5693 GB, free: 7.805 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000376/0.1653, allocations: 295.1 kB / 0.5696 GB, free: 7.516 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1653, allocations: 0 / 0.5696 GB, free: 7.516 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006568/0.166, allocations: 148 kB / 0.5697 GB, free: 7.371 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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001951/0.1679, allocations: 1.533 MB / 0.5712 GB, free: 5.797 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.1692, allocations: 0.6367 MB / 0.5718 GB, free: 5.148 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1692, allocations: 4 kB / 0.5718 GB, free: 5.145 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007672/0.17, allocations: 423.3 kB / 0.5722 GB, free: 4.719 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007781/0.1707, allocations: 137.3 kB / 0.5724 GB, free: 4.586 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00767/0.1784, allocations: 5.121 MB / 0.5774 GB, free: 15.24 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006854/0.1791, allocations: 0.9253 MB / 0.5783 GB, free: 14.29 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003331/0.1794, allocations: 104.7 kB / 0.5784 GB, free: 14.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002905/0.1797, allocations: 195.4 kB / 0.5786 GB, free: 13.99 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1797, allocations: 0 / 0.5786 GB, free: 13.99 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05914/0.2388, allocations: 12.04 MB / 0.5903 GB, free: 2.145 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.15, allocations: 10.98 kB / 0.5903 GB, free: 2.137 MB / 446.1 MB " [Timeout remaining time 649] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.174582924984861] Failed to read output from testmodel.py, exit status != 0: 11.297386028978508 11.317246198 11.183323979 Calling exit ...