Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001885/0.001885, allocations: 106.8 kB / 17.05 MB, free: 6.09 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.001935/0.001935, allocations: 192 kB / 18 MB, free: 5.184 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.382/1.382, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1781/0.1781, allocations: 38.02 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 71.83 kB / 457.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3111, allocations: 58.05 MB / 0.5036 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.006304/0.3174, allocations: 6.482 MB / 0.5099 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00283/0.3203, allocations: 1.879 MB / 0.5118 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004065/0.3207, allocations: 37.09 kB / 0.5118 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001187/0.3219, allocations: 435.5 kB / 0.5122 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008744/0.3228, allocations: 425.5 kB / 0.5126 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000879/0.3237, allocations: 342.9 kB / 0.513 GB, free: 1.062 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001003/0.3247, allocations: 1.029 MB / 0.514 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006984/0.3254, allocations: 0.4921 MB / 0.5144 GB, free: 428 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000598/0.326, allocations: 465.2 kB / 0.5149 GB, free: 216 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007735/0.3268, allocations: 0.5668 MB / 0.5154 GB, free: 8 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.327, allocations: 65.59 kB / 0.5155 GB, free: 8 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006314/0.3276, allocations: 259.9 kB / 0.5157 GB, free: 15.94 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004502/0.3281, allocations: 377.8 kB / 0.5161 GB, free: 15.81 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006133/0.3287, allocations: 428.2 kB / 0.5165 GB, free: 15.56 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001764/0.3305, allocations: 1.039 MB / 0.5175 GB, free: 15.17 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.3305, allocations: 0 / 0.5175 GB, free: 15.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.957e-06/0.3305, allocations: 0 / 0.5175 GB, free: 15.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.58e-05/0.3305, allocations: 4.5 kB / 0.5175 GB, free: 15.17 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002525/0.333, allocations: 1.136 MB / 0.5186 GB, free: 14.4 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.3331, allocations: 13.45 kB / 0.5187 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001664/0.3333, allocations: 124.6 kB / 0.5188 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007358/0.334, allocations: 134 kB / 0.5189 GB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.3351, allocations: 0.6095 MB / 0.5195 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.096e-05/0.3352, allocations: 55.77 kB / 0.5196 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000175/0.3353, allocations: 76.5 kB / 0.5196 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.337, allocations: 1.01 MB / 0.5206 GB, free: 13.4 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.759e-05/0.337, allocations: 5.062 kB / 0.5206 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.253e-05/0.3371, allocations: 27.27 kB / 0.5206 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002022/0.3373, allocations: 75.62 kB / 0.5207 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.3389, allocations: 0.9763 MB / 0.5217 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005303/0.3442, allocations: 3.274 MB / 0.5249 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.3455, allocations: 0.6873 MB / 0.5255 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000729/0.3462, allocations: 427.1 kB / 0.5259 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.561e-05/0.3463, allocations: 10.11 kB / 0.526 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.1e-05/0.3463, allocations: 38.36 kB / 0.526 GB, free: 10.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 3.186e-06/0.3463, allocations: 0 / 0.526 GB, free: 10.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=75): time 0.004731/0.3511, allocations: 2.45 MB / 0.5284 GB, free: 9.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/0.3512, allocations: 90.92 kB / 0.5285 GB, free: 9.242 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005157/0.3517, allocations: 443.9 kB / 0.5289 GB, free: 9.031 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.299e-05/0.3517, allocations: 36.17 kB / 0.5289 GB, free: 8.992 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002921/0.352, allocations: 367.7 kB / 0.5293 GB, free: 8.695 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000256/0.3523, allocations: 273.2 kB / 0.5295 GB, free: 8.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002644/0.3526, allocations: 146.2 kB / 0.5297 GB, free: 8.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002318/0.3528, allocations: 379.9 kB / 0.53 GB, free: 8.066 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005825/0.3534, allocations: 341.8 kB / 0.5304 GB, free: 7.957 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007639/0.3542, allocations: 0.5276 MB / 0.5309 GB, free: 7.566 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005221/0.3594, allocations: 2.233 MB / 0.5331 GB, free: 6.297 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.3594, allocations: 2.656 kB / 0.5331 GB, free: 6.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001794/0.3612, allocations: 1.097 MB / 0.5341 GB, free: 5.695 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.3612, allocations: 12.02 kB / 0.5341 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.3613, allocations: 4.688 kB / 0.5341 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001537/0.3614, allocations: 43.38 kB / 0.5342 GB, free: 5.668 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007503/0.3622, allocations: 192.2 kB / 0.5344 GB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.3637, allocations: 1.5 MB / 0.5358 GB, free: 4.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004871/0.3642, allocations: 39.39 kB / 0.5359 GB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.38e-05/0.3643, allocations: 32.62 kB / 0.5359 GB, free: 4.074 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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (95): * Single equations (assignments): 92 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004831/0.3648, allocations: 278.5 kB / 0.5362 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.3649, allocations: 68.78 kB / 0.5362 GB, free: 3.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001579/0.3665, allocations: 0.9677 MB / 0.5372 GB, free: 3.223 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-05/0.3665, allocations: 12.91 kB / 0.5372 GB, free: 3.223 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.3665, allocations: 8.953 kB / 0.5372 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.3666, allocations: 4.984 kB / 0.5372 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003379/0.3699, allocations: 2.004 MB / 0.5392 GB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.487e-06/0.37, allocations: 8.828 kB / 0.5392 GB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006548/0.3706, allocations: 149.9 kB / 0.5393 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001065/0.3707, allocations: 34.25 kB / 0.5394 GB, free: 1.797 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.498e-05/0.3708, allocations: 25.95 kB / 0.5394 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001259/0.3721, allocations: 1.497 MB / 0.5408 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.3721, allocations: 4.656 kB / 0.5408 GB, free: 276 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.3742, allocations: 1.531 MB / 0.5423 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001727/0.3743, allocations: 142.8 kB / 0.5425 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.411e-05/0.3744, allocations: 29.95 kB / 0.5425 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003674/0.3748, allocations: 30.38 kB / 0.5425 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.3749, allocations: 62.16 kB / 0.5426 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.273e-05/0.375, allocations: 28.58 kB / 0.5426 GB, free: 15.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003544/0.3753, allocations: 298.3 kB / 0.5429 GB, free: 14.87 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3754, allocations: 5.344 kB / 0.5429 GB, free: 14.86 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007672/0.3761, allocations: 189.7 kB / 0.5431 GB, free: 14.84 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],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 (75): * Single equations (assignments): 71 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002578/0.3787, allocations: 2.126 MB / 0.5452 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001655/0.3804, allocations: 0.9651 MB / 0.5461 GB, free: 11.87 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3804, allocations: 1.438 kB / 0.5461 GB, free: 11.87 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007283/0.3811, allocations: 0.5215 MB / 0.5466 GB, free: 11.33 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008409/0.382, allocations: 162 kB / 0.5468 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009647/0.3916, allocations: 7.06 MB / 0.5537 GB, free: 3.727 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000765/0.3924, allocations: 1.013 MB / 0.5547 GB, free: 2.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005828/0.393, allocations: 205.4 kB / 0.5549 GB, free: 2.477 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004161/0.3935, allocations: 271.3 kB / 0.5551 GB, free: 2.211 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3935, allocations: 0 / 0.5551 GB, free: 2.211 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06754/0.461, allocations: 14.6 MB / 0.5694 GB, free: 3.773 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.35, allocations: 4 kB / 0.5694 GB, free: 3.77 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)