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.001533/0.001538, allocations: 188.1 kB / 15.77 MB, free: 5.984 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.965/1.965, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001146/0.001146, allocations: 94.86 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2639/0.2639, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006109/0.000611, allocations: 16 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1145, allocations: 56.33 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.01605/0.1306, allocations: 6.248 MB / 485.4 MB, free: 11.66 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.007052/0.1377, allocations: 1.782 MB / 487.2 MB, free: 9.871 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001069/0.1388, allocations: 51.62 kB / 487.2 MB, free: 9.82 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00095/0.1398, allocations: 139.1 kB / 487.4 MB, free: 9.684 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001945/0.1418, allocations: 374.8 kB / 487.7 MB, free: 9.316 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.1429, allocations: 215.6 kB / 487.9 MB, free: 9.105 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.144, allocations: 491 kB / 488.4 MB, free: 8.625 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004445/0.1445, allocations: 192.2 kB / 488.6 MB, free: 8.438 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007087/0.1452, allocations: 294.8 kB / 488.9 MB, free: 8.148 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007109/0.146, allocations: 322.9 kB / 489.2 MB, free: 7.832 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.462e-05/0.1461, allocations: 24 kB / 489.2 MB, free: 7.809 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.1462, allocations: 28 kB / 489.2 MB, free: 7.781 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003169/0.1466, allocations: 211.4 kB / 489.5 MB, free: 7.574 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001969/0.1468, allocations: 141.3 kB / 489.6 MB, free: 7.43 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007497/0.1475, allocations: 498.7 kB / 490.1 MB, free: 6.941 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.1476, allocations: 3.938 kB / 490.1 MB, free: 6.938 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1476, allocations: 0 / 490.1 MB, free: 6.938 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.1476, allocations: 8 kB / 490.1 MB, free: 6.93 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.002425/0.15, allocations: 0.855 MB / 490.9 MB, free: 6.023 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.1501, allocations: 12.03 kB / 491 MB, free: 6.012 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001687/0.1503, allocations: 94.41 kB / 491.1 MB, free: 5.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/0.1505, allocations: 63.25 kB / 491.1 MB, free: 5.848 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001476/0.1519, allocations: 0.5015 MB / 491.6 MB, free: 5.305 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.69e-05/0.152, allocations: 41 kB / 491.7 MB, free: 5.266 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.1522, allocations: 51.91 kB / 491.7 MB, free: 5.215 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.1537, allocations: 0.6132 MB / 492.3 MB, free: 4.562 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.1538, allocations: 0 / 492.3 MB, free: 4.562 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.449e-05/0.1539, allocations: 24 kB / 492.3 MB, free: 4.539 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002044/0.1541, allocations: 36.92 kB / 492.4 MB, free: 4.504 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.1555, allocations: 0.4996 MB / 492.9 MB, free: 4.004 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005261/0.1608, allocations: 2.249 MB / 495.1 MB, free: 1.656 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001367/0.1622, allocations: 493 kB / 495.6 MB, free: 1.156 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.948e-05/0.1622, allocations: 12.05 kB / 495.6 MB, free: 1.145 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.496e-05/0.1623, allocations: 46.55 kB / 495.7 MB, free: 1.09 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 3.747e-06/0.1623, allocations: 0 / 495.7 MB, free: 1.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.005453/0.1678, allocations: 1.715 MB / 497.4 MB, free: 15.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.276e-05/0.1679, allocations: 89.06 kB / 497.5 MB, free: 15.19 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007048/0.1686, allocations: 413.9 kB / 497.9 MB, free: 14.78 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.84e-05/0.1687, allocations: 29.7 kB / 497.9 MB, free: 14.74 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000273/0.169, allocations: 342.8 kB / 498.2 MB, free: 14.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002015/0.1692, allocations: 161.6 kB / 498.4 MB, free: 14.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.71e-05/0.1692, allocations: 8 kB / 498.4 MB, free: 14.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.1694, allocations: 338.8 kB / 498.7 MB, free: 13.9 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004833/0.1699, allocations: 177 kB / 498.9 MB, free: 13.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006022/0.1705, allocations: 311.6 kB / 499.2 MB, free: 13.38 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.003578/0.1741, allocations: 0.7538 MB / 500 MB, free: 12.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.1741, allocations: 4 kB / 500 MB, free: 12.6 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001924/0.1761, allocations: 0.6568 MB / 0.4889 GB, free: 11.94 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.1761, allocations: 12.03 kB / 0.4889 GB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.1762, allocations: 7.953 kB / 0.4889 GB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000631/0.1768, allocations: 136.6 kB / 0.489 GB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008783/0.1777, allocations: 107.9 kB / 0.4891 GB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00437/0.1821, allocations: 2.346 MB / 0.4914 GB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005576/0.1827, allocations: 24.02 kB / 0.4915 GB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.402e-05/0.1828, allocations: 20 kB / 0.4915 GB, free: 9.152 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 (55): * Single equations (assignments): 54 * 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,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004555/0.1832, allocations: 229.6 kB / 0.4917 GB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.1834, allocations: 47.34 kB / 0.4917 GB, free: 8.871 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/0.1853, allocations: 0.6465 MB / 0.4924 GB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.627e-05/0.1854, allocations: 7.984 kB / 0.4924 GB, free: 8.207 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/0.1854, allocations: 4.109 kB / 0.4924 GB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.1854, allocations: 3.938 kB / 0.4924 GB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003749/0.1892, allocations: 1.36 MB / 0.4937 GB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.447e-06/0.1892, allocations: 4 kB / 0.4937 GB, free: 6.754 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007202/0.1899, allocations: 80.02 kB / 0.4938 GB, free: 6.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006753/0.1906, allocations: 136.7 kB / 0.4939 GB, free: 6.539 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.028e-05/0.1907, allocations: 19.94 kB / 0.4939 GB, free: 6.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004251/0.195, allocations: 2.342 MB / 0.4962 GB, free: 4.043 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.195, allocations: 4 kB / 0.4962 GB, free: 4.039 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002511/0.1975, allocations: 1.029 MB / 0.4972 GB, free: 2.941 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002083/0.1978, allocations: 124.5 kB / 0.4974 GB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.1979, allocations: 16 kB / 0.4974 GB, free: 2.785 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004333/0.1984, allocations: 19.98 kB / 0.4974 GB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.1985, allocations: 36.38 kB / 0.4974 GB, free: 2.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.873e-05/0.1986, allocations: 16 kB / 0.4974 GB, free: 2.715 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004927/0.1991, allocations: 287.1 kB / 0.4977 GB, free: 2.434 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1991, allocations: 0 / 0.4977 GB, free: 2.434 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009298/0.2, allocations: 144 kB / 0.4979 GB, free: 2.293 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (42): * Single equations (assignments): 40 * 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,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00296/0.203, allocations: 1.926 MB / 0.4997 GB, free: 308 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001878/0.2049, allocations: 0.6565 MB / 0.5004 GB, free: 15.63 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.205, allocations: 3.938 kB / 0.5004 GB, free: 15.63 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.206, allocations: 442.2 kB / 0.5008 GB, free: 15.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.2071, allocations: 117.8 kB / 0.5009 GB, free: 15.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009596/0.2167, allocations: 5.955 MB / 0.5067 GB, free: 8.977 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007557/0.2175, allocations: 0.9412 MB / 0.5076 GB, free: 8.008 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004782/0.218, allocations: 199.4 kB / 0.5078 GB, free: 7.812 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/0.218, allocations: 0 / 0.5078 GB, free: 7.812 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.025/3.243, allocations: 11.61 MB / 0.5192 GB, free: 51.9 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)