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.002299/0.002299, allocations: 184.4 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 1.937/1.937, allocations: 205.2 MB / 218.9 MB, free: 9.203 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.00105/0.00105, allocations: 86.64 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2779/0.2779, allocations: 37.96 MB / 353.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.078e-05/3.093e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1013, allocations: 56.32 MB / 473.2 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4672/0.5686, allocations: 100.2 MB / 0.56 GB, free: 3.504 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003237/0.569, allocations: 87.95 kB / 0.56 GB, free: 3.418 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06452/0.6335, allocations: 14.09 MB / 0.5738 GB, free: 5.199 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.6336, allocations: 0 / 0.5738 GB, free: 5.199 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.31e-05/0.6336, allocations: 19.98 kB / 0.5738 GB, free: 5.18 MB / 410.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.002701/0.6364, allocations: 0.8879 MB / 0.5747 GB, free: 4.246 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/0.6364, allocations: 8.031 kB / 0.5747 GB, free: 4.238 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002597/0.6367, allocations: 102.5 kB / 0.5748 GB, free: 4.129 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002336/0.6369, allocations: 75.11 kB / 0.5749 GB, free: 4.055 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004739/0.6417, allocations: 1.105 MB / 0.5759 GB, free: 2.906 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002695/0.642, allocations: 116.7 kB / 0.576 GB, free: 2.781 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001656/0.6422, allocations: 56 kB / 0.5761 GB, free: 2.727 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001926/0.6441, allocations: 0.7403 MB / 0.5768 GB, free: 1.945 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/0.6442, allocations: 3.938 kB / 0.5768 GB, free: 1.941 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.796e-05/0.6443, allocations: 24 kB / 0.5768 GB, free: 1.918 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.245e-05/0.6443, allocations: 23.89 kB / 0.5769 GB, free: 1.895 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/0.646, allocations: 0.5856 MB / 0.5774 GB, free: 1.309 MB / 410.7 MB Warning: The model contains alias variables with conflicting start and/or 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.007258/0.6533, allocations: 2.724 MB / 0.5801 GB, free: 14.48 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002172/0.6555, allocations: 0.7764 MB / 0.5809 GB, free: 13.65 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006963/0.6563, allocations: 286.2 kB / 0.5811 GB, free: 13.36 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.407e-05/0.6563, allocations: 4 kB / 0.5811 GB, free: 13.36 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.85e-05/0.6564, allocations: 38.5 kB / 0.5812 GB, free: 13.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=38): time 3.276e-06/0.6564, allocations: 0 / 0.5812 GB, free: 13.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=39): time 0.003624/0.66, allocations: 1.337 MB / 0.5825 GB, free: 11.89 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.556e-05/0.6601, allocations: 85.11 kB / 0.5826 GB, free: 11.79 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006799/0.6608, allocations: 371 kB / 0.5829 GB, free: 11.43 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.958e-05/0.6609, allocations: 29.7 kB / 0.5829 GB, free: 11.39 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002859/0.6612, allocations: 362.8 kB / 0.5833 GB, free: 11.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001768/0.6614, allocations: 134 kB / 0.5834 GB, free: 10.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.183e-05/0.6615, allocations: 12 kB / 0.5834 GB, free: 10.89 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.6616, allocations: 326.8 kB / 0.5837 GB, free: 10.56 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005198/0.6622, allocations: 193 kB / 0.5839 GB, free: 10.38 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006042/0.6628, allocations: 307.1 kB / 0.5842 GB, free: 10.03 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005933/0.6634, allocations: 215.6 kB / 0.5844 GB, free: 9.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.6634, allocations: 4 kB / 0.5844 GB, free: 9.816 MB / 426.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001651/0.6651, allocations: 0.6634 MB / 0.5851 GB, free: 9.121 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.531e-05/0.6651, allocations: 4.312 kB / 0.5851 GB, free: 9.117 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.6651, allocations: 4 kB / 0.5851 GB, free: 9.113 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003591/0.6655, allocations: 70.06 kB / 0.5852 GB, free: 9.039 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00305/0.6686, allocations: 375.6 kB / 0.5855 GB, free: 8.672 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007422/0.676, allocations: 5.861 MB / 0.5912 GB, free: 2.285 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007796/0.6769, allocations: 43.95 kB / 0.5913 GB, free: 2.242 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.119e-05/0.6769, allocations: 20 kB / 0.5913 GB, free: 2.223 MB / 426.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 () * 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.0002114/0.6772, allocations: 130.8 kB / 0.5914 GB, free: 2.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.6773, allocations: 51.39 kB / 0.5915 GB, free: 2.039 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/0.679, allocations: 0.6335 MB / 0.5921 GB, free: 1.375 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.679, allocations: 4 kB / 0.5921 GB, free: 1.371 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.679, allocations: 4 kB / 0.5921 GB, free: 1.367 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.6791, allocations: 4 kB / 0.5921 GB, free: 1.363 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003658/0.6827, allocations: 1.412 MB / 0.5935 GB, free: 15.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/0.6828, allocations: 7.953 kB / 0.5935 GB, free: 15.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003383/0.6862, allocations: 395.6 kB / 0.5939 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003603/0.6866, allocations: 65.67 kB / 0.5939 GB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.082e-05/0.6867, allocations: 11.98 kB / 0.5939 GB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0031/0.6898, allocations: 2.841 MB / 0.5967 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.6898, allocations: 3.984 kB / 0.5967 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00227/0.6921, allocations: 1.017 MB / 0.5977 GB, free: 11.18 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002171/0.6924, allocations: 128.5 kB / 0.5978 GB, free: 11.03 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.6925, allocations: 8 kB / 0.5978 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006021/0.6931, allocations: 39.95 kB / 0.5979 GB, free: 10.98 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.6933, allocations: 39.95 kB / 0.5979 GB, free: 10.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.271e-05/0.6934, allocations: 8 kB / 0.5979 GB, free: 10.94 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005318/0.6939, allocations: 289.2 kB / 0.5982 GB, free: 10.66 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6939, allocations: 0 / 0.5982 GB, free: 10.66 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009146/0.6948, allocations: 143.9 kB / 0.5983 GB, free: 10.52 MB / 442.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 () * 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.002772/0.6976, allocations: 1.791 MB / 0.6001 GB, free: 8.648 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003798/0.7015, allocations: 0.9472 MB / 0.601 GB, free: 7.676 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.7015, allocations: 0 / 0.601 GB, free: 7.676 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003351/0.7049, allocations: 0.7549 MB / 0.6017 GB, free: 6.895 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001475/0.7064, allocations: 138 kB / 0.6019 GB, free: 6.762 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004117/0.7106, allocations: 1.311 MB / 0.6032 GB, free: 5.398 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008235/0.7114, allocations: 0.9562 MB / 0.6041 GB, free: 4.414 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005151/0.712, allocations: 203.4 kB / 0.6043 GB, free: 4.215 MB / 442.7 MB Notification: Performance of SimCode: time 1.202e-06/0.712, allocations: 0 / 0.6043 GB, free: 4.215 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.248/3.96, allocations: 19.27 MB / 0.6231 GB, free: 0.9141 MB / 458.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)