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.001336/0.001336, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001503/0.001503, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.485/1.485, allocations: 230.6 MB / 258.3 MB, free: 7.777 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.1864/0.1864, allocations: 38.56 MB / 353.2 MB, free: 12.3 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.002053/0.002053, allocations: 63.91 kB / 493.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3617, allocations: 62.47 MB / 0.5427 GB, free: 244 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.008451/0.3701, allocations: 5.816 MB / 0.5484 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003444/0.3736, allocations: 1.363 MB / 0.5497 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005064/0.3741, allocations: 34.47 kB / 0.5498 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005986/0.3747, allocations: 136.9 kB / 0.5499 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001122/0.3758, allocations: 391.6 kB / 0.5503 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006052/0.3764, allocations: 195.8 kB / 0.5504 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.3776, allocations: 0.9197 MB / 0.5513 GB, free: 9.621 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003655/0.378, allocations: 170.6 kB / 0.5515 GB, free: 9.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008835/0.3788, allocations: 424.2 kB / 0.5519 GB, free: 9.281 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008569/0.3797, allocations: 0.4964 MB / 0.5524 GB, free: 8.988 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.917e-05/0.3798, allocations: 47.41 kB / 0.5524 GB, free: 8.988 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.3799, allocations: 47.59 kB / 0.5525 GB, free: 8.988 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003253/0.3803, allocations: 272.5 kB / 0.5527 GB, free: 8.812 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003596/0.3806, allocations: 263.8 kB / 0.553 GB, free: 8.66 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008798/0.3815, allocations: 0.6799 MB / 0.5537 GB, free: 8.207 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.3815, allocations: 5 kB / 0.5537 GB, free: 8.203 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3815, allocations: 3.938 kB / 0.5537 GB, free: 8.199 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.3815, allocations: 3.938 kB / 0.5537 GB, free: 8.195 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.001908/0.3834, allocations: 0.8821 MB / 0.5545 GB, free: 7.527 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.3835, allocations: 13.11 kB / 0.5545 GB, free: 7.523 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.648e-05/0.3835, allocations: 21.25 kB / 0.5546 GB, free: 7.516 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001098/0.3836, allocations: 93.08 kB / 0.5547 GB, free: 7.434 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.3837, allocations: 73.5 kB / 0.5547 GB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.3848, allocations: 0.4931 MB / 0.5552 GB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.179e-05/0.3849, allocations: 37.34 kB / 0.5552 GB, free: 7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.385, allocations: 51.61 kB / 0.5553 GB, free: 6.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.3861, allocations: 0.6249 MB / 0.5559 GB, free: 6.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.3861, allocations: 1.062 kB / 0.5559 GB, free: 6.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.485e-05/0.3862, allocations: 21 kB / 0.5559 GB, free: 6.555 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001153/0.3863, allocations: 34.25 kB / 0.556 GB, free: 6.547 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008443/0.3871, allocations: 0.5043 MB / 0.5564 GB, free: 6.062 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003319/0.3904, allocations: 2.081 MB / 0.5585 GB, free: 3.895 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00105/0.3915, allocations: 461.2 kB / 0.5589 GB, free: 3.426 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006845/0.3922, allocations: 330.7 kB / 0.5592 GB, free: 3.098 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.786e-05/0.3922, allocations: 11.95 kB / 0.5592 GB, free: 3.086 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.3923, allocations: 38.55 kB / 0.5593 GB, free: 3.039 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 2.605e-06/0.3923, allocations: 4 kB / 0.5593 GB, free: 3.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.003507/0.3958, allocations: 1.592 MB / 0.5608 GB, free: 1.406 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.968e-05/0.3958, allocations: 81.11 kB / 0.5609 GB, free: 1.309 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004912/0.3963, allocations: 430 kB / 0.5613 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.3964, allocations: 33.7 kB / 0.5614 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002295/0.3966, allocations: 301 kB / 0.5616 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/0.3967, allocations: 170.5 kB / 0.5618 GB, free: 380 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.3969, allocations: 98.28 kB / 0.5619 GB, free: 276 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001966/0.3971, allocations: 362.8 kB / 0.5623 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002955/0.3974, allocations: 181.2 kB / 0.5624 GB, free: 15.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004142/0.3978, allocations: 316.5 kB / 0.5627 GB, free: 15.37 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.002772/0.4006, allocations: 1.156 MB / 0.5639 GB, free: 14.17 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4006, allocations: 7.938 kB / 0.5639 GB, free: 14.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00128/0.4019, allocations: 0.7032 MB / 0.5645 GB, free: 13.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.4019, allocations: 11.94 kB / 0.5646 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.4019, allocations: 4 kB / 0.5646 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004117/0.4023, allocations: 136.7 kB / 0.5647 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004885/0.4028, allocations: 112.2 kB / 0.5648 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003163/0.406, allocations: 2.492 MB / 0.5672 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003279/0.4063, allocations: 27.92 kB / 0.5673 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.999e-05/0.4063, allocations: 20 kB / 0.5673 GB, free: 10.53 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.0003344/0.4067, allocations: 225.6 kB / 0.5675 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.564e-05/0.4068, allocations: 63.7 kB / 0.5676 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001208/0.408, allocations: 0.6386 MB / 0.5682 GB, free: 9.594 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.408, allocations: 8 kB / 0.5682 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/0.408, allocations: 7.938 kB / 0.5682 GB, free: 9.578 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.408, allocations: 3.984 kB / 0.5682 GB, free: 9.574 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002194/0.4102, allocations: 1.244 MB / 0.5694 GB, free: 8.262 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.4102, allocations: 4 kB / 0.5694 GB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000355/0.4105, allocations: 71.89 kB / 0.5695 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004349/0.411, allocations: 144.8 kB / 0.5696 GB, free: 8.043 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.547e-05/0.411, allocations: 15.98 kB / 0.5696 GB, free: 8.027 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003004/0.414, allocations: 2.492 MB / 0.5721 GB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.414, allocations: 4 kB / 0.5721 GB, free: 5.414 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001545/0.4156, allocations: 0.9925 MB / 0.573 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.4157, allocations: 47.67 kB / 0.5731 GB, free: 4.336 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.193e-05/0.4157, allocations: 15.94 kB / 0.5731 GB, free: 4.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002527/0.416, allocations: 16.03 kB / 0.5731 GB, free: 4.305 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.617e-05/0.4161, allocations: 39.86 kB / 0.5732 GB, free: 4.266 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.333e-05/0.4161, allocations: 19.98 kB / 0.5732 GB, free: 4.246 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003314/0.4165, allocations: 291.1 kB / 0.5735 GB, free: 3.965 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4165, allocations: 4 kB / 0.5735 GB, free: 3.961 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006364/0.4171, allocations: 144 kB / 0.5736 GB, free: 3.82 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.001823/0.4189, allocations: 1.538 MB / 0.5751 GB, free: 2.234 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001207/0.4201, allocations: 0.6362 MB / 0.5757 GB, free: 1.582 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.4201, allocations: 96 / 0.5757 GB, free: 1.582 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006889/0.4208, allocations: 431.2 kB / 0.5761 GB, free: 1.148 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007699/0.4216, allocations: 137.2 kB / 0.5763 GB, free: 1.016 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007416/0.429, allocations: 5.125 MB / 0.5813 GB, free: 11.67 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004004/0.4294, allocations: 329.3 kB / 0.5816 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003377/0.4297, allocations: 100.7 kB / 0.5817 GB, free: 11.22 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003019/0.43, allocations: 203.4 kB / 0.5819 GB, free: 11.02 MB / 430.1 MB Notification: Performance of SimCode: time 7.81e-07/0.43, allocations: 0 / 0.5819 GB, free: 11.02 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04586/0.4759, allocations: 12.78 MB / 0.5944 GB, free: 14.49 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.56/13.04, allocations: 12.06 kB / 0.5944 GB, free: 14.48 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.936321304994635] Failed to read output from testmodel.py, exit status != 0: 13.212771221995354 13.229432839 12.844557824 Calling exit ...