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.001857/0.001857, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.002107/0.002107, allocations: 208.2 kB / 23.72 MB, free: 4.41 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.634/1.634, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.1893/0.1893, allocations: 38.57 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.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.003366/0.003366, allocations: 71.88 kB / 492.5 MB, free: 4.723 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4174/0.4208, allocations: 62.47 MB / 0.5419 GB, free: 256 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.01113/0.4319, allocations: 5.829 MB / 0.5476 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003577/0.4355, allocations: 1.362 MB / 0.549 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004829/0.436, allocations: 34.75 kB / 0.549 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006096/0.4366, allocations: 137.3 kB / 0.5491 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001222/0.4378, allocations: 399.5 kB / 0.5495 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006936/0.4385, allocations: 194.8 kB / 0.5497 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001374/0.4399, allocations: 0.9173 MB / 0.5506 GB, free: 9.629 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003969/0.4403, allocations: 162.3 kB / 0.5507 GB, free: 9.535 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009028/0.4412, allocations: 431.5 kB / 0.5512 GB, free: 9.289 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009434/0.4421, allocations: 473.8 kB / 0.5516 GB, free: 9.031 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.4423, allocations: 46.28 kB / 0.5517 GB, free: 9.031 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001617/0.4424, allocations: 47.81 kB / 0.5517 GB, free: 9.031 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003715/0.4428, allocations: 272.8 kB / 0.552 GB, free: 8.855 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003926/0.4432, allocations: 263.3 kB / 0.5522 GB, free: 8.703 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001054/0.4442, allocations: 0.6837 MB / 0.5529 GB, free: 8.246 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.4442, allocations: 9.094 kB / 0.5529 GB, free: 8.238 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4442, allocations: 3.938 kB / 0.5529 GB, free: 8.234 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.4442, allocations: 0 / 0.5529 GB, free: 8.234 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.002351/0.4466, allocations: 0.8859 MB / 0.5538 GB, free: 7.562 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/0.4467, allocations: 12.77 kB / 0.5538 GB, free: 7.559 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001516/0.4468, allocations: 88.95 kB / 0.5539 GB, free: 7.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.447, allocations: 77.56 kB / 0.5539 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00153/0.4485, allocations: 0.4932 MB / 0.5544 GB, free: 7.062 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.455e-05/0.4486, allocations: 45.3 kB / 0.5545 GB, free: 7.039 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.4487, allocations: 52.02 kB / 0.5545 GB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.4501, allocations: 0.6248 MB / 0.5551 GB, free: 6.609 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.4501, allocations: 1.312 kB / 0.5551 GB, free: 6.609 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.709e-05/0.4502, allocations: 16.25 kB / 0.5551 GB, free: 6.598 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001519/0.4504, allocations: 42.53 kB / 0.5552 GB, free: 6.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.4517, allocations: 0.5004 MB / 0.5557 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004507/0.4562, allocations: 2.073 MB / 0.5577 GB, free: 3.957 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001303/0.4575, allocations: 463.2 kB / 0.5581 GB, free: 3.488 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001114/0.4586, allocations: 330.8 kB / 0.5584 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.428e-05/0.4587, allocations: 11.89 kB / 0.5585 GB, free: 3.148 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.977e-05/0.4587, allocations: 46.53 kB / 0.5585 GB, free: 3.094 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 3.326e-06/0.4587, allocations: 3.938 kB / 0.5585 GB, free: 3.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.005159/0.4639, allocations: 1.596 MB / 0.5601 GB, free: 1.457 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.097e-05/0.464, allocations: 81.11 kB / 0.5601 GB, free: 1.359 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008322/0.4648, allocations: 429.8 kB / 0.5605 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.592e-05/0.4649, allocations: 33.7 kB / 0.5606 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003849/0.4652, allocations: 301 kB / 0.5609 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002514/0.4655, allocations: 166.5 kB / 0.561 GB, free: 436 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002444/0.4657, allocations: 102.3 kB / 0.5611 GB, free: 328 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003187/0.4661, allocations: 358.8 kB / 0.5615 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000476/0.4665, allocations: 189.2 kB / 0.5616 GB, free: 15.78 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006916/0.4672, allocations: 308.5 kB / 0.5619 GB, free: 15.43 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.004002/0.4712, allocations: 1.158 MB / 0.5631 GB, free: 14.22 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.4712, allocations: 0 / 0.5631 GB, free: 14.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001995/0.4732, allocations: 0.7068 MB / 0.5638 GB, free: 13.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.003e-05/0.4733, allocations: 8 kB / 0.5638 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.4733, allocations: 4.469 kB / 0.5638 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005689/0.4739, allocations: 144.7 kB / 0.5639 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006636/0.4745, allocations: 107.9 kB / 0.564 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004362/0.4789, allocations: 2.492 MB / 0.5664 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005467/0.4794, allocations: 23.98 kB / 0.5665 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.333e-05/0.4795, allocations: 20 kB / 0.5665 GB, free: 10.59 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.0004779/0.48, allocations: 225.6 kB / 0.5667 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.4801, allocations: 55.61 kB / 0.5668 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001654/0.4817, allocations: 0.6503 MB / 0.5674 GB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.4818, allocations: 8 kB / 0.5674 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4818, allocations: 0 / 0.5674 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.4818, allocations: 7.922 kB / 0.5674 GB, free: 9.629 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003249/0.485, allocations: 1.244 MB / 0.5686 GB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.094e-06/0.485, allocations: 4 kB / 0.5686 GB, free: 8.312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005291/0.4856, allocations: 75.89 kB / 0.5687 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006269/0.4862, allocations: 144.9 kB / 0.5688 GB, free: 8.094 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.379e-05/0.4862, allocations: 19.98 kB / 0.5689 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004512/0.4907, allocations: 2.501 MB / 0.5713 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.4908, allocations: 4 kB / 0.5713 GB, free: 5.457 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002302/0.4931, allocations: 0.9847 MB / 0.5723 GB, free: 4.434 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002465/0.4933, allocations: 47.62 kB / 0.5723 GB, free: 4.387 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.986e-05/0.4934, allocations: 12 kB / 0.5723 GB, free: 4.375 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003878/0.4938, allocations: 23.92 kB / 0.5723 GB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.4939, allocations: 47.86 kB / 0.5724 GB, free: 4.305 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.806e-05/0.4939, allocations: 15.98 kB / 0.5724 GB, free: 4.289 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005525/0.4945, allocations: 287.1 kB / 0.5727 GB, free: 4.012 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4945, allocations: 0 / 0.5727 GB, free: 4.012 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001026/0.4955, allocations: 148 kB / 0.5728 GB, free: 3.867 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.002623/0.4981, allocations: 1.531 MB / 0.5743 GB, free: 2.289 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001751/0.4999, allocations: 0.633 MB / 0.5749 GB, free: 1.641 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.4999, allocations: 0 / 0.5749 GB, free: 1.641 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009706/0.5009, allocations: 430.2 kB / 0.5753 GB, free: 1.207 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.502, allocations: 137.4 kB / 0.5755 GB, free: 1.074 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/0.5126, allocations: 5.124 MB / 0.5805 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005268/0.5131, allocations: 337.3 kB / 0.5808 GB, free: 11.38 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000489/0.5136, allocations: 100.7 kB / 0.5809 GB, free: 11.27 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004002/0.514, allocations: 195.4 kB / 0.5811 GB, free: 11.08 MB / 430.1 MB Notification: Performance of SimCode: time 8.32e-07/0.514, allocations: 0 / 0.5811 GB, free: 11.08 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06317/0.5772, allocations: 13 MB / 0.5938 GB, free: 14.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.42, allocations: 0 / 0.5938 GB, free: 14.32 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.413032121956348] Failed to read output from testmodel.py, exit status != 0: 12.543572718277574 12.565791825 12.117199326 Calling exit ...