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.002781/0.002782, allocations: 181.8 kB / 13.64 MB, free: 1.676 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.936/1.936, allocations: 194.2 MB / 208.4 MB, free: 6.719 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.002218/0.002217, allocations: 124.6 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1861/0.1861, allocations: 37.91 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.902e-05/5.954e-05, allocations: 7.984 kB / 397.6 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2928, allocations: 53.21 MB / 450.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1337/0.4266, allocations: 92.97 MB / 0.5311 GB, free: 368 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.4269, allocations: 91.81 kB / 0.5312 GB, free: 280 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3255/0.7524, allocations: 16.1 MB / 0.5469 GB, free: 82.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.7525, allocations: 4 kB / 0.5469 GB, free: 82.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.319e-05/0.7525, allocations: 16 kB / 0.5469 GB, free: 82.64 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.001607/0.7541, allocations: 0.8751 MB / 0.5478 GB, free: 81.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.836e-05/0.7542, allocations: 12.03 kB / 0.5478 GB, free: 81.71 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001472/0.7543, allocations: 106.5 kB / 0.5479 GB, free: 81.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/0.7545, allocations: 75.16 kB / 0.5479 GB, free: 81.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002719/0.7572, allocations: 1.144 MB / 0.5491 GB, free: 80.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.7574, allocations: 120.7 kB / 0.5492 GB, free: 80.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.985e-05/0.7575, allocations: 60 kB / 0.5492 GB, free: 80.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.7586, allocations: 0.7135 MB / 0.5499 GB, free: 79.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.7587, allocations: 3.938 kB / 0.5499 GB, free: 79.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.735e-05/0.7587, allocations: 28 kB / 0.55 GB, free: 79.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.7587, allocations: 16 kB / 0.55 GB, free: 79.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007485/0.7595, allocations: 0.531 MB / 0.5505 GB, free: 78.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002847/0.7623, allocations: 2.491 MB / 0.5529 GB, free: 76.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006992/0.7631, allocations: 406 kB / 0.5533 GB, free: 75.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002636/0.7633, allocations: 195.2 kB / 0.5535 GB, free: 75.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.7634, allocations: 4.281 kB / 0.5535 GB, free: 75.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002948/0.7637, allocations: 223.5 kB / 0.5537 GB, free: 75.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=36): time 3.086e-06/0.7637, allocations: 0 / 0.5537 GB, free: 75.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.0009867/0.7647, allocations: 443.3 kB / 0.5541 GB, free: 74.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.7648, allocations: 136.5 kB / 0.5543 GB, free: 74.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003116/0.7651, allocations: 355 kB / 0.5546 GB, free: 74.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.7651, allocations: 29.7 kB / 0.5546 GB, free: 74.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.7653, allocations: 316.2 kB / 0.5549 GB, free: 74.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.988e-05/0.7653, allocations: 122.3 kB / 0.5551 GB, free: 73.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.918e-05/0.7654, allocations: 19.97 kB / 0.5551 GB, free: 73.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.609e-05/0.7655, allocations: 350.8 kB / 0.5554 GB, free: 73.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.7656, allocations: 112.9 kB / 0.5555 GB, free: 73.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002046/0.7658, allocations: 238 kB / 0.5557 GB, free: 73.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.7661, allocations: 148.6 kB / 0.5559 GB, free: 73.01 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.7661, allocations: 0 / 0.5559 GB, free: 73.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008953/0.767, allocations: 0.5202 MB / 0.5564 GB, free: 72.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.767, allocations: 8 kB / 0.5564 GB, free: 72.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.767, allocations: 4.031 kB / 0.5564 GB, free: 72.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002908/0.7673, allocations: 132.7 kB / 0.5565 GB, free: 72.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.7676, allocations: 83.89 kB / 0.5566 GB, free: 72.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/0.7695, allocations: 1.93 MB / 0.5585 GB, free: 70.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003304/0.7698, allocations: 59.42 kB / 0.5586 GB, free: 70.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.923e-05/0.7699, allocations: 16 kB / 0.5586 GB, free: 70.12 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.0001256/0.77, allocations: 140.3 kB / 0.5587 GB, free: 69.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.351e-05/0.7701, allocations: 51.47 kB / 0.5588 GB, free: 69.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008976/0.771, allocations: 450.6 kB / 0.5592 GB, free: 69.47 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.771, allocations: 7.984 kB / 0.5592 GB, free: 69.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.771, allocations: 8 kB / 0.5592 GB, free: 69.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.771, allocations: 0 / 0.5592 GB, free: 69.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006382/0.7716, allocations: 0.6785 MB / 0.5599 GB, free: 68.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.7717, allocations: 0 / 0.5599 GB, free: 68.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.7719, allocations: 51.97 kB / 0.5599 GB, free: 68.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002084/0.7721, allocations: 128.8 kB / 0.56 GB, free: 68.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/0.7722, allocations: 8 kB / 0.56 GB, free: 68.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001756/0.7739, allocations: 1.932 MB / 0.5619 GB, free: 66.47 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.7739, allocations: 0 / 0.5619 GB, free: 66.47 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.7751, allocations: 0.6766 MB / 0.5626 GB, free: 65.74 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001898/0.7753, allocations: 148.5 kB / 0.5627 GB, free: 65.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.25e-05/0.7753, allocations: 11.98 kB / 0.5627 GB, free: 65.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.7756, allocations: 15.98 kB / 0.5628 GB, free: 65.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.7757, allocations: 40.08 kB / 0.5628 GB, free: 65.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.7757, allocations: 12 kB / 0.5628 GB, free: 65.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003563/0.7761, allocations: 281.2 kB / 0.5631 GB, free: 65.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7761, allocations: 3.938 kB / 0.5631 GB, free: 65.22 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008506/0.777, allocations: 163.5 kB / 0.5632 GB, free: 65.06 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.001589/0.7786, allocations: 1.47 MB / 0.5647 GB, free: 63.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008168/0.7794, allocations: 473.9 kB / 0.5651 GB, free: 63.06 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.7794, allocations: 0 / 0.5651 GB, free: 63.06 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003835/0.7798, allocations: 311.5 kB / 0.5654 GB, free: 62.74 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006107/0.7804, allocations: 141.5 kB / 0.5656 GB, free: 62.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002245/0.7827, allocations: 1.049 MB / 0.5666 GB, free: 61.51 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004802/0.7832, allocations: 0.9444 MB / 0.5675 GB, free: 60.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003065/0.7835, allocations: 84.64 kB / 0.5676 GB, free: 60.45 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002223/0.7837, allocations: 191.4 kB / 0.5678 GB, free: 60.27 MB / 378.7 MB Notification: Performance of SimCode: time 1.162e-06/0.7837, allocations: 0 / 0.5678 GB, free: 60.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02732/0.8111, allocations: 12.63 MB / 0.5801 GB, free: 47.64 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001706/0.8113, allocations: 175 kB / 0.5803 GB, free: 47.41 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.573/3.385, allocations: 0 / 0.5803 GB, free: 47.41 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)