Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001074/0.001075, allocations: 179.8 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.256/1.256, allocations: 194.5 MB / 211.6 MB, free: 3.043 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001617/0.001617, allocations: 116.5 kB / 256.9 MB, free: 4.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1665/0.1665, allocations: 38 MB / 340.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003532/0.0003533, allocations: 12 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09775/0.09812, allocations: 53.24 MB / 457.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3827/0.4809, allocations: 94.87 MB / 0.539 GB, free: 324 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/0.4812, allocations: 95.27 kB / 0.5391 GB, free: 272 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03803/0.5193, allocations: 14.51 MB / 0.5533 GB, free: 3.719 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.5193, allocations: 0 / 0.5533 GB, free: 3.719 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.129e-05/0.5194, allocations: 20 kB / 0.5533 GB, free: 3.699 MB / 362.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.001777/0.5212, allocations: 0.9407 MB / 0.5542 GB, free: 2.754 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.5212, allocations: 16.02 kB / 0.5543 GB, free: 2.738 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001255/0.5213, allocations: 99.39 kB / 0.5543 GB, free: 2.668 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.5215, allocations: 71.16 kB / 0.5544 GB, free: 2.598 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002596/0.5241, allocations: 1.11 MB / 0.5555 GB, free: 1.633 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001556/0.5243, allocations: 125.7 kB / 0.5556 GB, free: 1.516 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.093e-05/0.5244, allocations: 56.45 kB / 0.5557 GB, free: 1.477 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/0.5256, allocations: 0.789 MB / 0.5564 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.5257, allocations: 3.938 kB / 0.5564 GB, free: 0.8633 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.089e-05/0.5257, allocations: 19.69 kB / 0.5565 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.5257, allocations: 16 kB / 0.5565 GB, free: 0.8438 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001298/0.5271, allocations: 0.7388 MB / 0.5572 GB, free: 312 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003778/0.5308, allocations: 2.634 MB / 0.5598 GB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.5323, allocations: 0.8263 MB / 0.5606 GB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-05/0.5323, allocations: 8.5 kB / 0.5606 GB, free: 13.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/0.5324, allocations: 37.94 kB / 0.5606 GB, free: 13.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.544e-06/0.5324, allocations: 0 / 0.5606 GB, free: 13.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=51): time 0.003763/0.5362, allocations: 2.19 MB / 0.5628 GB, free: 11.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.5362, allocations: 85.55 kB / 0.5628 GB, free: 11.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003405/0.5366, allocations: 347.1 kB / 0.5632 GB, free: 11.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/0.5366, allocations: 41.05 kB / 0.5632 GB, free: 11.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.5368, allocations: 287.8 kB / 0.5635 GB, free: 10.87 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.5369, allocations: 178.6 kB / 0.5637 GB, free: 10.71 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.529e-05/0.5369, allocations: 7.188 kB / 0.5637 GB, free: 10.71 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.5371, allocations: 363.9 kB / 0.564 GB, free: 10.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004937/0.5376, allocations: 279.9 kB / 0.5643 GB, free: 10.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005561/0.5381, allocations: 399.1 kB / 0.5647 GB, free: 9.832 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005365/0.5387, allocations: 323 kB / 0.565 GB, free: 9.617 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.5387, allocations: 0 / 0.565 GB, free: 9.617 MB / 378.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001356/0.5401, allocations: 0.892 MB / 0.5658 GB, free: 8.891 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.913e-05/0.5401, allocations: 8.188 kB / 0.5658 GB, free: 8.883 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.5401, allocations: 4 kB / 0.5659 GB, free: 8.879 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002367/0.5404, allocations: 76.91 kB / 0.5659 GB, free: 8.809 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001496/0.5419, allocations: 395.3 kB / 0.5663 GB, free: 8.426 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005676/0.5475, allocations: 6.194 MB / 0.5724 GB, free: 2.016 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000469/0.548, allocations: 59.91 kB / 0.5724 GB, free: 1.965 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.203e-05/0.5481, allocations: 23.88 kB / 0.5724 GB, free: 1.945 MB / 378.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.0004012/0.5485, allocations: 234.5 kB / 0.5727 GB, free: 1.758 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.522e-05/0.5486, allocations: 51.34 kB / 0.5727 GB, free: 1.707 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001444/0.55, allocations: 0.8575 MB / 0.5735 GB, free: 1.039 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.5501, allocations: 4 kB / 0.5735 GB, free: 1.035 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.5501, allocations: 4 kB / 0.5736 GB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.5501, allocations: 7.984 kB / 0.5736 GB, free: 1.023 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002779/0.5529, allocations: 1.705 MB / 0.5752 GB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.5529, allocations: 0 / 0.5752 GB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001653/0.5545, allocations: 423.3 kB / 0.5756 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000232/0.5548, allocations: 81.45 kB / 0.5757 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.5548, allocations: 14.31 kB / 0.5757 GB, free: 15.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001925/0.5568, allocations: 2.874 MB / 0.5785 GB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.5568, allocations: 11.95 kB / 0.5785 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002063/0.5589, allocations: 1.425 MB / 0.5799 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.559, allocations: 124.2 kB / 0.58 GB, free: 10.75 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.701e-05/0.5591, allocations: 13.84 kB / 0.5801 GB, free: 10.74 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003603/0.5595, allocations: 41.78 kB / 0.5801 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/0.5596, allocations: 50.69 kB / 0.5801 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.782e-05/0.5597, allocations: 15.38 kB / 0.5802 GB, free: 10.65 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003237/0.56, allocations: 281.4 kB / 0.5804 GB, free: 10.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.56, allocations: 0 / 0.5804 GB, free: 10.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007506/0.5608, allocations: 152.6 kB / 0.5806 GB, free: 10.3 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 () * 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.002679/0.5635, allocations: 2.476 MB / 0.583 GB, free: 8.043 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002554/0.566, allocations: 1.149 MB / 0.5841 GB, free: 7.039 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.5661, allocations: 0 / 0.5841 GB, free: 7.039 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001893/0.568, allocations: 0.8896 MB / 0.585 GB, free: 6.227 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006251/0.5686, allocations: 123.4 kB / 0.5851 GB, free: 6.137 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00715/0.5758, allocations: 6.064 MB / 0.591 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005196/0.5763, allocations: 0.9595 MB / 0.592 GB, free: 15.62 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004403/0.5767, allocations: 128.7 kB / 0.5921 GB, free: 15.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002577/0.577, allocations: 196.1 kB / 0.5923 GB, free: 15.45 MB / 410.7 MB Notification: Performance of SimCode: time 9.91e-07/0.577, allocations: 0 / 0.5923 GB, free: 15.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02722/0.6042, allocations: 12.31 MB / 0.6043 GB, free: 3.145 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002159/0.6045, allocations: 214.3 kB / 0.6045 GB, free: 2.895 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.214/2.818, allocations: 0 / 0.6045 GB, free: 2.895 MB / 410.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)