Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_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.002143/0.002142, allocations: 180.8 kB / 8.008 MB, free: 1.066 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.035/2.035, allocations: 205.3 MB / 213.7 MB, free: 1.73 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.001113/0.001113, 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.2812/0.2812, allocations: 38 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.827e-05/1.817e-05, allocations: 0 / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.106, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4771/0.5832, allocations: 99.2 MB / 0.5522 GB, free: 9.449 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/0.5835, allocations: 86.33 kB / 0.5523 GB, free: 9.438 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05676/0.6403, allocations: 14.38 MB / 0.5663 GB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6403, allocations: 7.938 kB / 0.5664 GB, free: 15.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.504e-05/0.6404, allocations: 19.5 kB / 0.5664 GB, free: 15.56 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002539/0.643, allocations: 0.8622 MB / 0.5672 GB, free: 14.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.643, allocations: 8.031 kB / 0.5672 GB, free: 14.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000231/0.6433, allocations: 79.09 kB / 0.5673 GB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004589/0.6479, allocations: 1.098 MB / 0.5684 GB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002627/0.6482, allocations: 95.39 kB / 0.5685 GB, free: 13.58 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001761/0.6484, allocations: 32 kB / 0.5685 GB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001673/0.6501, allocations: 0.5937 MB / 0.5691 GB, free: 13.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001558/0.6516, allocations: 0.6546 MB / 0.5697 GB, free: 12.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.6517, allocations: 4 kB / 0.5697 GB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.846e-05/0.6518, allocations: 3.953 kB / 0.5697 GB, free: 12.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.331e-05/0.6518, allocations: 16 kB / 0.5697 GB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005992/0.6578, allocations: 2.512 MB / 0.5722 GB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001845/0.6597, allocations: 0.6876 MB / 0.5729 GB, free: 9.984 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007097/0.6604, allocations: 349.6 kB / 0.5732 GB, free: 9.746 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.756e-05/0.6605, allocations: 4.438 kB / 0.5732 GB, free: 9.742 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/0.6606, allocations: 39.69 kB / 0.5732 GB, free: 9.699 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 3.306e-06/0.6606, allocations: 0 / 0.5732 GB, free: 9.699 MB / 378.7 MB Notification: Performance of matching and sorting (n=51): time 0.003491/0.6641, allocations: 1.426 MB / 0.5746 GB, free: 8.469 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.745e-05/0.6642, allocations: 81.55 kB / 0.5747 GB, free: 8.371 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004938/0.6647, allocations: 301.6 kB / 0.575 GB, free: 8.129 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.884e-05/0.6648, allocations: 25.7 kB / 0.575 GB, free: 8.098 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002319/0.665, allocations: 328.2 kB / 0.5753 GB, free: 7.828 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002286/0.6652, allocations: 176.2 kB / 0.5755 GB, free: 7.676 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.848e-05/0.6653, allocations: 0 / 0.5755 GB, free: 7.676 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.6655, allocations: 337.9 kB / 0.5758 GB, free: 7.344 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000507/0.666, allocations: 219.9 kB / 0.576 GB, free: 7.207 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006116/0.6666, allocations: 320 kB / 0.5763 GB, free: 6.941 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005939/0.6672, allocations: 256 kB / 0.5766 GB, free: 6.777 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.6672, allocations: 3.938 kB / 0.5766 GB, free: 6.773 MB / 378.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001672/0.6689, allocations: 0.7057 MB / 0.5773 GB, free: 6.191 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.669, allocations: 4 kB / 0.5773 GB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.669, allocations: 4 kB / 0.5773 GB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003936/0.6694, allocations: 79.73 kB / 0.5774 GB, free: 6.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003191/0.6726, allocations: 395 kB / 0.5777 GB, free: 5.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006903/0.6795, allocations: 5.664 MB / 0.5833 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008039/0.6804, allocations: 31.97 kB / 0.5833 GB, free: 15.85 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.906e-05/0.6804, allocations: 23.8 kB / 0.5833 GB, free: 15.83 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (65): * Single equations (assignments): 61 * 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.0002138/0.6807, allocations: 120.9 kB / 0.5834 GB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001519/0.6822, allocations: 0.6472 MB / 0.5841 GB, free: 15.17 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.6823, allocations: 47.44 kB / 0.5841 GB, free: 15.12 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001681/0.684, allocations: 0.6979 MB / 0.5848 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.6841, allocations: 11.95 kB / 0.5848 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.6841, allocations: 0 / 0.5848 GB, free: 14.56 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.081e-05/0.6841, allocations: 3.984 kB / 0.5848 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003803/0.6879, allocations: 1.479 MB / 0.5862 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.688, allocations: 0 / 0.5862 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003619/0.6916, allocations: 430.3 kB / 0.5867 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004142/0.6921, allocations: 79.94 kB / 0.5867 GB, free: 12.83 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.919e-05/0.6922, allocations: 11.98 kB / 0.5867 GB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002899/0.6951, allocations: 2.75 MB / 0.5894 GB, free: 9.973 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.463e-06/0.6951, allocations: 0 / 0.5894 GB, free: 9.973 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002482/0.6976, allocations: 1.229 MB / 0.5906 GB, free: 8.926 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.6978, allocations: 119.7 kB / 0.5907 GB, free: 8.793 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.698, allocations: 4 kB / 0.5908 GB, free: 8.789 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006393/0.6986, allocations: 36 kB / 0.5908 GB, free: 8.754 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001835/0.6988, allocations: 51.02 kB / 0.5908 GB, free: 8.711 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.446e-05/0.6989, allocations: 23.3 kB / 0.5909 GB, free: 8.691 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003595/0.6992, allocations: 223.2 kB / 0.5911 GB, free: 8.52 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6993, allocations: 0 / 0.5911 GB, free: 8.52 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009778/0.7002, allocations: 136 kB / 0.5912 GB, free: 8.387 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (51): * Single equations (assignments): 48 * 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.002992/0.7033, allocations: 2.261 MB / 0.5934 GB, free: 6.324 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003799/0.7071, allocations: 1.003 MB / 0.5944 GB, free: 5.469 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.271e-06/0.7071, allocations: 0 / 0.5944 GB, free: 5.469 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003341/0.7105, allocations: 0.8006 MB / 0.5952 GB, free: 4.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001048/0.7116, allocations: 98.84 kB / 0.5953 GB, free: 4.672 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00518/0.7168, allocations: 1.442 MB / 0.5967 GB, free: 3.332 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008102/0.7176, allocations: 0.9511 MB / 0.5976 GB, free: 2.383 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004877/0.7181, allocations: 199 kB / 0.5978 GB, free: 2.332 MB / 394.7 MB Notification: Performance of SimCode: time 1.153e-06/0.7182, allocations: 0 / 0.5978 GB, free: 2.332 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.227/3.945, allocations: 18.6 MB / 0.6159 GB, free: 15.84 MB / 426.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)