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.001162/0.001162, allocations: 108.6 kB / 16.92 MB, free: 6.145 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.00112/0.00112, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.313/1.313, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1822/0.1822, allocations: 38.03 MB / 329.7 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001379/0.001379, allocations: 61.11 kB / 398.9 MB, free: 33.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09222/0.09361, allocations: 58.06 MB / 457 MB, free: 7.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.008327/0.102, allocations: 6.581 MB / 463.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002861/0.1049, allocations: 1.749 MB / 465.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004707/0.1054, allocations: 23.88 kB / 465.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000744/0.1061, allocations: 230.3 kB / 465.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009432/0.1071, allocations: 385.8 kB / 465.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004888/0.1076, allocations: 231.6 kB / 466.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001128/0.1087, allocations: 1.059 MB / 467.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006543/0.1094, allocations: 0.5139 MB / 467.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007181/0.1101, allocations: 470.2 kB / 468.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007522/0.1109, allocations: 486.3 kB / 468.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001577/0.1111, allocations: 88 kB / 468.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002137/0.1113, allocations: 88 kB / 468.8 MB, free: 12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002759/0.1116, allocations: 279.2 kB / 469.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005168/0.1121, allocations: 402.3 kB / 469.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009/0.113, allocations: 1.028 MB / 470.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.113, allocations: 0 / 470.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.113, allocations: 0 / 470.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.468e-05/0.1131, allocations: 0 / 470.5 MB, free: 10.3 MB / 350.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.002009/0.1151, allocations: 1.021 MB / 471.5 MB, free: 9.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.1151, allocations: 15.89 kB / 471.6 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001271/0.1153, allocations: 106.7 kB / 471.7 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000135/0.1154, allocations: 72.09 kB / 471.7 MB, free: 9.027 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.1165, allocations: 0.6213 MB / 472.4 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001321/0.1166, allocations: 125 kB / 472.5 MB, free: 8.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.246e-05/0.1167, allocations: 60 kB / 472.5 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.118, allocations: 0.7421 MB / 473.3 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.118, allocations: 0 / 473.3 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.823e-05/0.1181, allocations: 24 kB / 473.3 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.1181, allocations: 16 kB / 473.3 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001188/0.1193, allocations: 0.6011 MB / 473.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00338/0.1227, allocations: 2.467 MB / 476.4 MB, free: 4.191 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008866/0.1236, allocations: 416.9 kB / 476.8 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004129/0.124, allocations: 207.1 kB / 477 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.124, allocations: 4.438 kB / 477 MB, free: 3.543 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004252/0.1245, allocations: 247.2 kB / 477.2 MB, free: 3.277 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 1.914e-06/0.1245, allocations: 4 kB / 477.2 MB, free: 3.273 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.003183/0.1277, allocations: 0.8783 MB / 478.1 MB, free: 2.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.881e-05/0.1277, allocations: 140.5 kB / 478.3 MB, free: 2.199 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004187/0.1282, allocations: 401.8 kB / 478.6 MB, free: 1.797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.1282, allocations: 33.7 kB / 478.7 MB, free: 1.758 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/0.1284, allocations: 312.1 kB / 479 MB, free: 1.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.787e-05/0.1285, allocations: 122.3 kB / 479.1 MB, free: 1.324 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001284/0.1287, allocations: 86.09 kB / 479.2 MB, free: 1.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.1288, allocations: 354.8 kB / 479.5 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003413/0.1292, allocations: 128.8 kB / 479.7 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003808/0.1296, allocations: 249.9 kB / 479.9 MB, free: 468 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001576/0.1312, allocations: 0.6633 MB / 480.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.1312, allocations: 4 kB / 480.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001114/0.1323, allocations: 0.521 MB / 481.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.1323, allocations: 8 kB / 481.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.181e-05/0.1324, allocations: 4 kB / 481.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004758/0.1328, allocations: 144.9 kB / 481.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002988/0.1332, allocations: 79.84 kB / 481.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003499/0.1367, allocations: 2.263 MB / 483.6 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003369/0.137, allocations: 55.56 kB / 483.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.155e-05/0.1371, allocations: 19.94 kB / 483.7 MB, free: 12.5 MB / 366.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.0002985/0.1374, allocations: 246.6 kB / 483.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.019e-05/0.1374, allocations: 47.38 kB / 483.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001261/0.1387, allocations: 486.5 kB / 484.4 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.1387, allocations: 8 kB / 484.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.1387, allocations: 4 kB / 484.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.1387, allocations: 3.984 kB / 484.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007512/0.1395, allocations: 0.6784 MB / 485.1 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.1395, allocations: 0 / 485.1 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002336/0.1398, allocations: 43.92 kB / 485.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004189/0.1402, allocations: 148.8 kB / 485.3 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.696e-05/0.1402, allocations: 8 kB / 485.3 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003222/0.1435, allocations: 2.244 MB / 487.6 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.1435, allocations: 0 / 487.6 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.1451, allocations: 0.6882 MB / 488.2 MB, free: 7.668 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001709/0.1453, allocations: 148.5 kB / 488.4 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.855e-05/0.1454, allocations: 15.98 kB / 488.4 MB, free: 7.488 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002444/0.1456, allocations: 28.05 kB / 488.4 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.1457, allocations: 35.89 kB / 488.5 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.1458, allocations: 19.94 kB / 488.5 MB, free: 7.406 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003043/0.1461, allocations: 283.1 kB / 488.8 MB, free: 7.133 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1461, allocations: 0 / 488.8 MB, free: 7.133 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000594/0.1467, allocations: 163.4 kB / 488.9 MB, free: 6.973 MB / 366.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.001896/0.1486, allocations: 1.247 MB / 490.2 MB, free: 5.684 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001208/0.1498, allocations: 0.534 MB / 490.7 MB, free: 5.137 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1498, allocations: 256 / 490.7 MB, free: 5.137 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000566/0.1504, allocations: 338.4 kB / 491 MB, free: 4.793 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006924/0.1511, allocations: 160.2 kB / 491.2 MB, free: 4.645 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007108/0.1582, allocations: 4.624 MB / 495.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005396/0.1588, allocations: 0.9328 MB / 496.8 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003092/0.1591, allocations: 80.64 kB / 496.8 MB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002439/0.1593, allocations: 191.4 kB / 497 MB, free: 14.59 MB / 382.1 MB Notification: Performance of SimCode: time 9.11e-07/0.1594, allocations: 0 / 497 MB, free: 14.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03831/0.1977, allocations: 13.02 MB / 0.4981 GB, free: 1.754 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.43, allocations: 14.59 kB / 0.4981 GB, free: 1.746 MB / 382.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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)