Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",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.00106/0.00106, allocations: 178.7 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.345/1.345, 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.001586/0.001586, allocations: 106.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.1639/0.1639, allocations: 38 MB / 340.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003942/0.0003942, allocations: 12 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09663/0.09704, allocations: 53.24 MB / 457.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3409/0.438, allocations: 97.13 MB / 0.5413 GB, free: 14.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/0.4383, allocations: 101.7 kB / 0.5414 GB, free: 14.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03891/0.4772, allocations: 14.34 MB / 0.5554 GB, free: 1.695 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4773, allocations: 0 / 0.5554 GB, free: 1.695 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.909e-05/0.4773, allocations: 24.14 kB / 0.5554 GB, free: 1.672 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001878/0.4792, allocations: 1.044 MB / 0.5564 GB, free: 0.6172 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.4793, allocations: 16.02 kB / 0.5564 GB, free: 0.6016 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001439/0.4794, allocations: 112.2 kB / 0.5565 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.4796, allocations: 86.97 kB / 0.5566 GB, free: 448 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002846/0.4825, allocations: 1.202 MB / 0.5578 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.4826, allocations: 110.5 kB / 0.5579 GB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-05/0.4827, allocations: 73.25 kB / 0.558 GB, free: 15.24 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.4841, allocations: 0.8669 MB / 0.5588 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.4842, allocations: 4 kB / 0.5588 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.397e-05/0.4842, allocations: 27.56 kB / 0.5588 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.4843, allocations: 16 kB / 0.5588 GB, free: 14.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001068/0.4853, allocations: 0.6136 MB / 0.5594 GB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003565/0.4889, allocations: 2.761 MB / 0.5621 GB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/0.4905, allocations: 0.9081 MB / 0.563 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.4905, allocations: 4.391 kB / 0.563 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006588/0.4912, allocations: 354 kB / 0.5634 GB, free: 10.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.304e-06/0.4912, allocations: 0 / 0.5634 GB, free: 10.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.003834/0.4951, allocations: 1.965 MB / 0.5653 GB, free: 8.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.33e-05/0.4951, allocations: 122.2 kB / 0.5654 GB, free: 8.629 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004766/0.4956, allocations: 455.6 kB / 0.5658 GB, free: 8.262 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.817e-05/0.4957, allocations: 40.44 kB / 0.5659 GB, free: 8.223 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002337/0.4959, allocations: 362.2 kB / 0.5662 GB, free: 7.961 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.496, allocations: 142.5 kB / 0.5664 GB, free: 7.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.34e-05/0.4961, allocations: 10.75 kB / 0.5664 GB, free: 7.836 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.4962, allocations: 365.8 kB / 0.5667 GB, free: 7.496 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002862/0.4965, allocations: 202.4 kB / 0.5669 GB, free: 7.363 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003895/0.4969, allocations: 370.1 kB / 0.5673 GB, free: 7.004 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003587/0.4973, allocations: 297.1 kB / 0.5675 GB, free: 6.805 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.4973, allocations: 0 / 0.5675 GB, free: 6.805 MB / 378.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001081/0.4984, allocations: 0.8269 MB / 0.5684 GB, free: 6.121 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.279e-05/0.4985, allocations: 49.31 kB / 0.5684 GB, free: 6.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.4985, allocations: 8.578 kB / 0.5684 GB, free: 6.062 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002625/0.4988, allocations: 74.86 kB / 0.5685 GB, free: 5.992 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004048/0.4992, allocations: 108.1 kB / 0.5686 GB, free: 5.891 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002135/0.5013, allocations: 2.867 MB / 0.5714 GB, free: 2.902 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003915/0.5017, allocations: 36.89 kB / 0.5714 GB, free: 2.875 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.871e-05/0.5018, allocations: 47.28 kB / 0.5715 GB, free: 2.836 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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 prepare postOptimizeDAE: time 0.000397/0.5022, allocations: 265.7 kB / 0.5717 GB, free: 2.621 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001045/0.5023, allocations: 55.33 kB / 0.5718 GB, free: 2.566 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001371/0.5037, allocations: 0.6906 MB / 0.5724 GB, free: 1.992 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.5037, allocations: 8 kB / 0.5725 GB, free: 1.984 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.5037, allocations: 0 / 0.5725 GB, free: 1.984 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.5037, allocations: 11.94 kB / 0.5725 GB, free: 1.973 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002433/0.5062, allocations: 1.545 MB / 0.574 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.5062, allocations: 0 / 0.574 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003214/0.5065, allocations: 63.53 kB / 0.574 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001956/0.5067, allocations: 69.53 kB / 0.5741 GB, free: 0.5039 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.59e-05/0.5068, allocations: 15.42 kB / 0.5741 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002053/0.5088, allocations: 2.849 MB / 0.5769 GB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.5089, allocations: 8.078 kB / 0.5769 GB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.5108, allocations: 1.085 MB / 0.578 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002937/0.5111, allocations: 175.3 kB / 0.5781 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.916e-05/0.5112, allocations: 27.73 kB / 0.5782 GB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003737/0.5116, allocations: 51.62 kB / 0.5782 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.875e-05/0.5116, allocations: 35.81 kB / 0.5782 GB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.019e-05/0.5117, allocations: 19.97 kB / 0.5783 GB, free: 12.29 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000423/0.5121, allocations: 355.4 kB / 0.5786 GB, free: 12.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5121, allocations: 0 / 0.5786 GB, free: 12.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007254/0.5129, allocations: 155.2 kB / 0.5787 GB, free: 11.88 MB / 394.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: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.002293/0.5152, allocations: 1.872 MB / 0.5806 GB, free: 10.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001434/0.5166, allocations: 0.8697 MB / 0.5814 GB, free: 9.414 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.5166, allocations: 4 kB / 0.5814 GB, free: 9.41 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008275/0.5175, allocations: 0.4984 MB / 0.5819 GB, free: 8.949 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006696/0.5181, allocations: 136.3 kB / 0.582 GB, free: 8.852 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007766/0.5259, allocations: 7.555 MB / 0.5894 GB, free: 1.746 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006145/0.5266, allocations: 0.9875 MB / 0.5904 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004006/0.527, allocations: 108.9 kB / 0.5905 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002558/0.5272, allocations: 228.9 kB / 0.5907 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5273, allocations: 0 / 0.5907 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.5536, allocations: 12.39 MB / 0.6028 GB, free: 4.211 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002178/0.5539, allocations: 198.8 kB / 0.603 GB, free: 3.969 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.267/2.821, allocations: 4 kB / 0.603 GB, free: 3.965 MB / 410.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)