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.00135/0.00135, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001585/0.001585, allocations: 209.4 kB / 23.73 MB, free: 4.387 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.514/1.514, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.1905/0.1905, allocations: 38.54 MB / 352.5 MB, free: 12.34 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.002061/0.002061, allocations: 59.91 kB / 492.5 MB, free: 4.719 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2976, allocations: 62.47 MB / 0.5419 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.008583/0.3062, allocations: 6.208 MB / 0.548 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003882/0.3101, allocations: 1.811 MB / 0.5498 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004435/0.3105, allocations: 37.94 kB / 0.5498 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00134/0.3119, allocations: 437 kB / 0.5502 GB, free: 9.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001124/0.313, allocations: 419.6 kB / 0.5506 GB, free: 9.434 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.3141, allocations: 361.2 kB / 0.551 GB, free: 9.168 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001426/0.3155, allocations: 1.034 MB / 0.552 GB, free: 8.586 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007306/0.3162, allocations: 424.7 kB / 0.5524 GB, free: 8.301 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008282/0.317, allocations: 480.1 kB / 0.5528 GB, free: 8.031 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008262/0.3179, allocations: 0.6113 MB / 0.5534 GB, free: 7.668 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.318, allocations: 66.81 kB / 0.5535 GB, free: 7.668 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000551/0.3185, allocations: 268 kB / 0.5538 GB, free: 7.559 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003729/0.3189, allocations: 381 kB / 0.5541 GB, free: 7.316 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004211/0.3193, allocations: 350 kB / 0.5545 GB, free: 7.109 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001288/0.3206, allocations: 1.058 MB / 0.5555 GB, free: 6.375 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3206, allocations: 0 / 0.5555 GB, free: 6.375 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3206, allocations: 0 / 0.5555 GB, free: 6.375 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.3206, allocations: 0 / 0.5555 GB, free: 6.375 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.002292/0.3229, allocations: 1.079 MB / 0.5565 GB, free: 5.258 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.323, allocations: 11.98 kB / 0.5566 GB, free: 5.246 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001585/0.3231, allocations: 122.8 kB / 0.5567 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008762/0.324, allocations: 164.2 kB / 0.5568 GB, free: 4.957 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.3253, allocations: 0.5477 MB / 0.5574 GB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.924e-05/0.3253, allocations: 45.69 kB / 0.5574 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001867/0.3255, allocations: 79.91 kB / 0.5575 GB, free: 4.258 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.3271, allocations: 1.006 MB / 0.5585 GB, free: 3.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.659e-05/0.3272, allocations: 4 kB / 0.5585 GB, free: 3.207 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.361e-05/0.3272, allocations: 27.92 kB / 0.5585 GB, free: 3.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002182/0.3274, allocations: 73.95 kB / 0.5586 GB, free: 3.109 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001606/0.3291, allocations: 0.9797 MB / 0.5595 GB, free: 2.125 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00529/0.3343, allocations: 3.024 MB / 0.5625 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.3355, allocations: 0.6286 MB / 0.5631 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006673/0.3362, allocations: 385.5 kB / 0.5635 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.106e-05/0.3362, allocations: 16.5 kB / 0.5635 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/0.3362, allocations: 39.06 kB / 0.5635 GB, free: 13.9 MB / 414.1 MB Notification: Performance of pre-optimization done (n=73): time 3.336e-06/0.3362, allocations: 0 / 0.5635 GB, free: 13.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=75): time 0.004108/0.3404, allocations: 2.22 MB / 0.5657 GB, free: 11.65 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.363e-05/0.3404, allocations: 89.75 kB / 0.5658 GB, free: 11.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005767/0.341, allocations: 457.6 kB / 0.5662 GB, free: 11.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.322e-05/0.3411, allocations: 37.7 kB / 0.5662 GB, free: 11.04 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002976/0.3414, allocations: 364.5 kB / 0.5666 GB, free: 10.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002577/0.3416, allocations: 277.6 kB / 0.5668 GB, free: 10.41 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002489/0.3419, allocations: 150.6 kB / 0.567 GB, free: 10.25 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000223/0.3421, allocations: 378.7 kB / 0.5674 GB, free: 9.875 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005565/0.3426, allocations: 337.8 kB / 0.5677 GB, free: 9.547 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007242/0.3434, allocations: 0.5147 MB / 0.5682 GB, free: 8.961 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.005459/0.3488, allocations: 2.17 MB / 0.5703 GB, free: 6.719 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.3488, allocations: 4 kB / 0.5703 GB, free: 6.715 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001817/0.3507, allocations: 1.031 MB / 0.5713 GB, free: 5.676 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.371e-05/0.3507, allocations: 8 kB / 0.5713 GB, free: 5.668 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.3507, allocations: 4 kB / 0.5713 GB, free: 5.664 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001683/0.3509, allocations: 48.77 kB / 0.5714 GB, free: 5.613 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007902/0.3516, allocations: 183.7 kB / 0.5715 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/0.353, allocations: 1.385 MB / 0.5729 GB, free: 3.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004587/0.3534, allocations: 40.03 kB / 0.5729 GB, free: 3.891 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.871e-05/0.3535, allocations: 32 kB / 0.573 GB, free: 3.859 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.0004462/0.354, allocations: 282 kB / 0.5732 GB, free: 3.574 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.3541, allocations: 63.58 kB / 0.5733 GB, free: 3.512 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001691/0.3558, allocations: 0.8991 MB / 0.5742 GB, free: 2.602 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.35e-05/0.3558, allocations: 24 kB / 0.5742 GB, free: 2.578 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.3558, allocations: 3.938 kB / 0.5742 GB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.799e-06/0.3558, allocations: 3.984 kB / 0.5742 GB, free: 2.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003518/0.3594, allocations: 1.836 MB / 0.576 GB, free: 0.625 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/0.3594, allocations: 4 kB / 0.576 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006906/0.3601, allocations: 148.3 kB / 0.5761 GB, free: 488 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001134/0.3602, allocations: 44.83 kB / 0.5762 GB, free: 440 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.247e-05/0.3602, allocations: 27.94 kB / 0.5762 GB, free: 412 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001214/0.3614, allocations: 1.393 MB / 0.5776 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.3614, allocations: 7.938 kB / 0.5776 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002171/0.3636, allocations: 1.458 MB / 0.579 GB, free: 13.35 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001569/0.3638, allocations: 67.58 kB / 0.5791 GB, free: 13.29 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.982e-05/0.3639, allocations: 20 kB / 0.5791 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003659/0.3642, allocations: 35.97 kB / 0.5791 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.3643, allocations: 64.27 kB / 0.5792 GB, free: 13.17 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.443e-05/0.3644, allocations: 24 kB / 0.5792 GB, free: 13.14 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003603/0.3647, allocations: 295.1 kB / 0.5795 GB, free: 12.86 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3647, allocations: 0 / 0.5795 GB, free: 12.86 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0007859/0.3655, allocations: 191.9 kB / 0.5797 GB, free: 12.67 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.002725/0.3683, allocations: 2.046 MB / 0.5817 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001758/0.37, allocations: 0.9078 MB / 0.5826 GB, free: 9.617 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.37, allocations: 0 / 0.5826 GB, free: 9.617 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007334/0.3707, allocations: 0.4898 MB / 0.583 GB, free: 9.113 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009317/0.3717, allocations: 160.8 kB / 0.5832 GB, free: 8.969 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/0.3819, allocations: 6.92 MB / 0.5899 GB, free: 1.695 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005143/0.3824, allocations: 424.3 kB / 0.5903 GB, free: 1.258 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005729/0.383, allocations: 197.4 kB / 0.5905 GB, free: 1.062 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004328/0.3835, allocations: 283.3 kB / 0.5908 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3835, allocations: 0 / 0.5908 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05222/0.4357, allocations: 15.95 MB / 0.6064 GB, free: 1.062 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.96/12.39, allocations: 64 / 0.6064 GB, free: 1.062 MB / 446.1 MB " [Timeout remaining time 647] (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: 15.212325485947076] Failed to read output from testmodel.py, exit status != 0: 12.51557051599957 12.530653932 12.206881932 Calling exit ...