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.001156/0.001156, allocations: 106.7 kB / 16.62 MB, free: 6.812 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.001213/0.001213, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.239/1.239, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.197/0.197, allocations: 38.01 MB / 329.4 MB, free: 8.996 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 63.75 kB / 398.4 MB, free: 34.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1069, allocations: 58.06 MB / 456.4 MB, free: 8.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.009696/0.1167, allocations: 7.206 MB / 463.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003484/0.1202, allocations: 1.924 MB / 465.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007499/0.121, allocations: 39.75 kB / 465.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008329/0.1218, allocations: 198.8 kB / 465.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00112/0.123, allocations: 342.3 kB / 466.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005377/0.1235, allocations: 199.8 kB / 466.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001312/0.1249, allocations: 1.075 MB / 467.4 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006873/0.1256, allocations: 0.5022 MB / 467.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008254/0.1264, allocations: 474.2 kB / 468.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008675/0.1273, allocations: 0.4983 MB / 468.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001546/0.1275, allocations: 84 kB / 469 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002125/0.1277, allocations: 84 kB / 469 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003191/0.128, allocations: 283.3 kB / 469.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005304/0.1285, allocations: 414.3 kB / 469.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009324/0.1295, allocations: 1.024 MB / 470.7 MB, free: 9.945 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1295, allocations: 3.938 kB / 470.8 MB, free: 9.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1295, allocations: 0 / 470.8 MB, free: 9.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.327e-05/0.1295, allocations: 0 / 470.8 MB, free: 9.941 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.002206/0.1318, allocations: 1.013 MB / 471.8 MB, free: 8.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.1318, allocations: 11.89 kB / 471.8 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001551/0.132, allocations: 110.6 kB / 471.9 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.1321, allocations: 76.08 kB / 472 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001124/0.1333, allocations: 0.6136 MB / 472.6 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.1334, allocations: 117 kB / 472.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.1335, allocations: 64 kB / 472.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/0.1349, allocations: 0.7498 MB / 473.5 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.042e-05/0.135, allocations: 7.922 kB / 473.5 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.326e-05/0.135, allocations: 24 kB / 473.5 MB, free: 7.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/0.135, allocations: 20 kB / 473.6 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.1363, allocations: 0.6049 MB / 474.2 MB, free: 6.387 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003573/0.1399, allocations: 2.467 MB / 476.6 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008909/0.1408, allocations: 415.3 kB / 477 MB, free: 3.391 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004122/0.1412, allocations: 207.1 kB / 477.2 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.715e-05/0.1412, allocations: 8.281 kB / 477.2 MB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004358/0.1417, allocations: 239.3 kB / 477.5 MB, free: 2.914 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.855e-06/0.1417, allocations: 4 kB / 477.5 MB, free: 2.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.002981/0.1447, allocations: 0.8824 MB / 478.4 MB, free: 2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.874e-05/0.1448, allocations: 140.5 kB / 478.5 MB, free: 1.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000439/0.1452, allocations: 401.8 kB / 478.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.996e-05/0.1453, allocations: 33.7 kB / 478.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002262/0.1455, allocations: 316 kB / 479.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001052/0.1456, allocations: 122.3 kB / 479.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.1458, allocations: 82.03 kB / 479.4 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.1459, allocations: 354.8 kB / 479.8 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003072/0.1462, allocations: 132.8 kB / 479.9 MB, free: 396 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003484/0.1466, allocations: 250 kB / 480.1 MB, free: 92 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001424/0.148, allocations: 0.6555 MB / 480.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.148, allocations: 0 / 480.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001011/0.149, allocations: 0.5329 MB / 481.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.1491, allocations: 10.34 kB / 481.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1491, allocations: 7.938 kB / 481.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004233/0.1495, allocations: 144.8 kB / 481.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/0.1498, allocations: 75.84 kB / 481.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003315/0.1531, allocations: 2.271 MB / 483.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.1535, allocations: 51.42 kB / 483.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.877e-05/0.1535, allocations: 16 kB / 483.9 MB, free: 12.13 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.0003242/0.1539, allocations: 251.8 kB / 484.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.888e-05/0.1539, allocations: 47.45 kB / 484.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00127/0.1552, allocations: 486.5 kB / 484.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.1552, allocations: 4 kB / 484.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1552, allocations: 4 kB / 484.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.1553, allocations: 0 / 484.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007882/0.1561, allocations: 0.6823 MB / 485.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.1561, allocations: 0 / 485.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.1563, allocations: 43.92 kB / 485.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004182/0.1567, allocations: 144.8 kB / 485.5 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.058e-05/0.1568, allocations: 12 kB / 485.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00311/0.1599, allocations: 2.248 MB / 487.8 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.1599, allocations: 0 / 487.8 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.1615, allocations: 0.6843 MB / 488.5 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001828/0.1617, allocations: 156.4 kB / 488.6 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.467e-05/0.1618, allocations: 8 kB / 488.7 MB, free: 7.117 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002501/0.162, allocations: 27.92 kB / 488.7 MB, free: 7.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.1621, allocations: 35.89 kB / 488.7 MB, free: 7.055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.873e-05/0.1622, allocations: 15.98 kB / 488.7 MB, free: 7.039 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003293/0.1625, allocations: 279.2 kB / 489 MB, free: 6.766 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1625, allocations: 0 / 489 MB, free: 6.766 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006755/0.1632, allocations: 159.5 kB / 489.2 MB, free: 6.609 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.001849/0.165, allocations: 1.251 MB / 490.4 MB, free: 5.312 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001115/0.1662, allocations: 0.5411 MB / 491 MB, free: 4.758 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.1662, allocations: 0 / 491 MB, free: 4.758 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005699/0.1668, allocations: 343.4 kB / 491.3 MB, free: 4.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007126/0.1675, allocations: 159.5 kB / 491.4 MB, free: 4.258 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007395/0.1749, allocations: 4.821 MB / 496.3 MB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005334/0.1755, allocations: 0.9328 MB / 497.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003019/0.1758, allocations: 84.64 kB / 497.3 MB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/0.176, allocations: 191.4 kB / 497.5 MB, free: 14 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.176, allocations: 4 kB / 497.5 MB, free: 14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0316/0.2077, allocations: 12.77 MB / 0.4983 GB, free: 1.465 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002202/0.2079, allocations: 228.8 kB / 0.4985 GB, free: 1.203 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.113/2.321, allocations: 0 / 0.4985 GB, free: 1.203 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 & /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)