Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008649/0.0008647, allocations: 169.9 kB / 16.07 MB, free: 5.609 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.232/1.232, allocations: 205.4 MB / 222.2 MB, free: 13.64 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007351/0.0007351, allocations: 86.31 kB / 270.6 MB, free: 13.16 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1499/0.1499, allocations: 38.07 MB / 356.9 MB, free: 0.6328 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000329/0.0003291, allocations: 16 kB / 423.4 MB, free: 25.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0825/0.08284, allocations: 56.33 MB / 479.7 MB, free: 1.582 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.006323/0.0892, allocations: 6.566 MB / 486.3 MB, free: 10.98 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00264/0.09188, allocations: 1.751 MB / 488.1 MB, free: 9.227 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005047/0.09241, allocations: 47.62 kB / 488.1 MB, free: 9.18 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000447/0.09287, allocations: 158.9 kB / 488.3 MB, free: 9.023 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008904/0.09377, allocations: 445.7 kB / 488.7 MB, free: 8.586 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005411/0.09433, allocations: 223.6 kB / 488.9 MB, free: 8.367 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009119/0.09525, allocations: 1.102 MB / 490 MB, free: 7.262 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003001/0.09556, allocations: 229.5 kB / 490.2 MB, free: 7.035 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003818/0.09595, allocations: 334.4 kB / 490.6 MB, free: 6.707 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005224/0.09648, allocations: 454.5 kB / 491 MB, free: 6.262 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.706e-05/0.09655, allocations: 24 kB / 491 MB, free: 6.238 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.373e-05/0.09664, allocations: 28 kB / 491.1 MB, free: 6.211 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002121/0.09686, allocations: 247.3 kB / 491.3 MB, free: 5.969 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002522/0.09712, allocations: 296.3 kB / 491.6 MB, free: 5.672 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003887/0.09751, allocations: 0.4987 MB / 492.1 MB, free: 5.172 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.09752, allocations: 0 / 492.1 MB, free: 5.172 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.09753, allocations: 0 / 492.1 MB, free: 5.172 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.348e-06/0.09754, allocations: 0 / 492.1 MB, free: 5.172 MB / 330.7 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.001328/0.09888, allocations: 0.8513 MB / 492.9 MB, free: 4.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.09892, allocations: 8.031 kB / 492.9 MB, free: 4.262 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.09903, allocations: 94.7 kB / 493 MB, free: 4.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.453e-05/0.09913, allocations: 72.19 kB / 493.1 MB, free: 4.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007464/0.09988, allocations: 0.5179 MB / 493.6 MB, free: 3.531 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.942e-05/0.09992, allocations: 44.88 kB / 493.7 MB, free: 3.488 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.169e-05/0.1, allocations: 48 kB / 493.7 MB, free: 3.441 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008458/0.1009, allocations: 0.621 MB / 494.3 MB, free: 2.781 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.1009, allocations: 4 kB / 494.3 MB, free: 2.777 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.148e-05/0.1009, allocations: 16 kB / 494.4 MB, free: 2.762 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001011/0.101, allocations: 36.97 kB / 494.4 MB, free: 2.727 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007114/0.1017, allocations: 0.4996 MB / 494.9 MB, free: 2.227 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002691/0.1044, allocations: 2.241 MB / 497.1 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007386/0.1052, allocations: 0.497 MB / 497.6 MB, free: 15.37 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005483/0.1058, allocations: 337.5 kB / 498 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.1058, allocations: 11.94 kB / 498 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.1058, allocations: 38.55 kB / 498 MB, free: 14.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 1.563e-06/0.1058, allocations: 0 / 498 MB, free: 14.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.002986/0.1088, allocations: 1.75 MB / 499.8 MB, free: 13.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.1089, allocations: 85.11 kB / 499.8 MB, free: 13.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000386/0.1093, allocations: 413.9 kB / 0.4885 GB, free: 12.64 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/0.1093, allocations: 33.7 kB / 0.4886 GB, free: 12.6 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.1095, allocations: 300.3 kB / 0.4888 GB, free: 12.3 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.1096, allocations: 169.7 kB / 0.489 GB, free: 12.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.549e-05/0.1096, allocations: 12 kB / 0.489 GB, free: 12.12 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1098, allocations: 358.8 kB / 0.4894 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002644/0.11, allocations: 189 kB / 0.4895 GB, free: 11.58 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003315/0.1104, allocations: 303.7 kB / 0.4898 GB, free: 11.23 MB / 346.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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.00244/0.1128, allocations: 1.246 MB / 0.491 GB, free: 9.922 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1128, allocations: 0 / 0.491 GB, free: 9.922 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001048/0.1139, allocations: 0.703 MB / 0.4917 GB, free: 9.211 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.1139, allocations: 8 kB / 0.4917 GB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.906e-06/0.1139, allocations: 4 kB / 0.4917 GB, free: 9.199 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003501/0.1143, allocations: 136.7 kB / 0.4919 GB, free: 9.062 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004165/0.1147, allocations: 107.9 kB / 0.492 GB, free: 8.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002528/0.1173, allocations: 2.389 MB / 0.4943 GB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002576/0.1175, allocations: 23.98 kB / 0.4943 GB, free: 6.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.093e-05/0.1176, allocations: 16 kB / 0.4943 GB, free: 6.395 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 sytem: 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002567/0.1178, allocations: 229.6 kB / 0.4946 GB, free: 6.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.156e-05/0.1179, allocations: 51.42 kB / 0.4946 GB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001037/0.119, allocations: 0.6541 MB / 0.4953 GB, free: 5.445 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.119, allocations: 8 kB / 0.4953 GB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.119, allocations: 0 / 0.4953 GB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.119, allocations: 7.984 kB / 0.4953 GB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/0.121, allocations: 1.377 MB / 0.4966 GB, free: 3.961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.121, allocations: 4 kB / 0.4966 GB, free: 3.957 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003298/0.1213, allocations: 71.89 kB / 0.4967 GB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003646/0.1217, allocations: 140.8 kB / 0.4968 GB, free: 3.746 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.409e-05/0.1217, allocations: 20.14 kB / 0.4968 GB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0024/0.1241, allocations: 2.369 MB / 0.4992 GB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.1242, allocations: 4 kB / 0.4992 GB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.1254, allocations: 0.9776 MB / 0.5001 GB, free: 212 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.492e-05/0.1255, allocations: 132.4 kB / 0.5002 GB, free: 60 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.856e-05/0.1256, allocations: 16.03 kB / 0.5003 GB, free: 44 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.1258, allocations: 15.98 kB / 0.5003 GB, free: 28 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.126, allocations: 43.83 kB / 0.5003 GB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-05/0.126, allocations: 12.28 kB / 0.5003 GB, free: 15.97 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002752/0.1263, allocations: 287.1 kB / 0.5006 GB, free: 15.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1263, allocations: 0 / 0.5006 GB, free: 15.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005171/0.1268, allocations: 144 kB / 0.5007 GB, free: 15.55 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001545/0.1284, allocations: 1.541 MB / 0.5022 GB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.1294, allocations: 0.6562 MB / 0.5029 GB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.1294, allocations: 4 kB / 0.5029 GB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006149/0.13, allocations: 431 kB / 0.5033 GB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007478/0.1308, allocations: 133.7 kB / 0.5034 GB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004734/0.1355, allocations: 3.726 MB / 0.5071 GB, free: 8.871 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004615/0.136, allocations: 0.9295 MB / 0.508 GB, free: 7.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002532/0.1362, allocations: 199.4 kB / 0.5082 GB, free: 7.719 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.1363, allocations: 0 / 0.5082 GB, free: 7.719 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.67/3.806, allocations: 10.75 MB / 0.5187 GB, free: 52.11 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)