Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001517/0.001517, allocations: 177.8 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.586/1.586, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008176/0.0008177, allocations: 98.22 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2799/0.2799, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003504/0.0003504, allocations: 8 kB / 422.7 MB, free: 26.4 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1034, allocations: 56.34 MB / 479.1 MB, free: 2.012 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.006804/0.1103, allocations: 6.398 MB / 485.5 MB, free: 11.58 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002869/0.1132, allocations: 1.871 MB / 487.3 MB, free: 9.703 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003781/0.1136, allocations: 35.75 kB / 487.4 MB, free: 9.668 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006515/0.1142, allocations: 210.6 kB / 487.6 MB, free: 9.461 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007725/0.115, allocations: 374 kB / 487.9 MB, free: 9.094 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004752/0.1155, allocations: 187.7 kB / 488.1 MB, free: 8.91 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001055/0.1166, allocations: 1.163 MB / 489.3 MB, free: 7.746 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004331/0.117, allocations: 333.8 kB / 489.6 MB, free: 7.414 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004843/0.1175, allocations: 370.3 kB / 490 MB, free: 7.051 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006225/0.1181, allocations: 434.5 kB / 490.4 MB, free: 6.625 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.999e-05/0.1182, allocations: 40 kB / 490.4 MB, free: 6.586 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.1183, allocations: 36 kB / 490.5 MB, free: 6.551 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002099/0.1186, allocations: 227.3 kB / 490.7 MB, free: 6.328 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.1187, allocations: 165.4 kB / 490.9 MB, free: 6.16 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000666/0.1194, allocations: 0.818 MB / 491.7 MB, free: 5.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.349e-05/0.1194, allocations: 3.984 kB / 491.7 MB, free: 5.336 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1194, allocations: 0 / 491.7 MB, free: 5.336 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.083e-05/0.1194, allocations: 0 / 491.7 MB, free: 5.336 MB / 330.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.0018/0.1212, allocations: 0.9119 MB / 492.6 MB, free: 4.375 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.1213, allocations: 8.031 kB / 492.6 MB, free: 4.367 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.1214, allocations: 75.16 kB / 492.7 MB, free: 4.293 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001079/0.1225, allocations: 0.6126 MB / 493.3 MB, free: 3.633 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001426/0.1227, allocations: 116.6 kB / 493.4 MB, free: 3.508 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.356e-05/0.1228, allocations: 56 kB / 493.5 MB, free: 3.453 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001237/0.124, allocations: 0.7616 MB / 494.2 MB, free: 2.66 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.124, allocations: 0 / 494.2 MB, free: 2.66 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.216e-05/0.1241, allocations: 23.95 kB / 494.2 MB, free: 2.637 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.309e-05/0.1241, allocations: 16 kB / 494.3 MB, free: 2.621 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.1254, allocations: 0.6245 MB / 494.9 MB, free: 1.996 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003336/0.1287, allocations: 2.476 MB / 497.4 MB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009079/0.1296, allocations: 422 kB / 497.8 MB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004096/0.1301, allocations: 199.1 kB / 498 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.855e-05/0.1301, allocations: 12.22 kB / 498 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004417/0.1305, allocations: 239.2 kB / 498.2 MB, free: 14.51 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 2.244e-06/0.1306, allocations: 7.938 kB / 498.2 MB, free: 14.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.003147/0.1337, allocations: 0.8736 MB / 499.1 MB, free: 13.6 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.457e-05/0.1338, allocations: 136.5 kB / 499.2 MB, free: 13.44 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004473/0.1343, allocations: 397.9 kB / 499.6 MB, free: 13.04 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.1343, allocations: 33.7 kB / 499.6 MB, free: 13 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002331/0.1346, allocations: 320 kB / 500 MB, free: 12.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.469e-05/0.1347, allocations: 114.4 kB / 0.4883 GB, free: 12.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.971e-05/0.1347, allocations: 12 kB / 0.4884 GB, free: 12.55 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1348, allocations: 350.8 kB / 0.4887 GB, free: 12.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002966/0.1351, allocations: 140.7 kB / 0.4888 GB, free: 12.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003476/0.1355, allocations: 242 kB / 0.4891 GB, free: 11.78 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003367/0.1358, allocations: 164.6 kB / 0.4892 GB, free: 11.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1358, allocations: 3.938 kB / 0.4892 GB, free: 11.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001019/0.1369, allocations: 0.5189 MB / 0.4897 GB, free: 11.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.1369, allocations: 8 kB / 0.4897 GB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.1369, allocations: 4 kB / 0.4897 GB, free: 11.08 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004908/0.1374, allocations: 149.1 kB / 0.4899 GB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003116/0.1377, allocations: 75.84 kB / 0.49 GB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003156/0.1409, allocations: 2.041 MB / 0.4919 GB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003663/0.1413, allocations: 59.47 kB / 0.492 GB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.346e-05/0.1413, allocations: 16 kB / 0.492 GB, free: 8.609 MB / 346.7 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.0004068/0.1417, allocations: 257.6 kB / 0.4923 GB, free: 8.348 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.634e-05/0.1418, allocations: 43.44 kB / 0.4923 GB, free: 8.305 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00126/0.1431, allocations: 482.6 kB / 0.4928 GB, free: 7.824 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1431, allocations: 4 kB / 0.4928 GB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.1431, allocations: 0 / 0.4928 GB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.1431, allocations: 0 / 0.4928 GB, free: 7.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008183/0.1439, allocations: 0.6861 MB / 0.4934 GB, free: 7.074 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.144, allocations: 0 / 0.4934 GB, free: 7.074 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000245/0.1442, allocations: 47.97 kB / 0.4935 GB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00041/0.1446, allocations: 144.7 kB / 0.4936 GB, free: 6.883 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.135e-05/0.1447, allocations: 8 kB / 0.4936 GB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002987/0.1477, allocations: 2.026 MB / 0.4956 GB, free: 4.711 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.1477, allocations: 7.969 kB / 0.4956 GB, free: 4.703 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.1494, allocations: 0.6983 MB / 0.4963 GB, free: 3.973 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002638/0.1497, allocations: 148.5 kB / 0.4964 GB, free: 3.809 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.976e-05/0.1498, allocations: 4 kB / 0.4964 GB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002642/0.15, allocations: 23.97 kB / 0.4965 GB, free: 3.781 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.1501, allocations: 43.91 kB / 0.4965 GB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-05/0.1502, allocations: 8 kB / 0.4965 GB, free: 3.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003545/0.1505, allocations: 279.1 kB / 0.4968 GB, free: 3.461 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.595e-06/0.1505, allocations: 0 / 0.4968 GB, free: 3.461 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006497/0.1512, allocations: 163.5 kB / 0.4969 GB, free: 3.301 MB / 346.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.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.0001356/0.1513, allocations: 107.2 kB / 0.497 GB, free: 3.188 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.1524, allocations: 0.5032 MB / 0.4975 GB, free: 2.672 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.1524, allocations: 0.9375 kB / 0.4975 GB, free: 2.672 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005513/0.153, allocations: 330.4 kB / 0.4978 GB, free: 2.336 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007355/0.1537, allocations: 145.7 kB / 0.498 GB, free: 2.195 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002427/0.1561, allocations: 1.575 MB / 0.4995 GB, free: 0.5781 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005458/0.1567, allocations: 0.9327 MB / 0.5004 GB, free: 15.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.962e-05/0.1568, allocations: 43.36 kB / 0.5005 GB, free: 15.57 MB / 362.7 MB Notification: Performance of SimCode: time 3.2e-07/0.1568, allocations: 0 / 0.5005 GB, free: 15.57 MB / 362.7 MB Notification: Performance of Templates: time 0.01476/0.1716, allocations: 10.22 MB / 0.5105 GB, free: 5.352 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)