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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001457/0.001457, allocations: 191.9 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.339/1.339, allocations: 194.2 MB / 212.2 MB, free: 2.375 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001709/0.001709, allocations: 128.8 kB / 256.6 MB, free: 4.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1627/0.1627, allocations: 37.95 MB / 338.8 MB, free: 2.227 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 63.91 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0719/0.07301, allocations: 52.18 MB / 454 MB, free: 16.58 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.006113/0.07916, allocations: 7.746 MB / 461.7 MB, free: 8.797 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002655/0.08184, allocations: 2.299 MB / 464 MB, free: 6.488 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003461/0.08221, allocations: 51.69 kB / 464.1 MB, free: 6.438 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009373/0.08315, allocations: 414.3 kB / 464.5 MB, free: 6.031 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005412/0.0837, allocations: 394.3 kB / 464.9 MB, free: 5.645 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005388/0.08425, allocations: 311.5 kB / 465.2 MB, free: 5.34 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007853/0.08505, allocations: 1.528 MB / 466.7 MB, free: 3.809 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004396/0.0855, allocations: 444.5 kB / 467.1 MB, free: 3.367 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000324/0.08583, allocations: 402.2 kB / 467.5 MB, free: 2.973 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004943/0.08633, allocations: 0.588 MB / 468.1 MB, free: 2.383 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.092e-05/0.08642, allocations: 44 kB / 468.2 MB, free: 2.34 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003605/0.08679, allocations: 271.5 kB / 468.4 MB, free: 2.074 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002022/0.087, allocations: 351.1 kB / 468.8 MB, free: 1.73 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002641/0.08727, allocations: 397.9 kB / 469.2 MB, free: 1.34 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005646/0.08785, allocations: 1.008 MB / 470.2 MB, free: 336 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.207e-06/0.08786, allocations: 4 kB / 470.2 MB, free: 332 kB / 314.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.08786, allocations: 3.938 kB / 470.2 MB, free: 328 kB / 314.7 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.08788, allocations: 0 / 470.2 MB, free: 328 kB / 314.7 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.001772/0.08966, allocations: 1.121 MB / 471.3 MB, free: 15.15 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.824e-05/0.08969, allocations: 8.031 kB / 471.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006154/0.09031, allocations: 139.7 kB / 471.4 MB, free: 15 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009112/0.09124, allocations: 0.5689 MB / 472 MB, free: 14.39 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.148e-05/0.09129, allocations: 53.67 kB / 472.1 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.09143, allocations: 67.94 kB / 472.1 MB, free: 14.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/0.09267, allocations: 1.014 MB / 473.1 MB, free: 13.22 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.0927, allocations: 3.906 kB / 473.1 MB, free: 13.21 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.359e-05/0.09277, allocations: 31.98 kB / 473.2 MB, free: 13.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001841/0.09296, allocations: 73.89 kB / 473.3 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/0.09428, allocations: 0.9758 MB / 474.2 MB, free: 12.13 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004305/0.09859, allocations: 3.268 MB / 477.5 MB, free: 8.738 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009549/0.09956, allocations: 0.6792 MB / 478.2 MB, free: 8.043 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005383/0.1001, allocations: 423.5 kB / 478.6 MB, free: 7.625 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.006e-05/0.1002, allocations: 13.48 kB / 478.6 MB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.1002, allocations: 39.12 kB / 478.6 MB, free: 7.562 MB / 330.7 MB Notification: Performance of pre-optimization done (n=73): time 2.174e-06/0.1002, allocations: 0 / 478.6 MB, free: 7.562 MB / 330.7 MB Notification: Performance of matching and sorting (n=75): time 0.003322/0.1035, allocations: 2.435 MB / 481.1 MB, free: 5.039 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.1036, allocations: 89.8 kB / 481.2 MB, free: 4.934 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004192/0.104, allocations: 441.8 kB / 481.6 MB, free: 4.492 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.863e-05/0.1041, allocations: 41.64 kB / 481.6 MB, free: 4.445 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002002/0.1043, allocations: 355.6 kB / 482 MB, free: 4.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/0.1045, allocations: 264.1 kB / 482.2 MB, free: 3.828 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001917/0.1047, allocations: 150.6 kB / 482.4 MB, free: 3.676 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.1048, allocations: 378.7 kB / 482.8 MB, free: 3.297 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004434/0.1053, allocations: 341.8 kB / 483.1 MB, free: 2.965 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005562/0.1058, allocations: 0.5264 MB / 483.6 MB, free: 2.371 MB / 330.7 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.004614/0.1104, allocations: 2.238 MB / 485.9 MB, free: 40 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.1105, allocations: 0 / 485.9 MB, free: 40 kB / 330.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001487/0.112, allocations: 1.094 MB / 486.9 MB, free: 14.92 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.112, allocations: 8 kB / 487 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.112, allocations: 4 kB / 487 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001359/0.1121, allocations: 53.27 kB / 487 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006834/0.1128, allocations: 187.7 kB / 487.2 MB, free: 14.67 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001054/0.1139, allocations: 1.386 MB / 488.6 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003849/0.1143, allocations: 47.8 kB / 488.6 MB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.124e-05/0.1144, allocations: 32 kB / 488.7 MB, free: 13.07 MB / 346.7 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.0003159/0.1147, allocations: 273.6 kB / 488.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.1148, allocations: 71.11 kB / 489 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001382/0.1162, allocations: 0.97 MB / 490 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.342e-05/0.1162, allocations: 16 kB / 490 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1162, allocations: 3.984 kB / 490 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.1163, allocations: 0 / 490 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002856/0.1191, allocations: 2.017 MB / 492 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.1191, allocations: 7.984 kB / 492 MB, free: 9.543 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006081/0.1197, allocations: 147.8 kB / 492.2 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.319e-05/0.1199, allocations: 32.84 kB / 492.2 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.449e-05/0.1199, allocations: 23.98 kB / 492.2 MB, free: 9.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000897/0.1208, allocations: 1.394 MB / 493.6 MB, free: 7.809 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.1208, allocations: 11.94 kB / 493.6 MB, free: 7.797 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007326/0.1282, allocations: 5.702 MB / 499.3 MB, free: 1.844 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.1283, allocations: 140.3 kB / 499.5 MB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.398e-05/0.1284, allocations: 27.98 kB / 499.5 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003248/0.1287, allocations: 27.97 kB / 499.5 MB, free: 1.633 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.876e-05/0.1288, allocations: 64.38 kB / 499.6 MB, free: 1.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.554e-05/0.1289, allocations: 27.98 kB / 499.6 MB, free: 1.543 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002771/0.1291, allocations: 299.1 kB / 499.9 MB, free: 1.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1291, allocations: 0 / 499.9 MB, free: 1.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000749/0.1299, allocations: 236 kB / 0.4884 GB, free: 1.02 MB / 346.7 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.0002247/0.1301, allocations: 163 kB / 0.4886 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.1314, allocations: 0.9466 MB / 0.4895 GB, free: 15.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1314, allocations: 0 / 0.4895 GB, free: 15.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006075/0.132, allocations: 0.5302 MB / 0.49 GB, free: 15.35 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007483/0.1328, allocations: 142.4 kB / 0.4901 GB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003004/0.1358, allocations: 2.782 MB / 0.4928 GB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005248/0.1363, allocations: 1.044 MB / 0.4939 GB, free: 11.25 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005765/0.1369, allocations: 217.4 kB / 0.4941 GB, free: 11.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001952/0.1371, allocations: 63.42 kB / 0.4941 GB, free: 10.98 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.1371, allocations: 0 / 0.4941 GB, free: 10.98 MB / 362.7 MB Notification: Performance of Templates: time 0.01338/0.1505, allocations: 9.103 MB / 0.503 GB, free: 1.875 MB / 362.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (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 & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)