Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.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.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_Rectifier",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.002204/0.002204, allocations: 185.3 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 2.185/2.185, allocations: 205.2 MB / 218.9 MB, free: 9.145 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.001105/0.001105, allocations: 99.67 kB / 267.1 MB, free: 9.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2685/0.2685, allocations: 37.96 MB / 353.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.335e-05/3.338e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1078, allocations: 56.31 MB / 473.2 MB, free: 0.8281 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4901/0.598, allocations: 109.7 MB / 0.5692 GB, free: 9.918 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003579/0.5984, allocations: 95.94 kB / 0.5693 GB, free: 9.824 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1105/0.7089, allocations: 24.39 MB / 0.5931 GB, free: 1.156 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.709, allocations: 0 / 0.5931 GB, free: 1.156 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.243e-05/0.709, allocations: 23.98 kB / 0.5932 GB, free: 1.133 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.004526/0.7136, allocations: 1.205 MB / 0.5943 GB, free: 15.88 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.7136, allocations: 8.031 kB / 0.5943 GB, free: 15.87 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004475/0.7141, allocations: 143.6 kB / 0.5945 GB, free: 15.72 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001123/0.7152, allocations: 142.8 kB / 0.5946 GB, free: 15.58 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005764/0.721, allocations: 1.25 MB / 0.5958 GB, free: 14.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004189/0.7215, allocations: 175.1 kB / 0.596 GB, free: 14.11 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003483/0.7218, allocations: 83.89 kB / 0.5961 GB, free: 14.02 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003551/0.7254, allocations: 1.318 MB / 0.5974 GB, free: 12.66 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.344e-05/0.7255, allocations: 11.98 kB / 0.5974 GB, free: 12.64 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001619/0.7257, allocations: 39.92 kB / 0.5974 GB, free: 12.61 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002637/0.7259, allocations: 69.97 kB / 0.5975 GB, free: 12.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003828/0.7298, allocations: 1.355 MB / 0.5988 GB, free: 11.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01248/0.7423, allocations: 4.425 MB / 0.6031 GB, free: 6.633 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003206/0.7456, allocations: 1.177 MB / 0.6043 GB, free: 5.414 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001794/0.7474, allocations: 0.6922 MB / 0.6049 GB, free: 4.715 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000123/0.7475, allocations: 12.77 kB / 0.605 GB, free: 4.703 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.986e-05/0.7476, allocations: 39.34 kB / 0.605 GB, free: 4.656 MB / 442.7 MB Notification: Performance of pre-optimization done (n=103): time 5.831e-06/0.7476, allocations: 3.984 kB / 0.605 GB, free: 4.652 MB / 442.7 MB Notification: Performance of matching and sorting (n=104): time 0.007411/0.755, allocations: 2.795 MB / 0.6077 GB, free: 1.805 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.39e-05/0.7552, allocations: 89.92 kB / 0.6078 GB, free: 1.699 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006541/0.7558, allocations: 359 kB / 0.6082 GB, free: 1.344 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001121/0.7559, allocations: 33.7 kB / 0.6082 GB, free: 1.305 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003275/0.7563, allocations: 386.8 kB / 0.6086 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004379/0.7567, allocations: 354.8 kB / 0.6089 GB, free: 0.5703 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.699e-05/0.7568, allocations: 20 kB / 0.6089 GB, free: 0.5508 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.757, allocations: 350.8 kB / 0.6093 GB, free: 204 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/0.7585, allocations: 0.5252 MB / 0.6098 GB, free: 15.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001556/0.7601, allocations: 0.6721 MB / 0.6104 GB, free: 14.96 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001573/0.7617, allocations: 0.6136 MB / 0.611 GB, free: 14.34 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.7617, allocations: 4 kB / 0.611 GB, free: 14.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003512/0.7652, allocations: 1.324 MB / 0.6123 GB, free: 13.01 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.842e-05/0.7653, allocations: 8 kB / 0.6123 GB, free: 13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.7653, allocations: 4 kB / 0.6123 GB, free: 13 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.391e-05/0.7654, allocations: 8 kB / 0.6123 GB, free: 12.99 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005533/0.7709, allocations: 0.6321 MB / 0.613 GB, free: 12.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006808/0.7777, allocations: 4.554 MB / 0.6174 GB, free: 7.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001436/0.7792, allocations: 91.89 kB / 0.6175 GB, free: 7.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/0.7794, allocations: 28 kB / 0.6175 GB, free: 7.293 MB / 458.7 MB 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 98 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003265/0.7797, allocations: 162.6 kB / 0.6177 GB, free: 7.129 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002203/0.7799, allocations: 67.14 kB / 0.6177 GB, free: 7.062 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003694/0.7836, allocations: 1.339 MB / 0.619 GB, free: 5.715 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.791e-05/0.7838, allocations: 28 kB / 0.6191 GB, free: 5.688 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.7838, allocations: 0 / 0.6191 GB, free: 5.688 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/0.7838, allocations: 3.984 kB / 0.6191 GB, free: 5.684 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007218/0.791, allocations: 2.673 MB / 0.6217 GB, free: 2.926 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.286e-05/0.7911, allocations: 4 kB / 0.6217 GB, free: 2.922 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00626/0.7974, allocations: 0.687 MB / 0.6224 GB, free: 2.234 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.058e-05/0.7974, allocations: 8 kB / 0.6224 GB, free: 2.227 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001699/0.7976, allocations: 23.94 kB / 0.6224 GB, free: 2.203 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.077e-05/0.7976, allocations: 4 kB / 0.6224 GB, free: 2.199 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.7976, allocations: 4 kB / 0.6224 GB, free: 2.195 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005409/0.8031, allocations: 2.336 MB / 0.6247 GB, free: 15.77 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002828/0.8034, allocations: 128.3 kB / 0.6248 GB, free: 15.62 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002038/0.8036, allocations: 23.98 kB / 0.6248 GB, free: 15.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.8048, allocations: 87.91 kB / 0.6249 GB, free: 15.52 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002985/0.8051, allocations: 80.55 kB / 0.625 GB, free: 15.44 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.8052, allocations: 23.98 kB / 0.625 GB, free: 15.41 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005263/0.8057, allocations: 277.2 kB / 0.6253 GB, free: 15.14 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8057, allocations: 0 / 0.6253 GB, free: 15.14 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001194/0.8069, allocations: 255.9 kB / 0.6255 GB, free: 14.89 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006308/0.8133, allocations: 3.494 MB / 0.6289 GB, free: 11.32 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006412/0.8197, allocations: 1.658 MB / 0.6305 GB, free: 9.664 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.8198, allocations: 0 / 0.6305 GB, free: 9.664 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005106/0.8249, allocations: 1.122 MB / 0.6316 GB, free: 8.543 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/0.8262, allocations: 141.7 kB / 0.6318 GB, free: 8.406 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00866/0.8349, allocations: 2.565 MB / 0.6343 GB, free: 5.77 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001027/0.836, allocations: 1.092 MB / 0.6353 GB, free: 4.652 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/0.837, allocations: 295.3 kB / 0.6356 GB, free: 4.363 MB / 474.7 MB Notification: Performance of SimCode: time 1.543e-06/0.837, allocations: 4 kB / 0.6356 GB, free: 4.359 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.651/4.488, allocations: 24.35 MB / 0.6594 GB, free: 133.7 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_Rectifier.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe 2>&1)