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.001149/0.001149, allocations: 180 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.366/1.366, allocations: 194.5 MB / 211.6 MB, free: 3.051 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.001656/0.001656, allocations: 107.5 kB / 256.9 MB, free: 4.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1681/0.1681, allocations: 38 MB / 340.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003634/0.0003635, allocations: 16 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08325/0.08363, allocations: 53.22 MB / 457.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3128/0.3965, allocations: 93.06 MB / 0.5373 GB, free: 2.055 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/0.3967, allocations: 95.02 kB / 0.5374 GB, free: 2.004 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03913/0.4359, allocations: 16.09 MB / 0.5531 GB, free: 4.262 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4359, allocations: 0 / 0.5531 GB, free: 4.262 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.108e-05/0.436, allocations: 16 kB / 0.5531 GB, free: 4.246 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.001667/0.4376, allocations: 0.9442 MB / 0.554 GB, free: 3.301 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.4377, allocations: 12.02 kB / 0.554 GB, free: 3.289 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001261/0.4378, allocations: 98.14 kB / 0.5541 GB, free: 3.219 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.438, allocations: 79.14 kB / 0.5542 GB, free: 3.141 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002673/0.4406, allocations: 1.171 MB / 0.5553 GB, free: 2.164 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001555/0.4408, allocations: 117.8 kB / 0.5554 GB, free: 2.059 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.859e-05/0.4409, allocations: 64.88 kB / 0.5555 GB, free: 2.016 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.4422, allocations: 0.7599 MB / 0.5563 GB, free: 1.441 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.4422, allocations: 7.938 kB / 0.5563 GB, free: 1.434 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.593e-05/0.4423, allocations: 20.81 kB / 0.5563 GB, free: 1.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.4423, allocations: 16 kB / 0.5563 GB, free: 1.414 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.4434, allocations: 0.6177 MB / 0.5569 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00359/0.447, allocations: 2.497 MB / 0.5593 GB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009209/0.448, allocations: 438.2 kB / 0.5598 GB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.448, allocations: 288 / 0.5598 GB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004091/0.4484, allocations: 242 kB / 0.56 GB, free: 14.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 1.633e-06/0.4484, allocations: 0 / 0.56 GB, free: 14.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.002612/0.4511, allocations: 0.832 MB / 0.5608 GB, free: 13.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.831e-05/0.4512, allocations: 136.5 kB / 0.5609 GB, free: 13.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004291/0.4516, allocations: 358.1 kB / 0.5613 GB, free: 13.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.593e-05/0.4516, allocations: 37.33 kB / 0.5613 GB, free: 13.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002307/0.4519, allocations: 312.3 kB / 0.5616 GB, free: 12.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.452, allocations: 124.6 kB / 0.5617 GB, free: 12.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.635e-05/0.452, allocations: 7.25 kB / 0.5617 GB, free: 12.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.4522, allocations: 352.4 kB / 0.5621 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002624/0.4525, allocations: 131.4 kB / 0.5622 GB, free: 12.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000323/0.4528, allocations: 252.3 kB / 0.5624 GB, free: 12.18 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.4531, allocations: 161.2 kB / 0.5626 GB, free: 12.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.4531, allocations: 3.953 kB / 0.5626 GB, free: 12.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001175/0.4543, allocations: 0.5556 MB / 0.5631 GB, free: 11.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.4543, allocations: 4 kB / 0.5631 GB, free: 11.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.4543, allocations: 4 kB / 0.5631 GB, free: 11.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004604/0.4548, allocations: 159 kB / 0.5633 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003175/0.4551, allocations: 83.78 kB / 0.5634 GB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002995/0.4581, allocations: 2.087 MB / 0.5654 GB, free: 9.527 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003381/0.4585, allocations: 47.45 kB / 0.5655 GB, free: 9.484 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.133e-05/0.4585, allocations: 23.86 kB / 0.5655 GB, free: 9.465 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = true 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 () * Number of clocked 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.0003531/0.4589, allocations: 244.5 kB / 0.5657 GB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.239e-05/0.459, allocations: 51.39 kB / 0.5658 GB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001121/0.4601, allocations: 480.3 kB / 0.5662 GB, free: 8.883 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.4601, allocations: 7.953 kB / 0.5662 GB, free: 8.875 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.4601, allocations: 0 / 0.5662 GB, free: 8.875 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.4601, allocations: 4.188 kB / 0.5662 GB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007439/0.4609, allocations: 0.6818 MB / 0.5669 GB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.4609, allocations: 7.891 kB / 0.5669 GB, free: 8.262 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002612/0.4612, allocations: 55.94 kB / 0.567 GB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003972/0.4616, allocations: 139.4 kB / 0.5671 GB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/0.4616, allocations: 11.38 kB / 0.5671 GB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002793/0.4644, allocations: 2.067 MB / 0.5691 GB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.4644, allocations: 4.031 kB / 0.5691 GB, free: 6.203 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001404/0.4658, allocations: 0.7236 MB / 0.5698 GB, free: 5.617 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000191/0.466, allocations: 156.4 kB / 0.57 GB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.826e-05/0.4661, allocations: 7.25 kB / 0.57 GB, free: 5.457 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.4663, allocations: 19.23 kB / 0.57 GB, free: 5.441 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.921e-05/0.4664, allocations: 42.7 kB / 0.57 GB, free: 5.406 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-05/0.4665, allocations: 11.38 kB / 0.5701 GB, free: 5.398 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002835/0.4668, allocations: 276.5 kB / 0.5703 GB, free: 5.188 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.493e-06/0.4668, allocations: 0 / 0.5703 GB, free: 5.188 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006037/0.4674, allocations: 172.8 kB / 0.5705 GB, free: 5.031 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 () * Number of clocked 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.001846/0.4692, allocations: 1.51 MB / 0.572 GB, free: 3.664 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000983/0.4702, allocations: 0.4936 MB / 0.5724 GB, free: 3.266 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4702, allocations: 0 / 0.5724 GB, free: 3.266 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005261/0.4708, allocations: 338.3 kB / 0.5728 GB, free: 2.988 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005599/0.4713, allocations: 146.7 kB / 0.5729 GB, free: 2.875 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005742/0.4771, allocations: 5.524 MB / 0.5783 GB, free: 13.72 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005864/0.4777, allocations: 0.9476 MB / 0.5792 GB, free: 12.77 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003229/0.478, allocations: 88.62 kB / 0.5793 GB, free: 12.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002002/0.4783, allocations: 196.2 kB / 0.5795 GB, free: 12.62 MB / 394.7 MB Notification: Performance of SimCode: time 5e-07/0.4783, allocations: 0 / 0.5795 GB, free: 12.62 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02926/0.5075, allocations: 12.65 MB / 0.5918 GB, free: 15.98 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002247/0.5078, allocations: 204.6 kB / 0.592 GB, free: 15.74 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.186/2.694, allocations: 0 / 0.592 GB, free: 15.74 MB / 410.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)