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.002243/0.002243, allocations: 188.1 kB / 13.2 MB, free: 2.117 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.922/1.922, allocations: 205.2 MB / 218.9 MB, free: 9.137 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.001102/0.001101, allocations: 96.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.2819/0.2819, allocations: 37.97 MB / 353.1 MB, free: 3.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.987e-05/4.005e-05, allocations: 7.984 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1365, allocations: 56.31 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5126/0.6491, allocations: 109.9 MB / 0.5695 GB, free: 9.605 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003456/0.6495, allocations: 91.94 kB / 0.5696 GB, free: 9.516 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1081/0.7577, allocations: 23.29 MB / 0.5923 GB, free: 2.008 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.634e-06/0.7577, allocations: 0 / 0.5923 GB, free: 2.008 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.026e-05/0.7578, allocations: 20 kB / 0.5923 GB, free: 1.988 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.004076/0.7619, allocations: 1.186 MB / 0.5935 GB, free: 0.7539 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.7619, allocations: 8.031 kB / 0.5935 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000338/0.7623, allocations: 147.5 kB / 0.5936 GB, free: 0.5938 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001194/0.7635, allocations: 143.2 kB / 0.5938 GB, free: 464 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005471/0.769, allocations: 1.249 MB / 0.595 GB, free: 15.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003679/0.7694, allocations: 179.1 kB / 0.5952 GB, free: 14.97 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002882/0.7697, allocations: 84 kB / 0.5953 GB, free: 14.89 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003278/0.773, allocations: 1.275 MB / 0.5965 GB, free: 13.54 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.192e-05/0.7731, allocations: 7.938 kB / 0.5965 GB, free: 13.53 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001469/0.7732, allocations: 32 kB / 0.5965 GB, free: 13.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001376/0.7734, allocations: 53.98 kB / 0.5966 GB, free: 13.45 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003123/0.7765, allocations: 1.128 MB / 0.5977 GB, free: 12.32 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01279/0.7893, allocations: 4.966 MB / 0.6025 GB, free: 7.195 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002659/0.7921, allocations: 0.9665 MB / 0.6035 GB, free: 6.195 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001566/0.7937, allocations: 0.563 MB / 0.604 GB, free: 5.625 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001078/0.7938, allocations: 12.56 kB / 0.604 GB, free: 5.613 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.586e-05/0.7939, allocations: 47.5 kB / 0.6041 GB, free: 5.555 MB / 442.7 MB Notification: Performance of pre-optimization done (n=74): time 4.238e-06/0.7939, allocations: 0 / 0.6041 GB, free: 5.555 MB / 442.7 MB Notification: Performance of matching and sorting (n=75): time 0.006512/0.8004, allocations: 2.39 MB / 0.6064 GB, free: 3.09 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.111e-05/0.8005, allocations: 89.61 kB / 0.6065 GB, free: 2.984 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007499/0.8013, allocations: 399.8 kB / 0.6069 GB, free: 2.59 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001547/0.8015, allocations: 37.7 kB / 0.6069 GB, free: 2.547 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003529/0.8018, allocations: 437.8 kB / 0.6073 GB, free: 2.113 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00035/0.8022, allocations: 260.2 kB / 0.6076 GB, free: 1.855 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.873e-05/0.8023, allocations: 16 kB / 0.6076 GB, free: 1.84 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.8025, allocations: 342.8 kB / 0.6079 GB, free: 1.496 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001219/0.8037, allocations: 457.6 kB / 0.6084 GB, free: 1.051 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/0.805, allocations: 0.6278 MB / 0.609 GB, free: 352 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/0.8064, allocations: 0.5094 MB / 0.6095 GB, free: 15.84 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.8064, allocations: 0 / 0.6095 GB, free: 15.84 MB / 458.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.006678/0.8131, allocations: 1.851 MB / 0.6113 GB, free: 13.95 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.8132, allocations: 11.91 kB / 0.6113 GB, free: 13.94 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006043/0.8193, allocations: 1.617 MB / 0.6129 GB, free: 12.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002239/0.8215, allocations: 0.5403 MB / 0.6134 GB, free: 11.75 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.8228, allocations: 143.8 kB / 0.6135 GB, free: 11.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0147/0.8376, allocations: 6.217 MB / 0.6196 GB, free: 5.121 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.839, allocations: 88.02 kB / 0.6197 GB, free: 5.035 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001651/0.8392, allocations: 35.98 kB / 0.6197 GB, free: 5 MB / 458.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.0002976/0.8396, allocations: 150.6 kB / 0.6199 GB, free: 4.848 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/0.8398, allocations: 63.25 kB / 0.6199 GB, free: 4.785 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003116/0.8429, allocations: 1.167 MB / 0.6211 GB, free: 3.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000103/0.8431, allocations: 23.94 kB / 0.6211 GB, free: 3.566 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/0.8431, allocations: 4 kB / 0.6211 GB, free: 3.562 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/0.8431, allocations: 3.984 kB / 0.6211 GB, free: 3.559 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006136/0.8493, allocations: 2.318 MB / 0.6234 GB, free: 1.148 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.8493, allocations: 3.938 kB / 0.6234 GB, free: 1.145 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005853/0.8552, allocations: 0.64 MB / 0.624 GB, free: 0.5039 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001539/0.8554, allocations: 24.84 kB / 0.624 GB, free: 488 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001445/0.8556, allocations: 12 kB / 0.624 GB, free: 476 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001409/0.857, allocations: 1.392 MB / 0.6254 GB, free: 14.94 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.686e-06/0.857, allocations: 0 / 0.6254 GB, free: 14.94 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004614/0.8616, allocations: 1.895 MB / 0.6272 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002756/0.862, allocations: 132.3 kB / 0.6274 GB, free: 12.82 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001823/0.8622, allocations: 16 kB / 0.6274 GB, free: 12.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.8632, allocations: 71.91 kB / 0.6275 GB, free: 12.73 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002825/0.8636, allocations: 72.36 kB / 0.6275 GB, free: 12.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.364e-05/0.8637, allocations: 19.98 kB / 0.6275 GB, free: 12.64 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005957/0.8643, allocations: 309.6 kB / 0.6278 GB, free: 12.34 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8643, allocations: 0 / 0.6278 GB, free: 12.34 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001434/0.8657, allocations: 247.9 kB / 0.6281 GB, free: 12.1 MB / 474.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.00519/0.8709, allocations: 2.77 MB / 0.6308 GB, free: 9.254 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.004153/0.8751, allocations: 1.432 MB / 0.6322 GB, free: 7.797 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.8752, allocations: 384 / 0.6322 GB, free: 7.797 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004947/0.8802, allocations: 1.068 MB / 0.6332 GB, free: 6.715 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.8815, allocations: 146.5 kB / 0.6334 GB, free: 6.574 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007232/0.8888, allocations: 2.24 MB / 0.6356 GB, free: 4.273 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001094/0.8899, allocations: 1.091 MB / 0.6366 GB, free: 3.152 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008975/0.8909, allocations: 287.3 kB / 0.6369 GB, free: 2.871 MB / 474.7 MB Notification: Performance of SimCode: time 1.403e-06/0.8909, allocations: 0 / 0.6369 GB, free: 2.871 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.636/4.526, allocations: 23.66 MB / 0.66 GB, free: 133.5 MB / 474.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)