Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_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.00152/0.001524, allocations: 182.6 kB / 15.77 MB, free: 6.375 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.988/1.988, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001145/0.001144, allocations: 98.78 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2653/0.2653, allocations: 38.05 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004537/0.0004538, allocations: 20 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1075, allocations: 56.33 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.01077/0.1183, allocations: 6.283 MB / 485.4 MB, free: 11.62 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004623/0.123, allocations: 1.744 MB / 487.2 MB, free: 9.875 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007006/0.1238, allocations: 47.69 kB / 487.2 MB, free: 9.828 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000646/0.1244, allocations: 151.1 kB / 487.4 MB, free: 9.68 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001305/0.1258, allocations: 362.8 kB / 487.7 MB, free: 9.324 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008515/0.1266, allocations: 211.7 kB / 487.9 MB, free: 9.117 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001141/0.1278, allocations: 0.5691 MB / 488.5 MB, free: 8.547 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005159/0.1283, allocations: 243.6 kB / 488.7 MB, free: 8.309 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000712/0.1291, allocations: 338.8 kB / 489.1 MB, free: 7.977 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007865/0.1299, allocations: 362.8 kB / 489.4 MB, free: 7.621 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.13, allocations: 35.94 kB / 489.4 MB, free: 7.586 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001576/0.1302, allocations: 32 kB / 489.5 MB, free: 7.555 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003743/0.1305, allocations: 247.4 kB / 489.7 MB, free: 7.312 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002338/0.1308, allocations: 161.3 kB / 489.9 MB, free: 7.148 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009529/0.1318, allocations: 0.6545 MB / 490.5 MB, free: 6.492 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1318, allocations: 0 / 490.5 MB, free: 6.492 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1318, allocations: 4 kB / 490.5 MB, free: 6.488 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.1318, allocations: 0 / 490.5 MB, free: 6.488 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002756/0.1346, allocations: 0.9255 MB / 491.5 MB, free: 5.512 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.1346, allocations: 8.031 kB / 491.5 MB, free: 5.504 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002243/0.1349, allocations: 102.5 kB / 491.6 MB, free: 5.395 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001912/0.1351, allocations: 75.14 kB / 491.6 MB, free: 5.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001486/0.1366, allocations: 0.5447 MB / 492.2 MB, free: 4.734 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002501/0.1368, allocations: 116.6 kB / 492.3 MB, free: 4.605 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.137, allocations: 56 kB / 492.4 MB, free: 4.551 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002226/0.1392, allocations: 0.7967 MB / 493.2 MB, free: 3.719 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.1393, allocations: 0 / 493.2 MB, free: 3.719 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.772e-05/0.1394, allocations: 27.95 kB / 493.2 MB, free: 3.691 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001926/0.1396, allocations: 40.91 kB / 493.2 MB, free: 3.652 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002424/0.142, allocations: 0.722 MB / 493.9 MB, free: 2.93 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006878/0.149, allocations: 2.751 MB / 496.7 MB, free: 76 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003286/0.1523, allocations: 0.9208 MB / 497.6 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.306e-05/0.1524, allocations: 12.58 kB / 497.6 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/0.1524, allocations: 38.56 kB / 497.7 MB, free: 15.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 3.547e-06/0.1524, allocations: 0 / 497.7 MB, free: 15.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.006533/0.159, allocations: 2.023 MB / 499.7 MB, free: 12.9 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/0.1591, allocations: 85.05 kB / 499.8 MB, free: 12.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007021/0.1598, allocations: 425.8 kB / 0.4885 GB, free: 12.37 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.628e-05/0.1599, allocations: 29.7 kB / 0.4885 GB, free: 12.34 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002842/0.1602, allocations: 350.7 kB / 0.4888 GB, free: 11.99 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001751/0.1603, allocations: 138 kB / 0.489 GB, free: 11.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.036e-05/0.1604, allocations: 12 kB / 0.489 GB, free: 11.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1606, allocations: 326.8 kB / 0.4893 GB, free: 11.52 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008994/0.1615, allocations: 253 kB / 0.4895 GB, free: 11.27 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000986/0.1625, allocations: 370.1 kB / 0.4899 GB, free: 10.86 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009752/0.1635, allocations: 275.6 kB / 0.4901 GB, free: 10.59 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.078e-05/0.1635, allocations: 7.984 kB / 0.4901 GB, free: 10.58 MB / 346.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.002423/0.1659, allocations: 0.7883 MB / 0.4909 GB, free: 9.762 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.166, allocations: 7.984 kB / 0.4909 GB, free: 9.754 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.166, allocations: 4.219 kB / 0.4909 GB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003972/0.1664, allocations: 81.61 kB / 0.491 GB, free: 9.664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003004/0.1694, allocations: 371.6 kB / 0.4914 GB, free: 9.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009761/0.1792, allocations: 6.218 MB / 0.4974 GB, free: 2.551 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007312/0.18, allocations: 52.2 kB / 0.4975 GB, free: 2.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.8e-05/0.1801, allocations: 16 kB / 0.4975 GB, free: 2.484 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004938/0.1806, allocations: 241.6 kB / 0.4977 GB, free: 2.238 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.1807, allocations: 47.39 kB / 0.4978 GB, free: 2.191 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002408/0.1831, allocations: 0.7573 MB / 0.4985 GB, free: 1.406 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.1832, allocations: 8 kB / 0.4985 GB, free: 1.398 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/0.1832, allocations: 7.984 kB / 0.4985 GB, free: 1.391 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.1832, allocations: 0 / 0.4985 GB, free: 1.391 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004473/0.1877, allocations: 1.545 MB / 0.5 GB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/0.1878, allocations: 0 / 0.5 GB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003358/0.1911, allocations: 399.6 kB / 0.5004 GB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004846/0.1917, allocations: 85.64 kB / 0.5005 GB, free: 15.28 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.285e-05/0.1917, allocations: 15.98 kB / 0.5005 GB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003395/0.1951, allocations: 2.899 MB / 0.5033 GB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.1952, allocations: 4.031 kB / 0.5033 GB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00342/0.1986, allocations: 1.205 MB / 0.5045 GB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001963/0.1989, allocations: 128.3 kB / 0.5046 GB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.199, allocations: 16.03 kB / 0.5047 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000592/0.1996, allocations: 39.97 kB / 0.5047 GB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001849/0.1998, allocations: 35.94 kB / 0.5047 GB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.621e-05/0.1999, allocations: 12 kB / 0.5047 GB, free: 10.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005025/0.2004, allocations: 291.1 kB / 0.505 GB, free: 10.29 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.2004, allocations: 7.938 kB / 0.505 GB, free: 10.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009248/0.2013, allocations: 136 kB / 0.5052 GB, free: 10.15 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003897/0.2052, allocations: 1.944 MB / 0.5071 GB, free: 8.133 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004896/0.2102, allocations: 1.126 MB / 0.5082 GB, free: 6.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.2102, allocations: 0 / 0.5082 GB, free: 6.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003657/0.2139, allocations: 0.8099 MB / 0.5089 GB, free: 6.145 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.2151, allocations: 126.1 kB / 0.5091 GB, free: 6.02 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3032/0.5183, allocations: 6.144 MB / 0.5151 GB, free: 52.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006339/0.519, allocations: 0.9584 MB / 0.516 GB, free: 51.42 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005612/0.5196, allocations: 203 kB / 0.5162 GB, free: 51.41 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5196, allocations: 0 / 0.5162 GB, free: 51.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.828/3.347, allocations: 19.25 MB / 0.535 GB, free: 44.5 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1)