Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.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.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_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.001509/0.001509, allocations: 185 kB / 13.19 MB, free: 2.125 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.956/1.956, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.001067/0.001067, allocations: 82.66 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2714/0.2714, allocations: 37.96 MB / 353.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.501e-05/3.531e-05, allocations: 4 kB / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 56.31 MB / 473.2 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4971/0.6003, allocations: 111 MB / 0.5706 GB, free: 8.508 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003341/0.6007, allocations: 91.95 kB / 0.5706 GB, free: 8.418 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.104/0.7047, allocations: 21.82 MB / 0.592 GB, free: 2.344 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.7048, allocations: 0 / 0.592 GB, free: 2.344 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.944e-05/0.7048, allocations: 16 kB / 0.592 GB, free: 2.328 MB / 426.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.003063/0.7079, allocations: 0.9539 MB / 0.5929 GB, free: 1.328 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.708, allocations: 8.031 kB / 0.5929 GB, free: 1.32 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003216/0.7083, allocations: 118.6 kB / 0.593 GB, free: 1.195 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001169/0.7095, allocations: 126.9 kB / 0.5931 GB, free: 1.07 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005039/0.7146, allocations: 1.151 MB / 0.5943 GB, free: 15.88 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.74e-05/0.7147, allocations: 45.3 kB / 0.5943 GB, free: 15.83 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002056/0.7149, allocations: 64 kB / 0.5944 GB, free: 15.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002529/0.7174, allocations: 0.9833 MB / 0.5953 GB, free: 14.75 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.629e-05/0.7175, allocations: 7.922 kB / 0.5953 GB, free: 14.74 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001146/0.7176, allocations: 27.98 kB / 0.5954 GB, free: 14.71 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002468/0.7179, allocations: 65.28 kB / 0.5954 GB, free: 14.65 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002617/0.7205, allocations: 0.9232 MB / 0.5963 GB, free: 13.72 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008619/0.7292, allocations: 3.209 MB / 0.5995 GB, free: 10.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001994/0.7312, allocations: 0.7013 MB / 0.6001 GB, free: 9.688 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001084/0.7323, allocations: 443.8 kB / 0.6006 GB, free: 9.246 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.456e-05/0.7324, allocations: 5.5 kB / 0.6006 GB, free: 9.242 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.113e-05/0.7325, allocations: 47.11 kB / 0.6006 GB, free: 9.184 MB / 442.7 MB Notification: Performance of pre-optimization done (n=77): time 4.358e-06/0.7325, allocations: 0 / 0.6006 GB, free: 9.184 MB / 442.7 MB Notification: Performance of matching and sorting (n=79): time 0.005566/0.7381, allocations: 2.104 MB / 0.6027 GB, free: 7.008 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.844e-05/0.7382, allocations: 85.66 kB / 0.6028 GB, free: 6.906 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006985/0.7389, allocations: 371 kB / 0.6031 GB, free: 6.543 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.373e-05/0.739, allocations: 33.7 kB / 0.6031 GB, free: 6.504 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003115/0.7393, allocations: 382.2 kB / 0.6035 GB, free: 6.125 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003368/0.7397, allocations: 280 kB / 0.6038 GB, free: 5.848 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.084e-05/0.7398, allocations: 16 kB / 0.6038 GB, free: 5.832 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.74, allocations: 342.8 kB / 0.6041 GB, free: 5.488 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009009/0.7409, allocations: 345.7 kB / 0.6044 GB, free: 5.148 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001062/0.742, allocations: 0.5081 MB / 0.6049 GB, free: 4.578 MB / 442.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.0169/0.7589, allocations: 2.747 MB / 0.6076 GB, free: 1.812 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.7589, allocations: 4 kB / 0.6076 GB, free: 1.809 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002829/0.7617, allocations: 1.079 MB / 0.6087 GB, free: 0.7031 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.1e-05/0.7618, allocations: 4 kB / 0.6087 GB, free: 0.6992 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.231e-05/0.7618, allocations: 8 kB / 0.6087 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002517/0.7621, allocations: 33.25 kB / 0.6087 GB, free: 0.6562 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001626/0.7638, allocations: 207.7 kB / 0.6089 GB, free: 464 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/0.7654, allocations: 1.397 MB / 0.6103 GB, free: 14.92 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008897/0.7664, allocations: 39.97 kB / 0.6103 GB, free: 14.88 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.7665, allocations: 31.98 kB / 0.6104 GB, free: 14.85 MB / 458.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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 89 * Array equations: 3 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000282/0.7668, allocations: 152.7 kB / 0.6105 GB, free: 14.69 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001587/0.767, allocations: 63.23 kB / 0.6106 GB, free: 14.63 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002641/0.7696, allocations: 1.015 MB / 0.6116 GB, free: 13.58 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-05/0.7697, allocations: 19.98 kB / 0.6116 GB, free: 13.56 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.7697, allocations: 0 / 0.6116 GB, free: 13.56 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.417e-05/0.7697, allocations: 3.984 kB / 0.6116 GB, free: 13.56 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005727/0.7755, allocations: 2.071 MB / 0.6136 GB, free: 11.35 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/0.7755, allocations: 8.094 kB / 0.6136 GB, free: 11.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/0.777, allocations: 167.8 kB / 0.6138 GB, free: 11.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001693/0.7772, allocations: 36.84 kB / 0.6138 GB, free: 11.14 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.842e-05/0.7773, allocations: 19.98 kB / 0.6138 GB, free: 11.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.7788, allocations: 1.394 MB / 0.6152 GB, free: 9.598 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.064e-06/0.7789, allocations: 4 kB / 0.6152 GB, free: 9.594 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00376/0.7827, allocations: 1.808 MB / 0.617 GB, free: 7.57 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002604/0.783, allocations: 140.3 kB / 0.6171 GB, free: 7.414 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001493/0.7831, allocations: 35.98 kB / 0.6171 GB, free: 7.379 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006826/0.7838, allocations: 35.95 kB / 0.6172 GB, free: 7.344 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.784, allocations: 60.39 kB / 0.6172 GB, free: 7.285 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.512e-05/0.7841, allocations: 27.98 kB / 0.6172 GB, free: 7.258 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005272/0.7846, allocations: 289.2 kB / 0.6175 GB, free: 6.973 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7846, allocations: 0 / 0.6175 GB, free: 6.973 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001049/0.7857, allocations: 199.9 kB / 0.6177 GB, free: 6.777 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 71 * Array equations: 3 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004858/0.7906, allocations: 3.718 MB / 0.6213 GB, free: 2.875 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002519/0.7931, allocations: 0.9754 MB / 0.6223 GB, free: 1.887 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.7932, allocations: 0 / 0.6223 GB, free: 1.887 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.7944, allocations: 0.5329 MB / 0.6228 GB, free: 1.34 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/0.7956, allocations: 142.9 kB / 0.6229 GB, free: 1.203 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005264/0.8009, allocations: 1.971 MB / 0.6249 GB, free: 15.12 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008985/0.8018, allocations: 1.029 MB / 0.6259 GB, free: 14.07 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007916/0.8026, allocations: 275.3 kB / 0.6261 GB, free: 13.8 MB / 474.7 MB Notification: Performance of SimCode: time 9.82e-07/0.8026, allocations: 0 / 0.6261 GB, free: 13.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.623/4.426, allocations: 15.24 MB / 0.641 GB, free: 137.1 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)