Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.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.Chopper,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",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.002014/0.002014, allocations: 179.6 kB / 8.352 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.703/1.703, allocations: 194.3 MB / 203.1 MB, free: 13.03 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.001735/0.001735, allocations: 105.6 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.171/0.171, allocations: 37.93 MB / 330.9 MB, free: 2.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.435e-05/2.477e-05, allocations: 0 / 390.5 MB, free: 7.012 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3139/0.3139, allocations: 53.23 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1288/0.4427, allocations: 92.3 MB / 0.5234 GB, free: 5.238 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004213/0.4433, allocations: 91.94 kB / 0.5235 GB, free: 5.148 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2897/0.733, allocations: 15.92 MB / 0.5391 GB, free: 87.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.7331, allocations: 0 / 0.5391 GB, free: 87.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.94e-05/0.7331, allocations: 14.88 kB / 0.5391 GB, free: 87.65 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.001327/0.7344, allocations: 0.8729 MB / 0.5399 GB, free: 86.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.7345, allocations: 11.72 kB / 0.5399 GB, free: 86.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001288/0.7346, allocations: 70.5 kB / 0.54 GB, free: 86.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002463/0.7371, allocations: 1.159 MB / 0.5411 GB, free: 86.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.7372, allocations: 88.17 kB / 0.5412 GB, free: 86.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.43e-05/0.7373, allocations: 35.47 kB / 0.5413 GB, free: 86.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000744/0.7381, allocations: 0.4903 MB / 0.5417 GB, free: 85.83 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008519/0.7389, allocations: 0.6317 MB / 0.5424 GB, free: 85.42 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.7389, allocations: 3.938 kB / 0.5424 GB, free: 85.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.876e-05/0.739, allocations: 3.688 kB / 0.5424 GB, free: 85.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.739, allocations: 12.19 kB / 0.5424 GB, free: 85.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002524/0.7416, allocations: 2.374 MB / 0.5447 GB, free: 83.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006169/0.7422, allocations: 393.3 kB / 0.5451 GB, free: 83.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002408/0.7424, allocations: 178.8 kB / 0.5452 GB, free: 83.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.7425, allocations: 4.25 kB / 0.5452 GB, free: 83.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000266/0.7428, allocations: 220.7 kB / 0.5455 GB, free: 82.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 2.194e-06/0.7428, allocations: 0 / 0.5455 GB, free: 82.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.0008851/0.7437, allocations: 407.7 kB / 0.5458 GB, free: 82.55 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.825e-05/0.7437, allocations: 136.5 kB / 0.546 GB, free: 82.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002633/0.744, allocations: 282.2 kB / 0.5462 GB, free: 82.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.684e-05/0.744, allocations: 25.7 kB / 0.5463 GB, free: 82.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/0.7442, allocations: 319.8 kB / 0.5466 GB, free: 81.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.222e-05/0.7443, allocations: 122.3 kB / 0.5467 GB, free: 81.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.787e-05/0.7443, allocations: 0 / 0.5467 GB, free: 81.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.7444, allocations: 354.8 kB / 0.547 GB, free: 81.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/0.7446, allocations: 104.9 kB / 0.5471 GB, free: 81.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.7448, allocations: 221.2 kB / 0.5473 GB, free: 80.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.745, allocations: 136.6 kB / 0.5475 GB, free: 80.78 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.745, allocations: 4 kB / 0.5475 GB, free: 80.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008464/0.7458, allocations: 476.6 kB / 0.5479 GB, free: 80.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.7459, allocations: 4 kB / 0.5479 GB, free: 80.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.7459, allocations: 8.266 kB / 0.5479 GB, free: 80.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000292/0.7462, allocations: 133.5 kB / 0.5481 GB, free: 80.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002722/0.7465, allocations: 83.89 kB / 0.5481 GB, free: 80.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001777/0.7483, allocations: 1.855 MB / 0.55 GB, free: 78.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002942/0.7486, allocations: 39.67 kB / 0.55 GB, free: 78.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.607e-05/0.7486, allocations: 16 kB / 0.55 GB, free: 78.05 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = false protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = false protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition1,$PRE.chopper.modulator.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001419/0.7488, allocations: 120.9 kB / 0.5501 GB, free: 77.93 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007468/0.7495, allocations: 417.9 kB / 0.5505 GB, free: 77.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.631e-05/0.7496, allocations: 43.44 kB / 0.5506 GB, free: 77.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008012/0.7504, allocations: 410.8 kB / 0.551 GB, free: 77.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.7504, allocations: 8 kB / 0.551 GB, free: 77.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.7504, allocations: 3.984 kB / 0.551 GB, free: 77.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.7504, allocations: 192 / 0.551 GB, free: 77.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000549/0.751, allocations: 0.5851 MB / 0.5515 GB, free: 76.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.751, allocations: 7.969 kB / 0.5515 GB, free: 76.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.7512, allocations: 55.91 kB / 0.5516 GB, free: 76.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001944/0.7514, allocations: 124.7 kB / 0.5517 GB, free: 76.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.381e-05/0.7515, allocations: 4 kB / 0.5517 GB, free: 76.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001521/0.753, allocations: 1.853 MB / 0.5535 GB, free: 74.26 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.753, allocations: 96 / 0.5535 GB, free: 74.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009596/0.754, allocations: 0.6413 MB / 0.5542 GB, free: 73.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.7541, allocations: 140.6 kB / 0.5543 GB, free: 73.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.884e-05/0.7542, allocations: 7.984 kB / 0.5543 GB, free: 73.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.7544, allocations: 15.98 kB / 0.5543 GB, free: 73.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.174e-05/0.7545, allocations: 31.95 kB / 0.5543 GB, free: 73.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.217e-05/0.7545, allocations: 15.98 kB / 0.5544 GB, free: 73.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001668/0.7547, allocations: 212.6 kB / 0.5546 GB, free: 73.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7547, allocations: 0 / 0.5546 GB, free: 73.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005597/0.7552, allocations: 155.4 kB / 0.5547 GB, free: 72.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (meterDCin.pav,meterDCout.pav,load.i) * Number of discrete variables: 6 ($whenCondition1,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.00127/0.7565, allocations: 1.423 MB / 0.5561 GB, free: 71.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005953/0.7571, allocations: 444.8 kB / 0.5565 GB, free: 71.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.7571, allocations: 4.125 kB / 0.5565 GB, free: 71.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003274/0.7575, allocations: 298 kB / 0.5568 GB, free: 70.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005119/0.758, allocations: 118.4 kB / 0.5569 GB, free: 70.65 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/0.7598, allocations: 1.014 MB / 0.5579 GB, free: 69.6 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/0.7602, allocations: 0.9366 MB / 0.5588 GB, free: 68.63 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002808/0.7605, allocations: 84.31 kB / 0.5589 GB, free: 68.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002081/0.7607, allocations: 191.4 kB / 0.5591 GB, free: 68.36 MB / 378.7 MB Notification: Performance of SimCode: time 6.31e-07/0.7607, allocations: 4 kB / 0.5591 GB, free: 68.36 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03/0.7907, allocations: 10.44 MB / 0.5693 GB, free: 57.9 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001649/0.791, allocations: 141 kB / 0.5694 GB, free: 57.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.253/3.044, allocations: 7.875 kB / 0.5694 GB, free: 57.7 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)