Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.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.Elementary.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_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.002052/0.002052, allocations: 189 kB / 8.013 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.209/2.209, allocations: 205.3 MB / 213.7 MB, free: 1.738 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.00155/0.00155, allocations: 90.64 kB / 261.8 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2668/0.2668, allocations: 38 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.149e-05/2.126e-05, allocations: 4 kB / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1102, allocations: 56.32 MB / 466.3 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5302/0.6405, allocations: 109.3 MB / 0.5621 GB, free: 2.184 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002885/0.6408, allocations: 88.2 kB / 0.5621 GB, free: 2.141 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1047/0.7455, allocations: 23.1 MB / 0.5847 GB, free: 14.61 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.7456, allocations: 0 / 0.5847 GB, free: 14.61 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.086e-05/0.7456, allocations: 16 kB / 0.5847 GB, free: 14.59 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.004692/0.7504, allocations: 1.18 MB / 0.5859 GB, free: 13.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.251e-05/0.7504, allocations: 12.03 kB / 0.5859 GB, free: 13.4 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001533/0.752, allocations: 146.8 kB / 0.586 GB, free: 13.26 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005729/0.7578, allocations: 1.255 MB / 0.5873 GB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003815/0.7582, allocations: 146.7 kB / 0.5874 GB, free: 12.03 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004272/0.7586, allocations: 48 kB / 0.5874 GB, free: 11.98 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002948/0.7616, allocations: 1.036 MB / 0.5885 GB, free: 11.31 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002927/0.7646, allocations: 1.176 MB / 0.5896 GB, free: 10.38 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.5e-05/0.7647, allocations: 3.938 kB / 0.5896 GB, free: 10.37 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001289/0.7648, allocations: 4 kB / 0.5896 GB, free: 10.37 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001579/0.765, allocations: 53.11 kB / 0.5897 GB, free: 10.32 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01268/0.7777, allocations: 4.783 MB / 0.5943 GB, free: 6.203 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002343/0.78, allocations: 0.9286 MB / 0.5952 GB, free: 5.535 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001411/0.7815, allocations: 0.5584 MB / 0.5958 GB, free: 5.168 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001001/0.7816, allocations: 12.55 kB / 0.5958 GB, free: 5.156 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.795e-05/0.7817, allocations: 38.08 kB / 0.5958 GB, free: 5.113 MB / 394.7 MB Notification: Performance of pre-optimization done (n=74): time 3.546e-06/0.7817, allocations: 0 / 0.5958 GB, free: 5.113 MB / 394.7 MB Notification: Performance of matching and sorting (n=75): time 0.006248/0.7879, allocations: 2.311 MB / 0.5981 GB, free: 3.27 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.059e-05/0.7881, allocations: 81.67 kB / 0.5982 GB, free: 3.172 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006313/0.7887, allocations: 332.8 kB / 0.5985 GB, free: 2.906 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001667/0.7889, allocations: 29.7 kB / 0.5985 GB, free: 2.871 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003611/0.7893, allocations: 439.5 kB / 0.5989 GB, free: 2.508 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000362/0.7896, allocations: 255.6 kB / 0.5992 GB, free: 2.285 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.665e-05/0.7897, allocations: 0 / 0.5992 GB, free: 2.285 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.7899, allocations: 340.8 kB / 0.5995 GB, free: 1.957 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001636/0.7916, allocations: 442.4 kB / 0.5999 GB, free: 1.676 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002052/0.7937, allocations: 0.6086 MB / 0.6005 GB, free: 1.168 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002188/0.7959, allocations: 0.5037 MB / 0.601 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.796, allocations: 0 / 0.601 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.009434/0.8054, allocations: 1.775 MB / 0.6027 GB, free: 15.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/0.8055, allocations: 8 kB / 0.6027 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005852/0.8114, allocations: 1.587 MB / 0.6043 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002137/0.8136, allocations: 0.5336 MB / 0.6048 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.8149, allocations: 147.3 kB / 0.605 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01355/0.8285, allocations: 5.92 MB / 0.6107 GB, free: 7.656 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001285/0.8298, allocations: 72.06 kB / 0.6108 GB, free: 7.586 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.83, allocations: 24 kB / 0.6108 GB, free: 7.562 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (76): * Single equations (assignments): 72 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {4 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002941/0.8303, allocations: 124.8 kB / 0.6109 GB, free: 7.434 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002763/0.8331, allocations: 1.023 MB / 0.6119 GB, free: 6.379 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002229/0.8333, allocations: 63.23 kB / 0.612 GB, free: 6.316 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002996/0.8363, allocations: 1.117 MB / 0.6131 GB, free: 5.172 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-05/0.8364, allocations: 24.03 kB / 0.6131 GB, free: 5.148 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.8365, allocations: 3.953 kB / 0.6131 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.8365, allocations: 3.984 kB / 0.6131 GB, free: 5.141 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006016/0.8425, allocations: 2.159 MB / 0.6152 GB, free: 2.906 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.056e-05/0.8426, allocations: 0 / 0.6152 GB, free: 2.906 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005804/0.8484, allocations: 0.6361 MB / 0.6159 GB, free: 2.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001523/0.8486, allocations: 28.84 kB / 0.6159 GB, free: 2.238 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001426/0.8488, allocations: 4 kB / 0.6159 GB, free: 2.234 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001369/0.8501, allocations: 1.341 MB / 0.6172 GB, free: 0.7734 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.651e-06/0.8502, allocations: 0 / 0.6172 GB, free: 0.7734 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004426/0.8546, allocations: 1.855 MB / 0.619 GB, free: 14.85 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002495/0.8549, allocations: 120.5 kB / 0.6191 GB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.8551, allocations: 8 kB / 0.6191 GB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009578/0.8561, allocations: 63.91 kB / 0.6192 GB, free: 14.64 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002616/0.8563, allocations: 60.47 kB / 0.6193 GB, free: 14.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.12e-05/0.8564, allocations: 27.98 kB / 0.6193 GB, free: 14.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004378/0.8569, allocations: 254.9 kB / 0.6195 GB, free: 14.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.8569, allocations: 0 / 0.6195 GB, free: 14.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001461/0.8584, allocations: 223.9 kB / 0.6197 GB, free: 14.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (66): * Single equations (assignments): 62 * Array equations: 2 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005048/0.8634, allocations: 2.723 MB / 0.6224 GB, free: 11.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003731/0.8672, allocations: 1.373 MB / 0.6237 GB, free: 9.891 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.8673, allocations: 0 / 0.6237 GB, free: 9.891 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004799/0.8721, allocations: 1.043 MB / 0.6248 GB, free: 8.84 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001063/0.8732, allocations: 93.86 kB / 0.6248 GB, free: 8.75 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006977/0.8802, allocations: 2.154 MB / 0.6269 GB, free: 6.527 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001069/0.8813, allocations: 1.091 MB / 0.628 GB, free: 5.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008547/0.8822, allocations: 283.3 kB / 0.6283 GB, free: 5.133 MB / 426.7 MB Notification: Performance of SimCode: time 1.322e-06/0.8822, allocations: 0 / 0.6283 GB, free: 5.133 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.333/4.215, allocations: 23.03 MB / 0.6508 GB, free: 14.08 MB / 458.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Rectifier_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Rectifier.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Rectifier.pipe 2>&1)