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.00181/0.00181, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.00296/0.00296, allocations: 200 kB / 18.01 MB, free: 5.047 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.457/1.457, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1832/0.1832, allocations: 38.04 MB / 329.9 MB, free: 8.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 64.05 kB / 457.6 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3475, allocations: 58.05 MB / 0.5036 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.008425/0.356, allocations: 6.482 MB / 0.5099 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00339/0.3594, allocations: 1.872 MB / 0.5118 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005765/0.36, allocations: 33.66 kB / 0.5118 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.3613, allocations: 441.2 kB / 0.5122 GB, free: 1.355 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009396/0.3622, allocations: 431.3 kB / 0.5126 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009889/0.3632, allocations: 342.1 kB / 0.513 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001224/0.3645, allocations: 1.031 MB / 0.514 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000673/0.3651, allocations: 0.5009 MB / 0.5145 GB, free: 312 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006745/0.3658, allocations: 467.8 kB / 0.5149 GB, free: 104 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007932/0.3666, allocations: 0.5745 MB / 0.5155 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.3667, allocations: 66.59 kB / 0.5155 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000577/0.3673, allocations: 255.7 kB / 0.5158 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004381/0.3678, allocations: 365.4 kB / 0.5161 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005266/0.3683, allocations: 436.1 kB / 0.5165 GB, free: 15.45 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001591/0.3699, allocations: 1.045 MB / 0.5176 GB, free: 15.06 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.3699, allocations: 4.781 kB / 0.5176 GB, free: 15.05 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3699, allocations: 0 / 0.5176 GB, free: 15.05 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.757e-05/0.37, allocations: 0 / 0.5176 GB, free: 15.05 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.002474/0.3725, allocations: 1.141 MB / 0.5187 GB, free: 14.28 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.3725, allocations: 13.17 kB / 0.5187 GB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000163/0.3727, allocations: 117.2 kB / 0.5188 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007692/0.3735, allocations: 129.9 kB / 0.5189 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.3746, allocations: 0.619 MB / 0.5195 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.111e-05/0.3747, allocations: 47.53 kB / 0.5196 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/0.3749, allocations: 78.84 kB / 0.5196 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001742/0.3766, allocations: 1.011 MB / 0.5206 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/0.3767, allocations: 5 kB / 0.5206 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.297e-05/0.3768, allocations: 26.41 kB / 0.5207 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002336/0.377, allocations: 75.52 kB / 0.5207 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001807/0.3788, allocations: 0.9727 MB / 0.5217 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005619/0.3844, allocations: 3.27 MB / 0.5249 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.3856, allocations: 0.6873 MB / 0.5256 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006384/0.3863, allocations: 431 kB / 0.526 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.342e-05/0.3864, allocations: 13.34 kB / 0.526 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.3864, allocations: 42.34 kB / 0.526 GB, free: 10.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 2.835e-06/0.3864, allocations: 0 / 0.526 GB, free: 10.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=75): time 0.004027/0.3904, allocations: 2.451 MB / 0.5284 GB, free: 9.223 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.3905, allocations: 85.36 kB / 0.5285 GB, free: 9.129 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004883/0.391, allocations: 440.8 kB / 0.5289 GB, free: 8.922 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.062e-05/0.3911, allocations: 40.52 kB / 0.5289 GB, free: 8.879 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002338/0.3913, allocations: 362.9 kB / 0.5293 GB, free: 8.586 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002198/0.3915, allocations: 272.9 kB / 0.5296 GB, free: 8.371 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002237/0.3918, allocations: 146.6 kB / 0.5297 GB, free: 8.301 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.3919, allocations: 380.3 kB / 0.5301 GB, free: 7.957 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005012/0.3924, allocations: 342.1 kB / 0.5304 GB, free: 7.848 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006318/0.3931, allocations: 0.5198 MB / 0.5309 GB, free: 7.48 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.005059/0.3981, allocations: 2.245 MB / 0.5331 GB, free: 6.203 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.3982, allocations: 2.188 kB / 0.5331 GB, free: 6.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00172/0.3999, allocations: 1.097 MB / 0.5342 GB, free: 5.602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3999, allocations: 7.75 kB / 0.5342 GB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.3999, allocations: 9.438 kB / 0.5342 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000151/0.4001, allocations: 47.3 kB / 0.5342 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007639/0.4009, allocations: 187.4 kB / 0.5344 GB, free: 5.523 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/0.4021, allocations: 1.508 MB / 0.5359 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005361/0.4026, allocations: 35.94 kB / 0.5359 GB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.931e-05/0.4027, allocations: 28.28 kB / 0.5359 GB, free: 3.98 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.0004441/0.4031, allocations: 283 kB / 0.5362 GB, free: 3.762 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.4033, allocations: 63.55 kB / 0.5363 GB, free: 3.727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.4048, allocations: 0.9748 MB / 0.5372 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-05/0.4048, allocations: 14.09 kB / 0.5372 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.4048, allocations: 5.125 kB / 0.5372 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.4048, allocations: 5.266 kB / 0.5372 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003258/0.4081, allocations: 1.999 MB / 0.5392 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/0.4081, allocations: 4.188 kB / 0.5392 GB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006793/0.4088, allocations: 155.8 kB / 0.5393 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001076/0.4089, allocations: 32.72 kB / 0.5394 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.542e-05/0.409, allocations: 26.48 kB / 0.5394 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/0.41, allocations: 1.505 MB / 0.5409 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.41, allocations: 4.906 kB / 0.5409 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001917/0.4119, allocations: 1.535 MB / 0.5424 GB, free: 15.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001768/0.4121, allocations: 142.6 kB / 0.5425 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.698e-05/0.4122, allocations: 27.17 kB / 0.5425 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003756/0.4126, allocations: 30.62 kB / 0.5426 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.955e-05/0.4127, allocations: 61.31 kB / 0.5426 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.022e-05/0.4128, allocations: 23.59 kB / 0.5426 GB, free: 14.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003395/0.4131, allocations: 303.6 kB / 0.5429 GB, free: 14.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.462e-06/0.4131, allocations: 0 / 0.5429 GB, free: 14.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007964/0.4139, allocations: 190.2 kB / 0.5431 GB, free: 14.74 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.002261/0.4162, allocations: 2.129 MB / 0.5452 GB, free: 12.81 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001457/0.4177, allocations: 0.9612 MB / 0.5461 GB, free: 11.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.4177, allocations: 4 kB / 0.5461 GB, free: 11.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006491/0.4184, allocations: 0.5195 MB / 0.5466 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008825/0.4192, allocations: 152.7 kB / 0.5468 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008686/0.4279, allocations: 7.06 MB / 0.5537 GB, free: 3.699 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006234/0.4286, allocations: 1.016 MB / 0.5547 GB, free: 2.648 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006271/0.4292, allocations: 201.4 kB / 0.5549 GB, free: 2.449 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004145/0.4297, allocations: 275.3 kB / 0.5551 GB, free: 2.18 MB / 414.1 MB Notification: Performance of SimCode: time 1.283e-06/0.4297, allocations: 0 / 0.5551 GB, free: 2.18 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05719/0.4869, allocations: 14.6 MB / 0.5694 GB, free: 3.75 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/10.88, allocations: 16 kB / 0.5694 GB, free: 3.734 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)