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.001349/0.001349, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.00139/0.00139, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.492/1.492, allocations: 230.6 MB / 258.3 MB, free: 8.016 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.1916/0.1916, allocations: 38.53 MB / 353.2 MB, free: 12.55 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="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.002137/0.002137, allocations: 63.91 kB / 493.3 MB, free: 4.891 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3285, allocations: 62.47 MB / 0.5428 GB, free: 444 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.00942/0.3379, allocations: 6.276 MB / 0.5489 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003518/0.3414, allocations: 1.461 MB / 0.5503 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007678/0.3422, allocations: 35.31 kB / 0.5504 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000747/0.343, allocations: 141 kB / 0.5505 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001486/0.3444, allocations: 397.7 kB / 0.5509 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007482/0.3452, allocations: 191.7 kB / 0.5511 GB, free: 9.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001508/0.3467, allocations: 0.9242 MB / 0.552 GB, free: 9.211 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003926/0.3471, allocations: 167.5 kB / 0.5521 GB, free: 9.113 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007802/0.3479, allocations: 428.3 kB / 0.5525 GB, free: 8.871 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008532/0.3487, allocations: 495.5 kB / 0.553 GB, free: 8.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001136/0.3488, allocations: 47.31 kB / 0.553 GB, free: 8.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001554/0.349, allocations: 56.28 kB / 0.5531 GB, free: 8.582 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004844/0.3495, allocations: 267.3 kB / 0.5534 GB, free: 8.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000574/0.35, allocations: 315.7 kB / 0.5537 GB, free: 8.207 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001416/0.3515, allocations: 0.6817 MB / 0.5543 GB, free: 7.746 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.3515, allocations: 0 / 0.5543 GB, free: 7.746 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.3515, allocations: 1.062 kB / 0.5543 GB, free: 7.746 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.764e-05/0.3515, allocations: 0 / 0.5543 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.002249/0.3537, allocations: 0.8916 MB / 0.5552 GB, free: 7.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.696e-05/0.3538, allocations: 13.08 kB / 0.5552 GB, free: 7.066 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.217e-05/0.3538, allocations: 13.69 kB / 0.5552 GB, free: 7.066 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001265/0.354, allocations: 88.48 kB / 0.5553 GB, free: 6.988 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.3541, allocations: 76.41 kB / 0.5554 GB, free: 6.945 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.3552, allocations: 0.4893 MB / 0.5558 GB, free: 6.574 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.87e-05/0.3553, allocations: 41.53 kB / 0.5559 GB, free: 6.551 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.862e-05/0.3554, allocations: 52.58 kB / 0.5559 GB, free: 6.531 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.3565, allocations: 0.626 MB / 0.5566 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.3565, allocations: 7.938 kB / 0.5566 GB, free: 6.109 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.954e-05/0.3565, allocations: 17.59 kB / 0.5566 GB, free: 6.098 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001164/0.3567, allocations: 33.59 kB / 0.5566 GB, free: 6.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009446/0.3576, allocations: 0.5058 MB / 0.5571 GB, free: 5.699 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004107/0.3617, allocations: 2.175 MB / 0.5592 GB, free: 3.438 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/0.3627, allocations: 477.1 kB / 0.5597 GB, free: 2.953 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007327/0.3635, allocations: 330.8 kB / 0.56 GB, free: 2.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.327e-05/0.3635, allocations: 7.953 kB / 0.56 GB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/0.3635, allocations: 34.56 kB / 0.56 GB, free: 2.574 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.274e-06/0.3635, allocations: 0 / 0.56 GB, free: 2.574 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003744/0.3673, allocations: 1.608 MB / 0.5616 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.718e-05/0.3674, allocations: 81.11 kB / 0.5617 GB, free: 0.832 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005881/0.368, allocations: 417.8 kB / 0.5621 GB, free: 424 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.906e-05/0.368, allocations: 37.7 kB / 0.5621 GB, free: 380 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003278/0.3683, allocations: 301 kB / 0.5624 GB, free: 72 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002979/0.3686, allocations: 170.7 kB / 0.5626 GB, free: 15.9 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.3688, allocations: 106.3 kB / 0.5627 GB, free: 15.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002102/0.369, allocations: 362.8 kB / 0.563 GB, free: 15.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003156/0.3693, allocations: 185.2 kB / 0.5632 GB, free: 15.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004052/0.3697, allocations: 304.6 kB / 0.5635 GB, free: 14.9 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.002875/0.3726, allocations: 1.158 MB / 0.5646 GB, free: 13.69 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.3726, allocations: 4 kB / 0.5646 GB, free: 13.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001254/0.3739, allocations: 0.6989 MB / 0.5653 GB, free: 12.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.3739, allocations: 8.469 kB / 0.5653 GB, free: 12.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.3739, allocations: 7.984 kB / 0.5653 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004056/0.3743, allocations: 144.6 kB / 0.5655 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000466/0.3748, allocations: 115.8 kB / 0.5656 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00348/0.3783, allocations: 2.5 MB / 0.568 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003391/0.3786, allocations: 23.98 kB / 0.568 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.928e-05/0.3786, allocations: 20 kB / 0.568 GB, free: 10.05 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.0003453/0.379, allocations: 233.5 kB / 0.5683 GB, free: 9.812 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.948e-05/0.3791, allocations: 51.67 kB / 0.5683 GB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001257/0.3803, allocations: 0.6503 MB / 0.569 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.3803, allocations: 4 kB / 0.569 GB, free: 9.102 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.3803, allocations: 7.938 kB / 0.569 GB, free: 9.094 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3803, allocations: 3.984 kB / 0.569 GB, free: 9.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002441/0.3828, allocations: 1.337 MB / 0.5703 GB, free: 7.672 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.3828, allocations: 7.984 kB / 0.5703 GB, free: 7.664 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000362/0.3832, allocations: 76.06 kB / 0.5704 GB, free: 7.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004509/0.3836, allocations: 144.7 kB / 0.5705 GB, free: 7.445 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.814e-05/0.3836, allocations: 12 kB / 0.5705 GB, free: 7.434 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003219/0.3869, allocations: 2.524 MB / 0.573 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/0.3869, allocations: 11.97 kB / 0.573 GB, free: 4.781 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/0.3885, allocations: 0.9769 MB / 0.5739 GB, free: 3.766 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001216/0.3886, allocations: 47.62 kB / 0.574 GB, free: 3.719 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.241e-05/0.3887, allocations: 15.94 kB / 0.574 GB, free: 3.703 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002581/0.389, allocations: 19.98 kB / 0.574 GB, free: 3.684 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.098e-05/0.389, allocations: 39.92 kB / 0.5741 GB, free: 3.645 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.08e-05/0.3891, allocations: 16.09 kB / 0.5741 GB, free: 3.629 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004182/0.3895, allocations: 291.1 kB / 0.5743 GB, free: 3.348 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3895, allocations: 7.938 kB / 0.5744 GB, free: 3.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007582/0.3903, allocations: 148 kB / 0.5745 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.001951/0.3922, allocations: 1.534 MB / 0.576 GB, free: 1.613 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.3934, allocations: 0.6368 MB / 0.5766 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3934, allocations: 0 / 0.5766 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006957/0.3941, allocations: 426.1 kB / 0.577 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007826/0.3949, allocations: 133 kB / 0.5771 GB, free: 412 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00807/0.403, allocations: 5.129 MB / 0.5822 GB, free: 11.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007301/0.4037, allocations: 0.9292 MB / 0.5831 GB, free: 10.09 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005037/0.4042, allocations: 104.7 kB / 0.5832 GB, free: 9.988 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000298/0.4045, allocations: 195.4 kB / 0.5833 GB, free: 9.797 MB / 430.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4045, allocations: 0 / 0.5833 GB, free: 9.797 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04471/0.4492, allocations: 12.44 MB / 0.5955 GB, free: 13.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.56/13.01, allocations: 15.61 kB / 0.5955 GB, free: 13.54 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 & /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: 15.879054699034896] Failed to read output from testmodel.py, exit status != 0: 13.187858643999789 13.205139979 12.850116928 Calling exit ...