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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 110.2 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 197.3 kB / 18.01 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1759/0.1759, allocations: 38.03 MB / 329.9 MB, free: 8.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 63.89 kB / 457.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.2959, allocations: 58.06 MB / 0.5036 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.005807/0.3017, allocations: 6.088 MB / 0.5096 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001979/0.3037, allocations: 1.415 MB / 0.5109 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002556/0.304, allocations: 27.22 kB / 0.511 GB, free: 2.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004315/0.3044, allocations: 138.4 kB / 0.5111 GB, free: 2.195 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006848/0.3051, allocations: 384.5 kB / 0.5115 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004482/0.3056, allocations: 195 kB / 0.5117 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008279/0.3064, allocations: 0.9186 MB / 0.5126 GB, free: 1.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003518/0.3068, allocations: 273.6 kB / 0.5128 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005133/0.3073, allocations: 408.4 kB / 0.5132 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000646/0.308, allocations: 470.2 kB / 0.5137 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.155e-05/0.3081, allocations: 48.5 kB / 0.5137 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.3082, allocations: 46.56 kB / 0.5137 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000268/0.3085, allocations: 258.2 kB / 0.514 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002996/0.3088, allocations: 322.9 kB / 0.5143 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007337/0.3095, allocations: 0.6804 MB / 0.515 GB, free: 484 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3095, allocations: 0 / 0.515 GB, free: 484 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3096, allocations: 0 / 0.515 GB, free: 484 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.3096, allocations: 0.5156 kB / 0.515 GB, free: 484 kB / 382.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.001725/0.3113, allocations: 0.9657 MB / 0.5159 GB, free: 15.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.3114, allocations: 12.83 kB / 0.5159 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001278/0.3115, allocations: 96.72 kB / 0.516 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.3116, allocations: 69.73 kB / 0.5161 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.3127, allocations: 0.558 MB / 0.5166 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.559e-05/0.3128, allocations: 40.97 kB / 0.5167 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.3129, allocations: 48.59 kB / 0.5167 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.3141, allocations: 0.6274 MB / 0.5173 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.3141, allocations: 1.344 kB / 0.5173 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.3142, allocations: 21.06 kB / 0.5173 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001214/0.3143, allocations: 33.89 kB / 0.5174 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008862/0.3152, allocations: 0.5053 MB / 0.5179 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003181/0.3184, allocations: 2.226 MB / 0.52 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000884/0.3193, allocations: 0.4913 MB / 0.5205 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006907/0.32, allocations: 360 kB / 0.5209 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.762e-05/0.3201, allocations: 4.969 kB / 0.5209 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.3201, allocations: 45.91 kB / 0.5209 GB, free: 12.98 MB / 398.1 MB Notification: Performance of pre-optimization done (n=45): time 1.964e-06/0.3201, allocations: 0 / 0.5209 GB, free: 12.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=47): time 0.00344/0.3236, allocations: 1.763 MB / 0.5226 GB, free: 12.05 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.737e-05/0.3237, allocations: 82.61 kB / 0.5227 GB, free: 11.96 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004772/0.3241, allocations: 425.8 kB / 0.5231 GB, free: 11.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.328e-05/0.3242, allocations: 30.67 kB / 0.5231 GB, free: 11.72 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002361/0.3244, allocations: 297.1 kB / 0.5234 GB, free: 11.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.3246, allocations: 173.8 kB / 0.5236 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001543/0.3248, allocations: 98.72 kB / 0.5237 GB, free: 11.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.3249, allocations: 363.6 kB / 0.524 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002963/0.3252, allocations: 185.9 kB / 0.5242 GB, free: 10.89 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004013/0.3257, allocations: 315.8 kB / 0.5245 GB, free: 10.68 MB / 398.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.002705/0.3284, allocations: 1.236 MB / 0.5257 GB, free: 10.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.023e-06/0.3284, allocations: 1.406 kB / 0.5257 GB, free: 10.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001278/0.3297, allocations: 0.7162 MB / 0.5264 GB, free: 9.812 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.3297, allocations: 9.812 kB / 0.5264 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.3297, allocations: 4.594 kB / 0.5264 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004101/0.3301, allocations: 138.1 kB / 0.5266 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004529/0.3306, allocations: 113.4 kB / 0.5267 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003099/0.3337, allocations: 2.607 MB / 0.5292 GB, free: 7.816 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003435/0.3341, allocations: 25.25 kB / 0.5292 GB, free: 7.809 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.503e-05/0.3341, allocations: 24.14 kB / 0.5293 GB, free: 7.801 MB / 398.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.0003426/0.3345, allocations: 221.1 kB / 0.5295 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.115e-05/0.3346, allocations: 55.7 kB / 0.5295 GB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001195/0.3358, allocations: 0.6552 MB / 0.5302 GB, free: 7.328 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.3358, allocations: 6.344 kB / 0.5302 GB, free: 7.328 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3358, allocations: 2.203 kB / 0.5302 GB, free: 7.328 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.3358, allocations: 8.016 kB / 0.5302 GB, free: 7.324 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002201/0.338, allocations: 1.376 MB / 0.5315 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.338, allocations: 5.719 kB / 0.5315 GB, free: 6.562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003469/0.3384, allocations: 79.62 kB / 0.5316 GB, free: 6.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004187/0.3388, allocations: 142.5 kB / 0.5318 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.1e-05/0.3389, allocations: 15.56 kB / 0.5318 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00305/0.3419, allocations: 2.628 MB / 0.5343 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.3419, allocations: 2.797 kB / 0.5343 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.3434, allocations: 0.9918 MB / 0.5353 GB, free: 3.734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.3436, allocations: 128.9 kB / 0.5354 GB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.947e-05/0.3437, allocations: 17.28 kB / 0.5354 GB, free: 3.594 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002453/0.3439, allocations: 23.33 kB / 0.5355 GB, free: 3.578 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.648e-05/0.344, allocations: 41.92 kB / 0.5355 GB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-05/0.3441, allocations: 11.16 kB / 0.5355 GB, free: 3.555 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003674/0.3444, allocations: 291.1 kB / 0.5358 GB, free: 3.379 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3444, allocations: 96 / 0.5358 GB, free: 3.379 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007049/0.3451, allocations: 147.9 kB / 0.5359 GB, free: 3.359 MB / 398.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.001793/0.3469, allocations: 1.535 MB / 0.5374 GB, free: 2.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001251/0.3482, allocations: 0.6562 MB / 0.5381 GB, free: 1.844 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3482, allocations: 1.25 kB / 0.5381 GB, free: 1.844 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007069/0.3489, allocations: 439.7 kB / 0.5385 GB, free: 1.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007669/0.3497, allocations: 127 kB / 0.5386 GB, free: 1.5 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007025/0.3567, allocations: 5.146 MB / 0.5436 GB, free: 14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006296/0.3574, allocations: 0.9296 MB / 0.5446 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003733/0.3578, allocations: 104.5 kB / 0.5446 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002724/0.3581, allocations: 197.6 kB / 0.5448 GB, free: 12.98 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3581, allocations: 0 / 0.5448 GB, free: 12.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05095/0.409, allocations: 11.91 MB / 0.5565 GB, free: 1.477 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.25/10.66, allocations: 1.438 kB / 0.5565 GB, free: 1.477 MB / 414.1 MB (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 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)