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.001485/0.001485, allocations: 186.1 kB / 13.19 MB, free: 2.125 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.937/1.937, allocations: 205.2 MB / 218.9 MB, free: 9.141 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.001077/0.001076, allocations: 89.91 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2715/0.2715, allocations: 37.96 MB / 353.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.433e-05/3.447e-05, allocations: 8 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1011, allocations: 56.32 MB / 473.2 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4712/0.5724, allocations: 98.14 MB / 0.558 GB, free: 5.516 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003345/0.5728, allocations: 91.94 kB / 0.5581 GB, free: 5.426 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07051/0.6433, allocations: 16.13 MB / 0.5738 GB, free: 5.113 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.288e-06/0.6434, allocations: 0 / 0.5738 GB, free: 5.113 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.083e-05/0.6435, allocations: 15.94 kB / 0.5738 GB, free: 5.098 MB / 410.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.002741/0.6462, allocations: 0.8557 MB / 0.5747 GB, free: 4.191 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.6463, allocations: 12.03 kB / 0.5747 GB, free: 4.18 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002966/0.6466, allocations: 106.5 kB / 0.5748 GB, free: 4.066 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002538/0.6469, allocations: 79.16 kB / 0.5748 GB, free: 3.988 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004902/0.6518, allocations: 1.156 MB / 0.576 GB, free: 2.797 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002182/0.6521, allocations: 112.7 kB / 0.5761 GB, free: 2.676 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/0.6523, allocations: 63.92 kB / 0.5761 GB, free: 2.613 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001924/0.6542, allocations: 0.7177 MB / 0.5768 GB, free: 1.852 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.93e-05/0.6543, allocations: 4 kB / 0.5768 GB, free: 1.848 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.891e-05/0.6544, allocations: 24 kB / 0.5769 GB, free: 1.824 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.597e-05/0.6544, allocations: 16 kB / 0.5769 GB, free: 1.809 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001574/0.656, allocations: 0.5271 MB / 0.5774 GB, free: 1.277 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005802/0.6618, allocations: 2.499 MB / 0.5798 GB, free: 14.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.6633, allocations: 424.5 kB / 0.5802 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005324/0.6638, allocations: 201.8 kB / 0.5804 GB, free: 14.03 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.864e-05/0.6639, allocations: 4.281 kB / 0.5804 GB, free: 14.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005196/0.6644, allocations: 223.4 kB / 0.5807 GB, free: 13.78 MB / 426.7 MB Notification: Performance of pre-optimization done (n=36): time 3.176e-06/0.6644, allocations: 3.938 kB / 0.5807 GB, free: 13.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=36): time 0.001799/0.6663, allocations: 439.3 kB / 0.5811 GB, free: 13.34 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.778e-05/0.6664, allocations: 144.5 kB / 0.5812 GB, free: 13.17 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006702/0.6671, allocations: 351.1 kB / 0.5816 GB, free: 12.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.839e-05/0.6671, allocations: 29.7 kB / 0.5816 GB, free: 12.79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003425/0.6675, allocations: 358.5 kB / 0.5819 GB, free: 12.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.6677, allocations: 122.3 kB / 0.582 GB, free: 12.31 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.273e-05/0.6677, allocations: 8 kB / 0.582 GB, free: 12.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.6679, allocations: 330.9 kB / 0.5824 GB, free: 11.97 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003595/0.6682, allocations: 112.9 kB / 0.5825 GB, free: 11.86 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004447/0.6687, allocations: 234 kB / 0.5827 GB, free: 11.59 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004334/0.6691, allocations: 148.8 kB / 0.5828 GB, free: 11.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.6692, allocations: 0 / 0.5828 GB, free: 11.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001817/0.671, allocations: 0.493 MB / 0.5833 GB, free: 10.94 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.671, allocations: 4 kB / 0.5833 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.6711, allocations: 4.312 kB / 0.5833 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004868/0.6716, allocations: 124.8 kB / 0.5834 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006204/0.6722, allocations: 91.77 kB / 0.5835 GB, free: 10.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003685/0.6759, allocations: 1.939 MB / 0.5854 GB, free: 8.641 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006503/0.6766, allocations: 55.52 kB / 0.5855 GB, free: 8.586 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.798e-05/0.6767, allocations: 16 kB / 0.5855 GB, free: 8.57 MB / 426.7 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t1:DISCRETE(unit = "s" fixed = false protected = true ) type: Real chopper.modulator.t0:DISCRETE(unit = "s" fixed = false 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.t0,chopper.modulator.t0,$PRE.chopper.modulator.t1,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on) * Number of discrete 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.0002138/0.6769, allocations: 132.8 kB / 0.5856 GB, free: 8.434 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.677, allocations: 55.42 kB / 0.5857 GB, free: 8.379 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001753/0.6788, allocations: 438.8 kB / 0.5861 GB, free: 7.941 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.6788, allocations: 7.984 kB / 0.5861 GB, free: 7.934 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.6788, allocations: 0 / 0.5861 GB, free: 7.934 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.054e-05/0.6788, allocations: 11.95 kB / 0.5861 GB, free: 7.922 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00131/0.6802, allocations: 0.6748 MB / 0.5868 GB, free: 7.188 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.6802, allocations: 0 / 0.5868 GB, free: 7.188 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005229/0.6807, allocations: 59.84 kB / 0.5868 GB, free: 7.129 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004153/0.6811, allocations: 116.8 kB / 0.5869 GB, free: 7.012 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/0.6812, allocations: 15.95 kB / 0.587 GB, free: 6.996 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003414/0.6846, allocations: 1.921 MB / 0.5888 GB, free: 4.941 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/0.6847, allocations: 4.031 kB / 0.5888 GB, free: 4.938 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002215/0.6869, allocations: 0.6836 MB / 0.5895 GB, free: 4.203 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003168/0.6873, allocations: 152.5 kB / 0.5896 GB, free: 4.035 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.526e-05/0.6874, allocations: 11.97 kB / 0.5897 GB, free: 4.023 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004317/0.6878, allocations: 19.98 kB / 0.5897 GB, free: 4.004 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.688, allocations: 35.94 kB / 0.5897 GB, free: 3.969 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.354e-05/0.6881, allocations: 15.95 kB / 0.5897 GB, free: 3.953 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004938/0.6886, allocations: 265.2 kB / 0.59 GB, free: 3.695 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6886, allocations: 4 kB / 0.59 GB, free: 3.691 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008724/0.6895, allocations: 175.5 kB / 0.5901 GB, free: 3.52 MB / 426.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.t0,chopper.modulator.t1,chopper.chopper.gate,chopper.chopper.diode.on,system.initime) * Number of discrete 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.002719/0.6922, allocations: 1.456 MB / 0.5916 GB, free: 2.012 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001306/0.6936, allocations: 494.6 kB / 0.592 GB, free: 1.516 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.6936, allocations: 0 / 0.592 GB, free: 1.516 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000765/0.6944, allocations: 319.4 kB / 0.5923 GB, free: 1.191 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.6954, allocations: 142.2 kB / 0.5925 GB, free: 1.055 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003052/0.6985, allocations: 1.09 MB / 0.5935 GB, free: 15.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007415/0.6993, allocations: 0.9406 MB / 0.5945 GB, free: 14.94 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004259/0.6997, allocations: 199.3 kB / 0.5947 GB, free: 14.75 MB / 442.7 MB Notification: Performance of SimCode: time 1.864e-06/0.6998, allocations: 0 / 0.5947 GB, free: 14.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.952/3.652, allocations: 13.01 MB / 0.6074 GB, free: 1.723 MB / 442.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)