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.002018/0.002018, allocations: 185.7 kB / 8.01 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.012/2.012, allocations: 205.3 MB / 213.7 MB, free: 1.676 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001096/0.001096, allocations: 86.38 kB / 261.8 MB, free: 1.621 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2468/0.2468, allocations: 37.98 MB / 347.7 MB, free: 5.781 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.972e-05/1.966e-05, allocations: 0 / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1061, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4828/0.5889, allocations: 110.4 MB / 0.5631 GB, free: 1.133 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/0.5892, allocations: 85.58 kB / 0.5632 GB, free: 1.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09589/0.6851, allocations: 21.65 MB / 0.5843 GB, free: 14.78 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.6852, allocations: 0 / 0.5843 GB, free: 14.78 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.47e-05/0.6852, allocations: 20 kB / 0.5844 GB, free: 14.76 MB / 394.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.002932/0.6882, allocations: 0.9471 MB / 0.5853 GB, free: 13.81 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.6883, allocations: 8.031 kB / 0.5853 GB, free: 13.8 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001124/0.6894, allocations: 130.9 kB / 0.5854 GB, free: 13.68 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004667/0.6941, allocations: 1.136 MB / 0.5865 GB, free: 12.69 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.564e-05/0.6942, allocations: 23.95 kB / 0.5866 GB, free: 12.67 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001771/0.6943, allocations: 40.75 kB / 0.5866 GB, free: 12.63 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001901/0.6963, allocations: 0.7391 MB / 0.5873 GB, free: 12.13 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001966/0.6982, allocations: 0.8854 MB / 0.5882 GB, free: 11.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.61e-05/0.6983, allocations: 11.98 kB / 0.5882 GB, free: 11.42 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.971e-05/0.6984, allocations: 3.938 kB / 0.5882 GB, free: 11.42 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002361/0.6986, allocations: 60.47 kB / 0.5883 GB, free: 11.36 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008236/0.7069, allocations: 3.155 MB / 0.5913 GB, free: 8.652 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001769/0.7087, allocations: 0.6918 MB / 0.592 GB, free: 8.16 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009854/0.7097, allocations: 449.4 kB / 0.5924 GB, free: 7.867 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.434e-05/0.7098, allocations: 13.31 kB / 0.5925 GB, free: 7.859 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.936e-05/0.7099, allocations: 46 kB / 0.5925 GB, free: 7.809 MB / 394.7 MB Notification: Performance of pre-optimization done (n=77): time 3.406e-06/0.7099, allocations: 0 / 0.5925 GB, free: 7.809 MB / 394.7 MB Notification: Performance of matching and sorting (n=79): time 0.007647/0.7175, allocations: 2.476 MB / 0.5949 GB, free: 5.715 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.968e-05/0.7176, allocations: 85.67 kB / 0.595 GB, free: 5.613 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005522/0.7182, allocations: 327.5 kB / 0.5953 GB, free: 5.352 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.392e-05/0.7183, allocations: 29.7 kB / 0.5953 GB, free: 5.316 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002874/0.7186, allocations: 389.7 kB / 0.5957 GB, free: 5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003088/0.7189, allocations: 265.2 kB / 0.596 GB, free: 4.77 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.343e-05/0.719, allocations: 3.938 kB / 0.596 GB, free: 4.766 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.7192, allocations: 353.4 kB / 0.5963 GB, free: 4.426 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008421/0.72, allocations: 359.3 kB / 0.5966 GB, free: 4.191 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009573/0.721, allocations: 0.5097 MB / 0.5971 GB, free: 3.758 MB / 394.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.01769/0.7387, allocations: 2.895 MB / 0.6 GB, free: 1.145 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.7387, allocations: 0 / 0.6 GB, free: 1.145 MB / 394.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003315/0.742, allocations: 1.178 MB / 0.6011 GB, free: 192 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.63e-05/0.7421, allocations: 8 kB / 0.6011 GB, free: 184 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/0.7421, allocations: 4 kB / 0.6011 GB, free: 180 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002032/0.7423, allocations: 38.97 kB / 0.6012 GB, free: 144 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001589/0.7439, allocations: 197.7 kB / 0.6014 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00151/0.7455, allocations: 1.329 MB / 0.6027 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008719/0.7464, allocations: 31.94 kB / 0.6027 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.407e-05/0.7465, allocations: 27.62 kB / 0.6027 GB, free: 14.53 MB / 410.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.0002534/0.7467, allocations: 136.9 kB / 0.6028 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003004/0.7497, allocations: 1.054 MB / 0.6039 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.7499, allocations: 55.25 kB / 0.6039 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/0.7531, allocations: 1.137 MB / 0.605 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001277/0.7533, allocations: 27.94 kB / 0.6051 GB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.7533, allocations: 0 / 0.6051 GB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.7533, allocations: 3.984 kB / 0.6051 GB, free: 12.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00608/0.7594, allocations: 2.085 MB / 0.6071 GB, free: 10.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-05/0.7594, allocations: 8 kB / 0.6071 GB, free: 10.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001444/0.7609, allocations: 159.1 kB / 0.6073 GB, free: 10.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001628/0.7611, allocations: 35.78 kB / 0.6073 GB, free: 10.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.307e-05/0.7612, allocations: 15.98 kB / 0.6073 GB, free: 10.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001398/0.7626, allocations: 1.326 MB / 0.6086 GB, free: 9.172 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/0.7626, allocations: 4 kB / 0.6086 GB, free: 9.168 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004015/0.7666, allocations: 1.911 MB / 0.6105 GB, free: 7.445 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.7669, allocations: 136 kB / 0.6106 GB, free: 7.297 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001327/0.767, allocations: 11.98 kB / 0.6106 GB, free: 7.285 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006747/0.7677, allocations: 31.95 kB / 0.6106 GB, free: 7.254 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.7679, allocations: 65.02 kB / 0.6107 GB, free: 7.199 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.768, allocations: 26.98 kB / 0.6107 GB, free: 7.176 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003971/0.7684, allocations: 242.5 kB / 0.611 GB, free: 6.988 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.7684, allocations: 0 / 0.611 GB, free: 6.988 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00107/0.7695, allocations: 187.2 kB / 0.6111 GB, free: 6.809 MB / 410.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.005179/0.7747, allocations: 3.806 MB / 0.6149 GB, free: 2.973 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00236/0.7771, allocations: 0.9484 MB / 0.6158 GB, free: 2.016 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.7771, allocations: 4.188 kB / 0.6158 GB, free: 2.012 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001127/0.7782, allocations: 0.5271 MB / 0.6163 GB, free: 1.477 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.7793, allocations: 103.2 kB / 0.6164 GB, free: 1.371 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004889/0.7842, allocations: 1.906 MB / 0.6183 GB, free: 15.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009089/0.7851, allocations: 1.037 MB / 0.6193 GB, free: 14.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007516/0.7859, allocations: 275.3 kB / 0.6195 GB, free: 14.02 MB / 426.7 MB Notification: Performance of SimCode: time 7.72e-07/0.7859, allocations: 0 / 0.6195 GB, free: 14.02 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.132/3.918, allocations: 15.16 MB / 0.6343 GB, free: 14.86 MB / 442.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)