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.002246/0.002246, allocations: 183.1 kB / 15.76 MB, free: 6.34 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.84 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.001123/0.001123, allocations: 90.86 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2627/0.2627, allocations: 38.04 MB / 356.5 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004723/0.0004723, allocations: 8 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1085, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4891/0.5977, allocations: 99.96 MB / 0.5655 GB, free: 15.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002921/0.598, allocations: 97.39 kB / 0.5656 GB, free: 15.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06398/0.662, allocations: 14.54 MB / 0.5798 GB, free: 2.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.6621, allocations: 0 / 0.5798 GB, free: 2.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.612e-05/0.6622, allocations: 16 kB / 0.5798 GB, free: 2.754 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.003066/0.6652, allocations: 0.9395 MB / 0.5807 GB, free: 1.809 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.6653, allocations: 8.031 kB / 0.5807 GB, free: 1.801 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003035/0.6656, allocations: 101.3 kB / 0.5808 GB, free: 1.727 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002231/0.6658, allocations: 75.16 kB / 0.5809 GB, free: 1.652 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004705/0.6706, allocations: 1.113 MB / 0.582 GB, free: 0.6836 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002617/0.6709, allocations: 119.9 kB / 0.5821 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000187/0.6711, allocations: 57.62 kB / 0.5822 GB, free: 0.5352 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002355/0.6735, allocations: 0.785 MB / 0.5829 GB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.623e-05/0.6735, allocations: 0 / 0.5829 GB, free: 15.94 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.676e-05/0.6736, allocations: 31.14 kB / 0.583 GB, free: 15.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.39e-05/0.6737, allocations: 12 kB / 0.583 GB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002601/0.6763, allocations: 0.743 MB / 0.5837 GB, free: 15.38 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00638/0.6827, allocations: 2.63 MB / 0.5863 GB, free: 13.17 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002892/0.6856, allocations: 0.8303 MB / 0.5871 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.641e-05/0.6858, allocations: 8.438 kB / 0.5871 GB, free: 12.49 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.007e-05/0.6858, allocations: 42.81 kB / 0.5871 GB, free: 12.44 MB / 394.7 MB Notification: Performance of pre-optimization done (n=50): time 3.337e-06/0.6858, allocations: 0 / 0.5871 GB, free: 12.44 MB / 394.7 MB Notification: Performance of matching and sorting (n=51): time 0.007338/0.6932, allocations: 2.189 MB / 0.5893 GB, free: 10.57 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.945e-05/0.6933, allocations: 81.55 kB / 0.5893 GB, free: 10.47 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006637/0.6939, allocations: 350.5 kB / 0.5897 GB, free: 10.18 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001127/0.6941, allocations: 32.14 kB / 0.5897 GB, free: 10.15 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002434/0.6943, allocations: 327.4 kB / 0.59 GB, free: 9.891 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000238/0.6946, allocations: 183.4 kB / 0.5902 GB, free: 9.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.793e-05/0.6947, allocations: 9.688 kB / 0.5902 GB, free: 9.73 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.6948, allocations: 345.1 kB / 0.5905 GB, free: 9.395 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.6959, allocations: 282.5 kB / 0.5908 GB, free: 9.195 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.697, allocations: 401.4 kB / 0.5912 GB, free: 8.852 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/0.6981, allocations: 310.8 kB / 0.5915 GB, free: 8.648 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.6981, allocations: 4 kB / 0.5915 GB, free: 8.645 MB / 394.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002698/0.7008, allocations: 0.8654 MB / 0.5923 GB, free: 7.941 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.7009, allocations: 8 kB / 0.5923 GB, free: 7.934 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.7009, allocations: 0 / 0.5923 GB, free: 7.934 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003781/0.7013, allocations: 74.72 kB / 0.5924 GB, free: 7.863 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003279/0.7046, allocations: 402.4 kB / 0.5928 GB, free: 7.477 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009409/0.714, allocations: 6.201 MB / 0.5989 GB, free: 1.055 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000827/0.7149, allocations: 48.67 kB / 0.5989 GB, free: 1.016 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.544e-05/0.7149, allocations: 19.19 kB / 0.5989 GB, free: 1 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 () * Number of clocked 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.0005432/0.7155, allocations: 241.7 kB / 0.5991 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.7157, allocations: 47.44 kB / 0.5992 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002632/0.7183, allocations: 0.8499 MB / 0.6 GB, free: 96 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.7183, allocations: 4 kB / 0.6 GB, free: 92 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.7184, allocations: 7.984 kB / 0.6 GB, free: 84 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.7184, allocations: 7.938 kB / 0.6 GB, free: 76 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004841/0.7232, allocations: 1.707 MB / 0.6017 GB, free: 14.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.7233, allocations: 0 / 0.6017 GB, free: 14.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003627/0.7269, allocations: 431.4 kB / 0.6021 GB, free: 14.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004304/0.7274, allocations: 76.02 kB / 0.6022 GB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.346e-05/0.7275, allocations: 15.69 kB / 0.6022 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004234/0.7317, allocations: 2.873 MB / 0.605 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.7318, allocations: 4.031 kB / 0.605 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005613/0.7374, allocations: 1.43 MB / 0.6064 GB, free: 9.938 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002877/0.7377, allocations: 128.4 kB / 0.6065 GB, free: 9.797 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001713/0.7379, allocations: 18.86 kB / 0.6066 GB, free: 9.785 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009369/0.7389, allocations: 39.78 kB / 0.6066 GB, free: 9.754 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000262/0.7392, allocations: 55.69 kB / 0.6066 GB, free: 9.703 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.854e-05/0.7393, allocations: 11.56 kB / 0.6067 GB, free: 9.695 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006649/0.7399, allocations: 276.5 kB / 0.6069 GB, free: 9.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.74, allocations: 0 / 0.6069 GB, free: 9.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001338/0.7413, allocations: 159.1 kB / 0.6071 GB, free: 9.344 MB / 410.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 () * Number of clocked 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.005727/0.7471, allocations: 2.468 MB / 0.6095 GB, free: 7.098 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004722/0.7518, allocations: 1.14 MB / 0.6106 GB, free: 6.102 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.7519, allocations: 8.125 kB / 0.6106 GB, free: 6.094 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003841/0.7557, allocations: 0.8792 MB / 0.6115 GB, free: 5.293 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.7569, allocations: 124.5 kB / 0.6116 GB, free: 5.199 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01266/0.7696, allocations: 6.107 MB / 0.6175 GB, free: 15.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007966/0.7704, allocations: 0.952 MB / 0.6185 GB, free: 14.65 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005059/0.7709, allocations: 199.9 kB / 0.6187 GB, free: 14.59 MB / 426.7 MB Notification: Performance of SimCode: time 1.202e-06/0.7709, allocations: 0 / 0.6187 GB, free: 14.59 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.102/3.873, allocations: 19.01 MB / 0.6372 GB, free: 11.69 MB / 442.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)