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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.00125/0.00125, allocations: 109.9 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.00131/0.00131, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.339/1.339, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1629/0.1629, allocations: 37.99 MB / 309.2 MB, free: 5.949 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 67.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08919/0.0907, allocations: 55.24 MB / 486.6 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007378/0.09811, allocations: 6.08 MB / 492.7 MB, free: 2.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003284/0.1014, allocations: 1.454 MB / 494.1 MB, free: 1.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004502/0.1019, allocations: 27.81 kB / 494.2 MB, free: 1.242 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005876/0.1025, allocations: 146.8 kB / 494.3 MB, free: 1.098 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001126/0.1037, allocations: 386 kB / 494.7 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006283/0.1043, allocations: 199.6 kB / 494.9 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00145/0.1058, allocations: 0.9187 MB / 495.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004689/0.1063, allocations: 274.7 kB / 496.1 MB, free: 15.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008627/0.1072, allocations: 414.3 kB / 496.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006582/0.1078, allocations: 466.5 kB / 496.9 MB, free: 14.47 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.67e-05/0.1079, allocations: 48 kB / 497 MB, free: 14.42 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.108, allocations: 44 kB / 497 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002544/0.1083, allocations: 275.2 kB / 497.3 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003089/0.1086, allocations: 318.4 kB / 497.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006608/0.1093, allocations: 0.6695 MB / 498.3 MB, free: 13.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.1093, allocations: 0 / 498.3 MB, free: 13.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1093, allocations: 0 / 498.3 MB, free: 13.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.256e-05/0.1093, allocations: 4 kB / 498.3 MB, free: 13.12 MB / 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.001614/0.1109, allocations: 0.9486 MB / 499.2 MB, free: 12.12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.111, allocations: 15.89 kB / 499.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001016/0.1111, allocations: 94.64 kB / 499.3 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.84e-05/0.1112, allocations: 68.09 kB / 499.4 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008614/0.1121, allocations: 0.5609 MB / 500 MB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.809e-05/0.1121, allocations: 40.94 kB / 500 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.092e-05/0.1122, allocations: 51.98 kB / 0.4883 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008623/0.1131, allocations: 0.621 MB / 0.4889 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.1131, allocations: 0 / 0.4889 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.531e-05/0.1132, allocations: 24 kB / 0.489 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001078/0.1133, allocations: 32.97 kB / 0.489 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007147/0.114, allocations: 0.5074 MB / 0.4895 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002725/0.1167, allocations: 2.206 MB / 0.4916 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007636/0.1175, allocations: 0.4933 MB / 0.4921 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005994/0.1181, allocations: 354.1 kB / 0.4925 GB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.132e-05/0.1182, allocations: 19.92 kB / 0.4925 GB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.1182, allocations: 38.56 kB / 0.4925 GB, free: 6.797 MB / 382.1 MB Notification: Performance of pre-optimization done (n=45): time 1.483e-06/0.1182, allocations: 0 / 0.4925 GB, free: 6.797 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.003159/0.1214, allocations: 1.738 MB / 0.4942 GB, free: 4.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.1214, allocations: 81.11 kB / 0.4943 GB, free: 4.883 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000398/0.1218, allocations: 425.8 kB / 0.4947 GB, free: 4.457 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.041e-05/0.1219, allocations: 41.58 kB / 0.4947 GB, free: 4.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/0.1221, allocations: 296.6 kB / 0.495 GB, free: 4.113 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.1222, allocations: 165.6 kB / 0.4952 GB, free: 3.949 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.1223, allocations: 98.14 kB / 0.4953 GB, free: 3.848 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.1225, allocations: 362.8 kB / 0.4956 GB, free: 3.484 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002641/0.1227, allocations: 185 kB / 0.4958 GB, free: 3.305 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003393/0.1231, allocations: 311.7 kB / 0.4961 GB, free: 2.949 MB / 382.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.002508/0.1256, allocations: 1.234 MB / 0.4973 GB, free: 1.648 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1256, allocations: 0 / 0.4973 GB, free: 1.648 MB / 382.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001067/0.1267, allocations: 0.7069 MB / 0.498 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.1267, allocations: 8 kB / 0.498 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.1267, allocations: 0 / 0.498 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003904/0.1271, allocations: 144.8 kB / 0.4981 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004602/0.1276, allocations: 107.9 kB / 0.4982 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002906/0.1305, allocations: 2.615 MB / 0.5008 GB, free: 13.92 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002863/0.1308, allocations: 28.02 kB / 0.5008 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.981e-05/0.1309, allocations: 20 kB / 0.5008 GB, free: 13.88 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.0002769/0.1312, allocations: 221.7 kB / 0.501 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.148e-05/0.1312, allocations: 55.28 kB / 0.5011 GB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.1323, allocations: 0.6542 MB / 0.5017 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.1323, allocations: 4 kB / 0.5017 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.1323, allocations: 7.938 kB / 0.5017 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.1323, allocations: 7.922 kB / 0.5018 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001992/0.1343, allocations: 1.365 MB / 0.5031 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.1343, allocations: 0 / 0.5031 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003453/0.1347, allocations: 79.83 kB / 0.5032 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003774/0.1351, allocations: 148.8 kB / 0.5033 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.824e-05/0.1351, allocations: 16 kB / 0.5033 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002583/0.1377, allocations: 2.623 MB / 0.5059 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.1377, allocations: 4 kB / 0.5059 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001392/0.1391, allocations: 0.9853 MB / 0.5068 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.1393, allocations: 128.5 kB / 0.507 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.65e-05/0.1394, allocations: 12.03 kB / 0.507 GB, free: 7.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002538/0.1396, allocations: 23.92 kB / 0.507 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.742e-05/0.1397, allocations: 31.95 kB / 0.507 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.768e-05/0.1397, allocations: 16 kB / 0.507 GB, free: 7.203 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003051/0.14, allocations: 291.1 kB / 0.5073 GB, free: 6.922 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1401, allocations: 0 / 0.5073 GB, free: 6.922 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006135/0.1407, allocations: 144.1 kB / 0.5075 GB, free: 6.781 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.001691/0.1424, allocations: 1.549 MB / 0.509 GB, free: 5.184 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.1435, allocations: 0.6602 MB / 0.5096 GB, free: 4.512 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.1435, allocations: 11.88 kB / 0.5096 GB, free: 4.5 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006756/0.1442, allocations: 435 kB / 0.51 GB, free: 4.062 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007621/0.145, allocations: 137.7 kB / 0.5102 GB, free: 3.926 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006643/0.1516, allocations: 5.11 MB / 0.5152 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005391/0.1522, allocations: 0.9292 MB / 0.5161 GB, free: 13.64 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000312/0.1525, allocations: 108.7 kB / 0.5162 GB, free: 13.53 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003052/0.1528, allocations: 191.4 kB / 0.5164 GB, free: 13.34 MB / 414.1 MB Notification: Performance of SimCode: time 8.52e-07/0.1528, allocations: 0 / 0.5164 GB, free: 13.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03473/0.1876, allocations: 12.11 MB / 0.5282 GB, free: 1.156 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.986/10.17, allocations: 8.406 kB / 0.5282 GB, free: 1.148 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)