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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.00129/0.00129, allocations: 111.7 kB / 17.06 MB, free: 6.016 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.001302/0.001302, allocations: 189.4 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1774/0.1774, allocations: 38.04 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001975/0.001975, allocations: 63.91 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3104, allocations: 58.06 MB / 0.5036 GB, free: 7.547 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.006636/0.3171, allocations: 6.586 MB / 0.51 GB, free: 2.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002337/0.3195, allocations: 1.751 MB / 0.5118 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003225/0.3198, allocations: 24.25 kB / 0.5118 GB, free: 1.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000576/0.3204, allocations: 220 kB / 0.512 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006835/0.3211, allocations: 386.4 kB / 0.5124 GB, free: 1.348 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004196/0.3215, allocations: 231.8 kB / 0.5126 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009197/0.3225, allocations: 1.075 MB / 0.5136 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005592/0.323, allocations: 0.4997 MB / 0.5141 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005771/0.3236, allocations: 469.6 kB / 0.5146 GB, free: 280 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006353/0.3243, allocations: 485.9 kB / 0.515 GB, free: 72 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.3244, allocations: 84.72 kB / 0.5151 GB, free: 72 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.3246, allocations: 85.25 kB / 0.5152 GB, free: 72 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003161/0.3249, allocations: 281.3 kB / 0.5155 GB, free: 15.94 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004467/0.3253, allocations: 405.3 kB / 0.5158 GB, free: 15.69 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001258/0.3266, allocations: 1.04 MB / 0.5169 GB, free: 15.3 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3266, allocations: 1.203 kB / 0.5169 GB, free: 15.3 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3266, allocations: 0 / 0.5169 GB, free: 15.3 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.3266, allocations: 0.5 kB / 0.5169 GB, free: 15.3 MB / 398.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.002168/0.3288, allocations: 1.036 MB / 0.5179 GB, free: 14.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.3289, allocations: 12.83 kB / 0.5179 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001936/0.3291, allocations: 110.6 kB / 0.518 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.3292, allocations: 79.03 kB / 0.5181 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/0.3304, allocations: 0.6605 MB / 0.5187 GB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001672/0.3306, allocations: 117.7 kB / 0.5188 GB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.3307, allocations: 58.97 kB / 0.5189 GB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.332, allocations: 0.7461 MB / 0.5196 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.3321, allocations: 5.5 kB / 0.5196 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.247e-05/0.3321, allocations: 25.69 kB / 0.5196 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.3322, allocations: 14.69 kB / 0.5196 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.3334, allocations: 0.6012 MB / 0.5202 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003515/0.3369, allocations: 2.468 MB / 0.5226 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000903/0.3378, allocations: 415.1 kB / 0.523 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004305/0.3383, allocations: 211.8 kB / 0.5232 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.435e-05/0.3383, allocations: 11.12 kB / 0.5233 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004615/0.3388, allocations: 241.6 kB / 0.5235 GB, free: 11.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=36): time 2.154e-06/0.3388, allocations: 0 / 0.5235 GB, free: 11.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=36): time 0.003258/0.3421, allocations: 0.878 MB / 0.5243 GB, free: 10.89 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.3422, allocations: 134.8 kB / 0.5245 GB, free: 10.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005499/0.3427, allocations: 399.9 kB / 0.5249 GB, free: 10.54 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.095e-05/0.3428, allocations: 33.02 kB / 0.5249 GB, free: 10.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002914/0.3431, allocations: 324.7 kB / 0.5252 GB, free: 10.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.3432, allocations: 130 kB / 0.5253 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.3434, allocations: 80.31 kB / 0.5254 GB, free: 10.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002293/0.3436, allocations: 355.7 kB / 0.5257 GB, free: 9.762 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003351/0.344, allocations: 133.5 kB / 0.5259 GB, free: 9.715 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004751/0.3444, allocations: 245.8 kB / 0.5261 GB, free: 9.527 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001611/0.3461, allocations: 0.6683 MB / 0.5267 GB, free: 9.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3461, allocations: 1.281 kB / 0.5267 GB, free: 9.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001093/0.3472, allocations: 0.5193 MB / 0.5273 GB, free: 8.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.3472, allocations: 7.234 kB / 0.5273 GB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3472, allocations: 3.688 kB / 0.5273 GB, free: 8.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004705/0.3477, allocations: 154.6 kB / 0.5274 GB, free: 8.875 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002872/0.348, allocations: 72.28 kB / 0.5275 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003917/0.3519, allocations: 2.264 MB / 0.5297 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004112/0.3524, allocations: 57.38 kB / 0.5297 GB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.316e-05/0.3524, allocations: 15.03 kB / 0.5298 GB, free: 6.953 MB / 398.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,$PRE.chopper.modulator.t1,$PRE.chopper.modulator.t0,chopper.chopper.diode.on,chopper.modulator.t1,chopper.modulator.t0,chopper.modulator.gate) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004208/0.3528, allocations: 247.5 kB / 0.53 GB, free: 6.766 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.612e-05/0.3529, allocations: 50.84 kB / 0.53 GB, free: 6.738 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001348/0.3543, allocations: 482.5 kB / 0.5305 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.3543, allocations: 4.688 kB / 0.5305 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3543, allocations: 2 kB / 0.5305 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.3543, allocations: 2.625 kB / 0.5305 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009013/0.3552, allocations: 0.6818 MB / 0.5312 GB, free: 6.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3552, allocations: 1.031 kB / 0.5312 GB, free: 6.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.3555, allocations: 46.97 kB / 0.5312 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004179/0.3559, allocations: 153.5 kB / 0.5314 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.18e-05/0.3559, allocations: 9.359 kB / 0.5314 GB, free: 6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003424/0.3594, allocations: 2.254 MB / 0.5336 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3594, allocations: 1.375 kB / 0.5336 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001592/0.361, allocations: 0.6884 MB / 0.5343 GB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001908/0.3612, allocations: 152.9 kB / 0.5344 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.827e-05/0.3612, allocations: 11.66 kB / 0.5344 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002326/0.3615, allocations: 22.84 kB / 0.5344 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.3616, allocations: 35.98 kB / 0.5345 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.3616, allocations: 8 kB / 0.5345 GB, free: 3.426 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003165/0.3619, allocations: 282.1 kB / 0.5347 GB, free: 3.254 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.362, allocations: 0 / 0.5347 GB, free: 3.254 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005954/0.3626, allocations: 163.9 kB / 0.5349 GB, free: 3.215 MB / 398.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002001/0.3646, allocations: 1.26 MB / 0.5361 GB, free: 2.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.3656, allocations: 0.4963 MB / 0.5366 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3656, allocations: 256 / 0.5366 GB, free: 1.941 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005636/0.3662, allocations: 343.4 kB / 0.5369 GB, free: 1.707 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006754/0.3669, allocations: 163.4 kB / 0.5371 GB, free: 1.621 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006912/0.3738, allocations: 4.579 MB / 0.5416 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006095/0.3744, allocations: 0.9278 MB / 0.5425 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002977/0.3747, allocations: 89.12 kB / 0.5426 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002546/0.375, allocations: 194.2 kB / 0.5428 GB, free: 13.43 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.375, allocations: 0 / 0.5428 GB, free: 13.43 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04628/0.4213, allocations: 13.26 MB / 0.5557 GB, free: 2.348 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/12.73, allocations: 14.88 kB / 0.5557 GB, free: 2.336 MB / 414.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/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)