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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 97.16 kB / 16.3 MB, free: 5.547 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 177 kB / 17.19 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.308/1.308, allocations: 205.4 MB / 223.3 MB, free: 13.19 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1724/0.1724, allocations: 38.05 MB / 309.7 MB, free: 6.125 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005252/0.0005253, allocations: 15.12 kB / 376.6 MB, free: 3.109 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.2409, allocations: 56.34 MB / 432.9 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.005322/0.2463, allocations: 6.118 MB / 439 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002586/0.2489, allocations: 1.883 MB / 440.9 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000469/0.2494, allocations: 27.81 kB / 440.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005811/0.25, allocations: 218.8 kB / 441.2 MB, free: 10.53 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007075/0.2507, allocations: 307.1 kB / 441.5 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004531/0.2512, allocations: 187.6 kB / 441.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005095/0.2517, allocations: 0.5574 MB / 442.2 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004026/0.2521, allocations: 333.8 kB / 442.5 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004366/0.2526, allocations: 342.7 kB / 442.9 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004425/0.253, allocations: 326.8 kB / 443.2 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.949e-05/0.2531, allocations: 36 kB / 443.2 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.748e-05/0.2532, allocations: 36 kB / 443.3 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.2534, allocations: 211.5 kB / 443.5 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.2535, allocations: 169.3 kB / 443.6 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000492/0.254, allocations: 0.8025 MB / 444.4 MB, free: 7.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.254, allocations: 0 / 444.4 MB, free: 7.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.254, allocations: 0 / 444.4 MB, free: 7.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.226e-06/0.254, allocations: 0 / 444.4 MB, free: 7.25 MB / 318.1 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.001515/0.2556, allocations: 0.9159 MB / 445.3 MB, free: 6.285 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.2556, allocations: 15.95 kB / 445.4 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001068/0.2557, allocations: 106.5 kB / 445.5 MB, free: 6.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.2558, allocations: 75.06 kB / 445.5 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009439/0.2568, allocations: 0.6165 MB / 446.1 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000125/0.2569, allocations: 108.7 kB / 446.3 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.852e-05/0.257, allocations: 63.98 kB / 446.3 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.2581, allocations: 0.7421 MB / 447.1 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.909e-05/0.2582, allocations: 3.953 kB / 447.1 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.728e-05/0.2582, allocations: 28 kB / 447.1 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.754e-05/0.2583, allocations: 16 kB / 447.1 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009973/0.2593, allocations: 0.6284 MB / 447.7 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002677/0.262, allocations: 2.456 MB / 450.2 MB, free: 1.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008253/0.2628, allocations: 461 kB / 450.6 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/0.2628, allocations: 4.344 kB / 450.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003768/0.2632, allocations: 247.2 kB / 450.9 MB, free: 500 kB / 318.1 MB Notification: Performance of pre-optimization done (n=36): time 2.695e-06/0.2632, allocations: 0 / 450.9 MB, free: 500 kB / 318.1 MB Notification: Performance of matching and sorting (n=36): time 0.002927/0.2662, allocations: 0.8708 MB / 451.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.97e-05/0.2663, allocations: 140.5 kB / 451.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004922/0.2668, allocations: 401.9 kB / 452.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.551e-05/0.2668, allocations: 29.7 kB / 452.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002596/0.2671, allocations: 316.1 kB / 452.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.942e-05/0.2672, allocations: 118.3 kB / 452.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.293e-05/0.2672, allocations: 12 kB / 452.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.2674, allocations: 358.7 kB / 453.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002974/0.2677, allocations: 128.8 kB / 453.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000361/0.2681, allocations: 246 kB / 453.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/0.2684, allocations: 160.6 kB / 453.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.2684, allocations: 4 kB / 453.6 MB, free: 13.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001008/0.2695, allocations: 0.5073 MB / 454.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.2695, allocations: 8 kB / 454.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.2695, allocations: 4 kB / 454.1 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004792/0.27, allocations: 157 kB / 454.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000318/0.2703, allocations: 79.91 kB / 454.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003502/0.2738, allocations: 2.08 MB / 456.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003511/0.2742, allocations: 59.47 kB / 456.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.112e-05/0.2742, allocations: 23.92 kB / 456.5 MB, free: 10.55 MB / 334.1 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,chopper.modulator.gate,$PRE.chopper.modulator.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,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.0003721/0.2746, allocations: 245.7 kB / 456.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.682e-05/0.2747, allocations: 43.44 kB / 456.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001237/0.2759, allocations: 486.5 kB / 457.3 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.276, allocations: 4 kB / 457.3 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.276, allocations: 0 / 457.3 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.276, allocations: 3.984 kB / 457.3 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008927/0.2769, allocations: 0.6746 MB / 458 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.2769, allocations: 7.984 kB / 458 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002552/0.2772, allocations: 47.92 kB / 458 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004132/0.2776, allocations: 148.7 kB / 458.2 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.651e-05/0.2776, allocations: 8 kB / 458.2 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003187/0.2808, allocations: 2.084 MB / 460.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2808, allocations: 0 / 460.3 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.2824, allocations: 0.7306 MB / 461 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.2826, allocations: 148.5 kB / 461.1 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.578e-05/0.2827, allocations: 8 kB / 461.2 MB, free: 5.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.2829, allocations: 19.97 kB / 461.2 MB, free: 5.621 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.283, allocations: 31.95 kB / 461.2 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/0.283, allocations: 12.19 kB / 461.2 MB, free: 5.578 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003815/0.2834, allocations: 283.1 kB / 461.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2834, allocations: 3.938 kB / 461.5 MB, free: 5.301 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006535/0.2841, allocations: 159.5 kB / 461.7 MB, free: 5.145 MB / 334.1 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.gate,chopper.modulator.t0,chopper.modulator.t1,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.002129/0.2862, allocations: 1.475 MB / 463.1 MB, free: 3.617 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.2873, allocations: 0.5032 MB / 463.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2873, allocations: 0 / 463.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005395/0.2878, allocations: 343 kB / 464 MB, free: 2.754 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005919/0.2884, allocations: 141.8 kB / 464.1 MB, free: 2.621 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006345/0.2948, allocations: 5.548 MB / 469.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006061/0.2954, allocations: 0.9406 MB / 470.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000308/0.2957, allocations: 88.58 kB / 470.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002324/0.296, allocations: 199.4 kB / 470.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of SimCode: time 1.303e-06/0.296, allocations: 4 kB / 470.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02613/0.3221, allocations: 12.14 MB / 483 MB, free: 15.59 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002015/0.3224, allocations: 207.2 kB / 483.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.962/2.284, allocations: 0 / 483.2 MB, free: 15.35 MB / 366.1 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) Environment - environmentSimulation: