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.001447/0.001447, allocations: 180.7 kB / 8.011 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.139/2.139, allocations: 205.3 MB / 213.7 MB, free: 1.734 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.002056/0.002056, allocations: 86.22 kB / 261.8 MB, free: 1.676 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.251/0.251, allocations: 37.99 MB / 347.7 MB, free: 5.766 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.944e-05/1.939e-05, allocations: 4 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1053, allocations: 56.33 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5435/0.6489, allocations: 109 MB / 0.5618 GB, free: 2.523 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004399/0.6494, allocations: 91.5 kB / 0.5619 GB, free: 2.477 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1258/0.7752, allocations: 24.19 MB / 0.5855 GB, free: 13.95 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.7752, allocations: 0 / 0.5855 GB, free: 13.95 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.185e-05/0.7753, allocations: 20 kB / 0.5855 GB, free: 13.93 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.004379/0.7797, allocations: 1.208 MB / 0.5867 GB, free: 12.72 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.7798, allocations: 8.031 kB / 0.5867 GB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001243/0.781, allocations: 142.8 kB / 0.5868 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005437/0.7865, allocations: 1.25 MB / 0.5881 GB, free: 11.51 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003586/0.7869, allocations: 150.2 kB / 0.5882 GB, free: 11.35 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002812/0.7872, allocations: 47.91 kB / 0.5882 GB, free: 11.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003101/0.7903, allocations: 1.169 MB / 0.5894 GB, free: 10.54 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002856/0.7932, allocations: 1.217 MB / 0.5906 GB, free: 9.609 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.352e-05/0.7933, allocations: 7.938 kB / 0.5906 GB, free: 9.602 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001274/0.7934, allocations: 3.938 kB / 0.5906 GB, free: 9.598 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002614/0.7937, allocations: 76.77 kB / 0.5907 GB, free: 9.531 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0124/0.8061, allocations: 4.339 MB / 0.5949 GB, free: 5.957 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00333/0.8095, allocations: 1.147 MB / 0.596 GB, free: 5.133 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001954/0.8115, allocations: 0.6868 MB / 0.5967 GB, free: 4.699 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001342/0.8116, allocations: 16.77 kB / 0.5967 GB, free: 4.68 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.642e-05/0.8117, allocations: 50.23 kB / 0.5968 GB, free: 4.629 MB / 394.7 MB Notification: Performance of pre-optimization done (n=103): time 4.989e-06/0.8117, allocations: 0 / 0.5968 GB, free: 4.629 MB / 394.7 MB Notification: Performance of matching and sorting (n=104): time 0.009873/0.8216, allocations: 3.181 MB / 0.5999 GB, free: 2.125 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.404e-05/0.8217, allocations: 85.89 kB / 0.5999 GB, free: 2.023 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004914/0.8222, allocations: 275.6 kB / 0.6002 GB, free: 1.797 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001317/0.8224, allocations: 29.69 kB / 0.6002 GB, free: 1.762 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002609/0.8226, allocations: 383.7 kB / 0.6006 GB, free: 1.441 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004366/0.8231, allocations: 348.7 kB / 0.6009 GB, free: 1.137 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.833e-05/0.8232, allocations: 0 / 0.6009 GB, free: 1.137 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.8234, allocations: 352.4 kB / 0.6013 GB, free: 0.8008 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.8246, allocations: 0.5321 MB / 0.6018 GB, free: 472 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.826, allocations: 0.6821 MB / 0.6025 GB, free: 15.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002434/0.8285, allocations: 0.7518 MB / 0.6032 GB, free: 15.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.067e-06/0.8285, allocations: 0 / 0.6032 GB, free: 15.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.004333/0.8329, allocations: 1.444 MB / 0.6046 GB, free: 14.31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.471e-05/0.833, allocations: 11.94 kB / 0.6046 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.058e-05/0.833, allocations: 4 kB / 0.6046 GB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.834e-05/0.833, allocations: 11.95 kB / 0.6046 GB, free: 14.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005511/0.8386, allocations: 0.6286 MB / 0.6052 GB, free: 13.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006403/0.845, allocations: 4.373 MB / 0.6095 GB, free: 8.941 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/0.8465, allocations: 83.97 kB / 0.6096 GB, free: 8.859 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/0.8466, allocations: 32 kB / 0.6096 GB, free: 8.828 MB / 410.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.0003079/0.847, allocations: 120.9 kB / 0.6097 GB, free: 8.703 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004049/0.851, allocations: 1.344 MB / 0.611 GB, free: 7.355 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002539/0.8513, allocations: 67.19 kB / 0.6111 GB, free: 7.289 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004365/0.8557, allocations: 1.457 MB / 0.6125 GB, free: 5.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001805/0.8559, allocations: 31.98 kB / 0.6126 GB, free: 5.789 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.8559, allocations: 4 kB / 0.6126 GB, free: 5.785 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.697e-05/0.856, allocations: 3.984 kB / 0.6126 GB, free: 5.781 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008447/0.8644, allocations: 2.703 MB / 0.6152 GB, free: 3.008 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/0.8645, allocations: 8.031 kB / 0.6152 GB, free: 3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006299/0.8708, allocations: 0.6828 MB / 0.6159 GB, free: 2.316 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.057e-05/0.8709, allocations: 4 kB / 0.6159 GB, free: 2.312 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001843/0.871, allocations: 15.98 kB / 0.6159 GB, free: 2.297 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.23e-05/0.8711, allocations: 7.938 kB / 0.6159 GB, free: 2.289 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/0.8711, allocations: 4 kB / 0.6159 GB, free: 2.285 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006178/0.8773, allocations: 2.486 MB / 0.6183 GB, free: 15.71 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002571/0.8776, allocations: 132.3 kB / 0.6185 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001643/0.8778, allocations: 7.938 kB / 0.6185 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001168/0.8789, allocations: 79.84 kB / 0.6186 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002903/0.8792, allocations: 84.64 kB / 0.6186 GB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.8794, allocations: 24 kB / 0.6187 GB, free: 15.37 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000363/0.8797, allocations: 212.6 kB / 0.6189 GB, free: 15.16 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.537e-06/0.8798, allocations: 0 / 0.6189 GB, free: 15.16 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001219/0.881, allocations: 235.9 kB / 0.6191 GB, free: 14.93 MB / 426.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.007412/0.8884, allocations: 3.645 MB / 0.6226 GB, free: 11.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006501/0.895, allocations: 1.649 MB / 0.6243 GB, free: 9.559 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/0.895, allocations: 0 / 0.6243 GB, free: 9.559 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00506/0.9001, allocations: 1.125 MB / 0.6254 GB, free: 8.434 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001073/0.9012, allocations: 93.33 kB / 0.6254 GB, free: 8.344 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008513/0.9097, allocations: 2.494 MB / 0.6279 GB, free: 5.773 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/0.9108, allocations: 1.091 MB / 0.6289 GB, free: 4.652 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/0.9119, allocations: 307.3 kB / 0.6292 GB, free: 4.352 MB / 426.7 MB Notification: Performance of SimCode: time 1.002e-06/0.912, allocations: 0 / 0.6292 GB, free: 4.352 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.46/4.372, allocations: 23.95 MB / 0.6526 GB, free: 12.35 MB / 458.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)