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.001657/0.001657, allocations: 111.8 kB / 20.43 MB, free: 1.473 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.002047/0.002047, allocations: 214 kB / 23.74 MB, free: 4.688 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.533/1.533, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.2485/0.2485, allocations: 38.53 MB / 352.5 MB, free: 12.54 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.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_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.002069/0.002069, allocations: 74.86 kB / 492.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3414, allocations: 62.47 MB / 0.542 GB, free: 448 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.008558/0.35, allocations: 6.275 MB / 0.5481 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002943/0.3529, allocations: 1.466 MB / 0.5496 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003677/0.3533, allocations: 35.41 kB / 0.5496 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005322/0.3538, allocations: 140.6 kB / 0.5497 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009097/0.3547, allocations: 398.3 kB / 0.5501 GB, free: 9.887 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006097/0.3553, allocations: 195.5 kB / 0.5503 GB, free: 9.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001451/0.3568, allocations: 0.9178 MB / 0.5512 GB, free: 9.219 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000386/0.3572, allocations: 169.5 kB / 0.5513 GB, free: 9.117 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008856/0.358, allocations: 432.9 kB / 0.5518 GB, free: 8.871 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008197/0.3589, allocations: 487.6 kB / 0.5522 GB, free: 8.598 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.359, allocations: 47.22 kB / 0.5523 GB, free: 8.598 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.3591, allocations: 52.22 kB / 0.5523 GB, free: 8.594 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003162/0.3594, allocations: 271.1 kB / 0.5526 GB, free: 8.418 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003645/0.3598, allocations: 315.7 kB / 0.5529 GB, free: 8.215 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000916/0.3607, allocations: 0.6903 MB / 0.5536 GB, free: 7.746 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3607, allocations: 0 / 0.5536 GB, free: 7.746 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3607, allocations: 0 / 0.5536 GB, free: 7.746 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.3607, allocations: 0 / 0.5536 GB, free: 7.746 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.001897/0.3626, allocations: 0.8821 MB / 0.5544 GB, free: 7.078 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.3627, allocations: 13.48 kB / 0.5544 GB, free: 7.074 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001334/0.3628, allocations: 92.14 kB / 0.5545 GB, free: 6.992 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.3629, allocations: 77.48 kB / 0.5546 GB, free: 6.949 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.364, allocations: 0.4895 MB / 0.5551 GB, free: 6.578 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.364, allocations: 36.28 kB / 0.5551 GB, free: 6.562 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.594e-05/0.3641, allocations: 52.2 kB / 0.5552 GB, free: 6.543 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.3652, allocations: 0.6271 MB / 0.5558 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.3652, allocations: 0 / 0.5558 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.134e-05/0.3652, allocations: 21.25 kB / 0.5558 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001115/0.3653, allocations: 33.34 kB / 0.5558 GB, free: 6.102 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008873/0.3662, allocations: 0.5056 MB / 0.5563 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00337/0.3696, allocations: 2.179 MB / 0.5584 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008624/0.3705, allocations: 477 kB / 0.5589 GB, free: 2.961 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006918/0.3711, allocations: 330.7 kB / 0.5592 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.3712, allocations: 7.953 kB / 0.5592 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.3712, allocations: 38.56 kB / 0.5593 GB, free: 2.578 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 1.643e-06/0.3712, allocations: 0 / 0.5593 GB, free: 2.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003442/0.3747, allocations: 1.592 MB / 0.5608 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.925e-05/0.3747, allocations: 81.11 kB / 0.5609 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004628/0.3752, allocations: 430 kB / 0.5613 GB, free: 436 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.188e-05/0.3752, allocations: 33.7 kB / 0.5613 GB, free: 396 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002175/0.3754, allocations: 305 kB / 0.5616 GB, free: 84 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001607/0.3756, allocations: 174.7 kB / 0.5618 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.3757, allocations: 94.3 kB / 0.5619 GB, free: 15.81 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.3759, allocations: 362.8 kB / 0.5622 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003028/0.3762, allocations: 189.1 kB / 0.5624 GB, free: 15.26 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003951/0.3766, allocations: 304.6 kB / 0.5627 GB, free: 14.91 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.002694/0.3793, allocations: 1.162 MB / 0.5638 GB, free: 13.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.3793, allocations: 4 kB / 0.5638 GB, free: 13.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001207/0.3805, allocations: 0.6993 MB / 0.5645 GB, free: 12.99 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.3805, allocations: 11.94 kB / 0.5645 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.3805, allocations: 4 kB / 0.5645 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004032/0.381, allocations: 144.6 kB / 0.5647 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004875/0.3814, allocations: 112.1 kB / 0.5648 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003111/0.3845, allocations: 2.511 MB / 0.5672 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000306/0.3849, allocations: 28.02 kB / 0.5673 GB, free: 10.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.854e-05/0.3849, allocations: 20 kB / 0.5673 GB, free: 10.04 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[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.0003029/0.3852, allocations: 225.7 kB / 0.5675 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.68e-05/0.3853, allocations: 59.56 kB / 0.5675 GB, free: 9.754 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.3866, allocations: 0.6464 MB / 0.5682 GB, free: 9.102 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.3866, allocations: 4 kB / 0.5682 GB, free: 9.098 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3866, allocations: 8 kB / 0.5682 GB, free: 9.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.3866, allocations: 3.938 kB / 0.5682 GB, free: 9.086 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002301/0.3889, allocations: 1.333 MB / 0.5695 GB, free: 7.672 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.3889, allocations: 3.938 kB / 0.5695 GB, free: 7.668 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003744/0.3893, allocations: 71.89 kB / 0.5696 GB, free: 7.598 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000427/0.3897, allocations: 152.8 kB / 0.5697 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.844e-05/0.3897, allocations: 15.98 kB / 0.5697 GB, free: 7.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003077/0.3928, allocations: 2.524 MB / 0.5722 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.3928, allocations: 4 kB / 0.5722 GB, free: 4.789 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001481/0.3943, allocations: 0.9769 MB / 0.5731 GB, free: 3.773 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.3944, allocations: 51.62 kB / 0.5732 GB, free: 3.723 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.993e-05/0.3945, allocations: 16.03 kB / 0.5732 GB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002608/0.3947, allocations: 19.92 kB / 0.5732 GB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.674e-05/0.3948, allocations: 43.88 kB / 0.5733 GB, free: 3.645 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-05/0.3948, allocations: 11.98 kB / 0.5733 GB, free: 3.633 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003374/0.3952, allocations: 299.1 kB / 0.5736 GB, free: 3.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3952, allocations: 0 / 0.5736 GB, free: 3.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006375/0.3958, allocations: 147.9 kB / 0.5737 GB, free: 3.195 MB / 414.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.001817/0.3976, allocations: 1.527 MB / 0.5752 GB, free: 1.621 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.3989, allocations: 0.6364 MB / 0.5758 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3989, allocations: 4 kB / 0.5758 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006986/0.3996, allocations: 423.4 kB / 0.5762 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000753/0.4004, allocations: 141.2 kB / 0.5764 GB, free: 412 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007114/0.4075, allocations: 5.125 MB / 0.5814 GB, free: 11.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005956/0.4081, allocations: 0.9292 MB / 0.5823 GB, free: 10.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003033/0.4084, allocations: 100.7 kB / 0.5824 GB, free: 9.996 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002836/0.4086, allocations: 199.4 kB / 0.5826 GB, free: 9.801 MB / 430.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4086, allocations: 4 kB / 0.5826 GB, free: 9.797 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04591/0.4546, allocations: 12.41 MB / 0.5947 GB, free: 13.56 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.59, allocations: 7.078 kB / 0.5947 GB, free: 13.56 MB / 446.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.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_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.603437379999377] Failed to read output from testmodel.py, exit status != 0: 12.716222668997943 12.746243976 12.380054381999999 Calling exit ...