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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001587/0.001587, allocations: 183.8 kB / 15.77 MB, free: 5.988 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.948/1.948, allocations: 205.4 MB / 221.9 MB, free: 13.8 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.001112/0.001112, allocations: 90.81 kB / 270.2 MB, free: 13.33 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2569/0.2569, allocations: 38.06 MB / 356.6 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004637/0.0004637, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1055, allocations: 56.33 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Chopper): time 0.009958/0.1155, allocations: 6.131 MB / 485.3 MB, free: 11.78 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00445/0.12, allocations: 1.88 MB / 487.1 MB, free: 9.891 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000613/0.1207, allocations: 35.75 kB / 487.2 MB, free: 9.855 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008471/0.1216, allocations: 206.9 kB / 487.4 MB, free: 9.652 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001138/0.1227, allocations: 315 kB / 487.7 MB, free: 9.344 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007344/0.1235, allocations: 191.7 kB / 487.9 MB, free: 9.156 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001119/0.1246, allocations: 0.5496 MB / 488.4 MB, free: 8.605 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007064/0.1253, allocations: 337.8 kB / 488.8 MB, free: 8.27 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008349/0.1262, allocations: 334.8 kB / 489.1 MB, free: 7.941 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006979/0.1269, allocations: 326.8 kB / 489.4 MB, free: 7.621 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.127, allocations: 40 kB / 489.4 MB, free: 7.582 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001579/0.1272, allocations: 36 kB / 489.5 MB, free: 7.547 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003156/0.1275, allocations: 207.4 kB / 489.7 MB, free: 7.344 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002104/0.1277, allocations: 161.4 kB / 489.8 MB, free: 7.18 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00115/0.1289, allocations: 0.8181 MB / 490.7 MB, free: 6.359 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.1289, allocations: 0 / 490.7 MB, free: 6.359 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.1289, allocations: 0 / 490.7 MB, free: 6.359 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.1289, allocations: 0 / 490.7 MB, free: 6.359 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.002594/0.1316, allocations: 0.9196 MB / 491.6 MB, free: 5.391 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.1316, allocations: 12.03 kB / 491.6 MB, free: 5.379 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001865/0.1318, allocations: 110.5 kB / 491.7 MB, free: 5.262 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001825/0.132, allocations: 71.16 kB / 491.8 MB, free: 5.191 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001668/0.1337, allocations: 0.6087 MB / 492.4 MB, free: 4.535 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002156/0.1339, allocations: 116.7 kB / 492.5 MB, free: 4.41 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001473/0.1341, allocations: 56 kB / 492.5 MB, free: 4.355 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00206/0.1361, allocations: 0.7499 MB / 493.3 MB, free: 3.574 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.616e-05/0.1362, allocations: 7.953 kB / 493.3 MB, free: 3.566 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.008e-05/0.1363, allocations: 24 kB / 493.3 MB, free: 3.543 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.203e-05/0.1363, allocations: 16 kB / 493.3 MB, free: 3.527 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00211/0.1384, allocations: 0.6284 MB / 494 MB, free: 2.898 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005027/0.1435, allocations: 2.464 MB / 496.4 MB, free: 344 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001616/0.1451, allocations: 441.2 kB / 496.9 MB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.582e-05/0.1452, allocations: 12.27 kB / 496.9 MB, free: 15.87 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006824/0.1459, allocations: 255 kB / 497.1 MB, free: 15.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 2.555e-06/0.1459, allocations: 0 / 497.1 MB, free: 15.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.005411/0.1513, allocations: 0.8592 MB / 498 MB, free: 14.71 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.196e-05/0.1514, allocations: 144.5 kB / 498.1 MB, free: 14.54 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006535/0.1521, allocations: 397.9 kB / 498.5 MB, free: 14.14 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.607e-05/0.1522, allocations: 33.7 kB / 498.5 MB, free: 14.1 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003143/0.1525, allocations: 354.5 kB / 498.9 MB, free: 13.75 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/0.1526, allocations: 118.4 kB / 499 MB, free: 13.63 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.732e-05/0.1527, allocations: 8 kB / 499 MB, free: 13.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1529, allocations: 334.8 kB / 499.3 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005174/0.1534, allocations: 128.8 kB / 499.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006038/0.154, allocations: 245.9 kB / 499.7 MB, free: 12.87 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005836/0.1546, allocations: 164.6 kB / 499.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/0.1546, allocations: 0 / 499.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00172/0.1564, allocations: 0.492 MB / 0.4886 GB, free: 12.21 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.1564, allocations: 4 kB / 0.4886 GB, free: 12.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.1564, allocations: 7.984 kB / 0.4886 GB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000791/0.1572, allocations: 152.9 kB / 0.4888 GB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005658/0.1578, allocations: 75.91 kB / 0.4889 GB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005396/0.1632, allocations: 2.088 MB / 0.4909 GB, free: 9.754 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005349/0.1638, allocations: 51.53 kB / 0.4909 GB, free: 9.703 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.244e-05/0.1638, allocations: 23.98 kB / 0.491 GB, free: 9.68 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.0004805/0.1643, allocations: 245.7 kB / 0.4912 GB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.06e-05/0.1644, allocations: 43.44 kB / 0.4912 GB, free: 9.387 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002146/0.1666, allocations: 478.6 kB / 0.4917 GB, free: 8.91 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.1666, allocations: 4 kB / 0.4917 GB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.1666, allocations: 0 / 0.4917 GB, free: 8.906 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.1666, allocations: 3.984 kB / 0.4917 GB, free: 8.902 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.1678, allocations: 0.6861 MB / 0.4924 GB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.1678, allocations: 4 kB / 0.4924 GB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004806/0.1683, allocations: 47.98 kB / 0.4924 GB, free: 8.105 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007452/0.169, allocations: 152.6 kB / 0.4926 GB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.885e-05/0.1691, allocations: 8 kB / 0.4926 GB, free: 7.945 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00521/0.1743, allocations: 2.076 MB / 0.4946 GB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1743, allocations: 0 / 0.4946 GB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002845/0.1772, allocations: 0.7306 MB / 0.4953 GB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002906/0.1775, allocations: 148.5 kB / 0.4955 GB, free: 4.785 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.15e-05/0.1776, allocations: 8 kB / 0.4955 GB, free: 4.777 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004158/0.1781, allocations: 23.97 kB / 0.4955 GB, free: 4.754 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.1782, allocations: 31.95 kB / 0.4955 GB, free: 4.723 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.4e-05/0.1783, allocations: 11.98 kB / 0.4955 GB, free: 4.711 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004837/0.1788, allocations: 279.2 kB / 0.4958 GB, free: 4.441 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1788, allocations: 0 / 0.4958 GB, free: 4.441 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008493/0.1797, allocations: 163.4 kB / 0.496 GB, free: 4.281 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.003286/0.183, allocations: 1.487 MB / 0.4974 GB, free: 2.742 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.1847, allocations: 0.4955 MB / 0.4979 GB, free: 2.234 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.1847, allocations: 0 / 0.4979 GB, free: 2.234 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009139/0.1856, allocations: 343 kB / 0.4982 GB, free: 1.887 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.1866, allocations: 141.7 kB / 0.4984 GB, free: 1.75 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009569/0.1962, allocations: 5.594 MB / 0.5038 GB, free: 12.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007035/0.197, allocations: 0.9406 MB / 0.5047 GB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004268/0.1974, allocations: 195.4 kB / 0.5049 GB, free: 10.86 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1974, allocations: 0 / 0.5049 GB, free: 10.86 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.007/3.205, allocations: 12.85 MB / 0.5175 GB, free: 51.73 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_Chopper.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.pipe 2>&1)