Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.001377/0.001377, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.001461/0.001461, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.465/1.465, allocations: 230.6 MB / 257.5 MB, free: 7.984 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.1812/0.1812, allocations: 38.53 MB / 352.5 MB, free: 12.61 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.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",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.002042/0.002042, allocations: 67.89 kB / 492.5 MB, free: 4.871 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3066, allocations: 62.45 MB / 0.542 GB, free: 472 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.008605/0.3152, allocations: 6.697 MB / 0.5485 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00366/0.3189, allocations: 1.943 MB / 0.5504 GB, free: 9.668 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004018/0.3193, allocations: 37.78 kB / 0.5505 GB, free: 9.648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001311/0.3206, allocations: 460.2 kB / 0.5509 GB, free: 9.293 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008681/0.3215, allocations: 422.6 kB / 0.5513 GB, free: 8.953 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009455/0.3224, allocations: 355.5 kB / 0.5516 GB, free: 8.691 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001425/0.3238, allocations: 1.031 MB / 0.5527 GB, free: 8.113 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006955/0.3245, allocations: 425.8 kB / 0.5531 GB, free: 7.828 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009072/0.3254, allocations: 479.2 kB / 0.5535 GB, free: 7.559 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009523/0.3264, allocations: 0.612 MB / 0.5541 GB, free: 7.195 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001113/0.3265, allocations: 66.41 kB / 0.5542 GB, free: 7.195 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006024/0.3271, allocations: 284.2 kB / 0.5544 GB, free: 7.078 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003776/0.3275, allocations: 380.1 kB / 0.5548 GB, free: 6.836 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004572/0.3279, allocations: 427.2 kB / 0.5552 GB, free: 6.555 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001266/0.3292, allocations: 1.05 MB / 0.5562 GB, free: 5.859 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3292, allocations: 0 / 0.5562 GB, free: 5.859 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3292, allocations: 1.75 kB / 0.5562 GB, free: 5.859 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.3292, allocations: 0 / 0.5562 GB, free: 5.859 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002572/0.3318, allocations: 1.069 MB / 0.5573 GB, free: 4.785 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.3318, allocations: 11.98 kB / 0.5573 GB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002214/0.3321, allocations: 126.8 kB / 0.5574 GB, free: 4.641 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008832/0.3329, allocations: 164.2 kB / 0.5576 GB, free: 4.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001274/0.3342, allocations: 0.5477 MB / 0.5581 GB, free: 3.906 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.863e-05/0.3343, allocations: 53.67 kB / 0.5582 GB, free: 3.852 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001774/0.3344, allocations: 79.91 kB / 0.5582 GB, free: 3.773 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.3361, allocations: 1.01 MB / 0.5592 GB, free: 2.723 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.3361, allocations: 4 kB / 0.5592 GB, free: 2.719 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.6e-05/0.3362, allocations: 27.98 kB / 0.5593 GB, free: 2.691 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002279/0.3364, allocations: 77.94 kB / 0.5593 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001735/0.3382, allocations: 0.9758 MB / 0.5603 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00583/0.344, allocations: 3.168 MB / 0.5634 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.3452, allocations: 0.636 MB / 0.564 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007115/0.3459, allocations: 387.4 kB / 0.5644 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.777e-05/0.3459, allocations: 8.5 kB / 0.5644 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.3459, allocations: 43 kB / 0.5644 GB, free: 13.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=73): time 2.214e-06/0.346, allocations: 0 / 0.5644 GB, free: 13.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=75): time 0.004153/0.3501, allocations: 2.224 MB / 0.5666 GB, free: 11.01 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.764e-05/0.3502, allocations: 85.77 kB / 0.5667 GB, free: 10.9 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000557/0.3507, allocations: 445.9 kB / 0.5671 GB, free: 10.46 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.23e-05/0.3508, allocations: 45.64 kB / 0.5671 GB, free: 10.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003926/0.3512, allocations: 372.4 kB / 0.5675 GB, free: 10.04 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003365/0.3515, allocations: 265.7 kB / 0.5677 GB, free: 9.773 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002407/0.3518, allocations: 146.6 kB / 0.5679 GB, free: 9.625 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002824/0.352, allocations: 382.7 kB / 0.5683 GB, free: 9.242 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006083/0.3526, allocations: 337.8 kB / 0.5686 GB, free: 8.914 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007117/0.3534, allocations: 0.5224 MB / 0.5691 GB, free: 8.32 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.00527/0.3586, allocations: 2.166 MB / 0.5712 GB, free: 6.082 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.467e-05/0.3586, allocations: 0 / 0.5712 GB, free: 6.082 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001784/0.3604, allocations: 1.023 MB / 0.5722 GB, free: 5.051 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.3604, allocations: 8 kB / 0.5722 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.153e-05/0.3605, allocations: 4 kB / 0.5722 GB, free: 5.039 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001527/0.3606, allocations: 44.72 kB / 0.5723 GB, free: 4.992 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007861/0.3614, allocations: 192 kB / 0.5724 GB, free: 4.805 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001497/0.3629, allocations: 1.396 MB / 0.5738 GB, free: 3.289 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004565/0.3633, allocations: 35.97 kB / 0.5738 GB, free: 3.254 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.588e-05/0.3634, allocations: 31.98 kB / 0.5739 GB, free: 3.223 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (95): * Single equations (assignments): 92 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004289/0.3639, allocations: 281.6 kB / 0.5741 GB, free: 2.938 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/0.364, allocations: 71.56 kB / 0.5742 GB, free: 2.867 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.3656, allocations: 0.8914 MB / 0.5751 GB, free: 1.965 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.618e-05/0.3656, allocations: 12 kB / 0.5751 GB, free: 1.953 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.3656, allocations: 11.92 kB / 0.5751 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.3657, allocations: 0 / 0.5751 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003624/0.3693, allocations: 1.915 MB / 0.577 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.118e-06/0.3693, allocations: 8.094 kB / 0.577 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006739/0.37, allocations: 151.7 kB / 0.5771 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001097/0.3701, allocations: 40.77 kB / 0.5772 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.132e-05/0.3701, allocations: 20 kB / 0.5772 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001515/0.3716, allocations: 1.393 MB / 0.5785 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.3716, allocations: 4 kB / 0.5785 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002181/0.3738, allocations: 1.462 MB / 0.58 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.374, allocations: 63.62 kB / 0.58 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.3741, allocations: 27.98 kB / 0.5801 GB, free: 12.56 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003717/0.3744, allocations: 28.11 kB / 0.5801 GB, free: 12.53 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.3745, allocations: 72.27 kB / 0.5801 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.002e-05/0.3746, allocations: 24 kB / 0.5802 GB, free: 12.44 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003671/0.375, allocations: 303.1 kB / 0.5805 GB, free: 12.14 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.375, allocations: 0 / 0.5805 GB, free: 12.14 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0008165/0.3758, allocations: 187.9 kB / 0.5806 GB, free: 11.96 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],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 (75): * Single equations (assignments): 71 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002598/0.3784, allocations: 2.049 MB / 0.5826 GB, free: 9.828 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001618/0.38, allocations: 0.9105 MB / 0.5835 GB, free: 8.902 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.38, allocations: 0 / 0.5835 GB, free: 8.902 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007976/0.3808, allocations: 0.4919 MB / 0.584 GB, free: 8.398 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008685/0.3817, allocations: 153 kB / 0.5842 GB, free: 8.254 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.3918, allocations: 6.916 MB / 0.5909 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007429/0.3926, allocations: 1.016 MB / 0.5919 GB, free: 15.94 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005686/0.3932, allocations: 201.4 kB / 0.5921 GB, free: 15.74 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004188/0.3936, allocations: 271.3 kB / 0.5924 GB, free: 15.48 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3936, allocations: 0 / 0.5924 GB, free: 15.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06476/0.4583, allocations: 15.46 MB / 0.6075 GB, free: 180 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/13.72, allocations: 18.48 kB / 0.6075 GB, free: 168 kB / 446.1 MB " [Timeout remaining time 646] (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.60742182899412] Failed to read output from testmodel.py, exit status != 0: 13.837453111002105 13.865306806 13.530234114 Calling exit ...