Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Chopper.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00238/0.00238, allocations: 186.1 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.995/1.995, allocations: 205.2 MB / 218.9 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001148/0.001148, allocations: 100.2 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2762/0.2762, allocations: 37.98 MB / 353.1 MB, free: 3.051 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.361e-05/3.371e-05, allocations: 4 kB / 416.8 MB, free: 41.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1016, allocations: 56.32 MB / 473.1 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4745/0.5761, allocations: 98.15 MB / 0.5579 GB, free: 5.562 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003168/0.5765, allocations: 91.94 kB / 0.558 GB, free: 5.473 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06924/0.6458, allocations: 16.13 MB / 0.5737 GB, free: 5.168 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.168e-06/0.6458, allocations: 0 / 0.5737 GB, free: 5.168 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.67e-05/0.6459, allocations: 15.94 kB / 0.5737 GB, free: 5.152 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.002513/0.6484, allocations: 0.8596 MB / 0.5746 GB, free: 4.242 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.6485, allocations: 8.031 kB / 0.5746 GB, free: 4.234 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002528/0.6487, allocations: 71.16 kB / 0.5747 GB, free: 4.164 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004613/0.6534, allocations: 1.156 MB / 0.5758 GB, free: 2.973 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002116/0.6536, allocations: 116.7 kB / 0.5759 GB, free: 2.848 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001753/0.6538, allocations: 60 kB / 0.5759 GB, free: 2.789 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001837/0.6557, allocations: 0.7138 MB / 0.5766 GB, free: 2.031 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.504e-05/0.6557, allocations: 3.953 kB / 0.5766 GB, free: 2.027 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.788e-05/0.6558, allocations: 28 kB / 0.5767 GB, free: 2 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.594e-05/0.6559, allocations: 16 kB / 0.5767 GB, free: 1.984 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001518/0.6574, allocations: 0.5349 MB / 0.5772 GB, free: 1.445 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005655/0.6631, allocations: 2.503 MB / 0.5797 GB, free: 14.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.6644, allocations: 413.4 kB / 0.5801 GB, free: 14.4 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005284/0.665, allocations: 201.8 kB / 0.5802 GB, free: 14.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.052e-05/0.665, allocations: 4.281 kB / 0.5802 GB, free: 14.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005131/0.6656, allocations: 219.5 kB / 0.5805 GB, free: 13.96 MB / 426.7 MB Notification: Performance of pre-optimization done (n=36): time 3.827e-06/0.6656, allocations: 3.938 kB / 0.5805 GB, free: 13.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=36): time 0.001767/0.6674, allocations: 443.1 kB / 0.5809 GB, free: 13.51 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.97e-05/0.6675, allocations: 136.5 kB / 0.581 GB, free: 13.35 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006491/0.6681, allocations: 355.2 kB / 0.5814 GB, free: 13 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.585e-05/0.6682, allocations: 37.69 kB / 0.5814 GB, free: 12.95 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003226/0.6685, allocations: 354.6 kB / 0.5817 GB, free: 12.61 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.6687, allocations: 126.2 kB / 0.5818 GB, free: 12.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.05e-05/0.6688, allocations: 4 kB / 0.5819 GB, free: 12.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.6689, allocations: 330.8 kB / 0.5822 GB, free: 12.14 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003464/0.6693, allocations: 116.9 kB / 0.5823 GB, free: 12.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004525/0.6697, allocations: 230 kB / 0.5825 GB, free: 11.76 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004288/0.6702, allocations: 148.8 kB / 0.5826 GB, free: 11.61 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.6702, allocations: 0 / 0.5826 GB, free: 11.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00175/0.6719, allocations: 0.4931 MB / 0.5831 GB, free: 11.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.672, allocations: 4 kB / 0.5831 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.309e-05/0.672, allocations: 4 kB / 0.5831 GB, free: 11.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004812/0.6725, allocations: 125 kB / 0.5832 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000598/0.6731, allocations: 91.83 kB / 0.5833 GB, free: 10.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003544/0.6767, allocations: 1.942 MB / 0.5852 GB, free: 8.809 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006339/0.6774, allocations: 47.52 kB / 0.5853 GB, free: 8.762 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.135e-05/0.6774, allocations: 24.06 kB / 0.5853 GB, free: 8.738 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.0002061/0.6776, allocations: 136.8 kB / 0.5854 GB, free: 8.598 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.6778, allocations: 47.44 kB / 0.5855 GB, free: 8.551 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001698/0.6795, allocations: 450.7 kB / 0.5859 GB, free: 8.102 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.6795, allocations: 4 kB / 0.5859 GB, free: 8.098 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.6795, allocations: 0 / 0.5859 GB, free: 8.098 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.6796, allocations: 7.953 kB / 0.5859 GB, free: 8.09 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001336/0.6809, allocations: 0.6708 MB / 0.5866 GB, free: 7.359 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.6809, allocations: 32 / 0.5866 GB, free: 7.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000531/0.6815, allocations: 55.91 kB / 0.5866 GB, free: 7.305 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004604/0.682, allocations: 120.8 kB / 0.5867 GB, free: 7.184 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-05/0.682, allocations: 15.94 kB / 0.5868 GB, free: 7.168 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003504/0.6856, allocations: 1.921 MB / 0.5886 GB, free: 5.113 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.6856, allocations: 7.969 kB / 0.5886 GB, free: 5.105 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002267/0.6879, allocations: 0.6797 MB / 0.5893 GB, free: 4.375 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000319/0.6882, allocations: 152.5 kB / 0.5894 GB, free: 4.207 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.196e-05/0.6883, allocations: 7.938 kB / 0.5895 GB, free: 4.199 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004319/0.6888, allocations: 23.98 kB / 0.5895 GB, free: 4.176 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.689, allocations: 40.03 kB / 0.5895 GB, free: 4.137 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.76e-05/0.689, allocations: 11.98 kB / 0.5895 GB, free: 4.125 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005048/0.6895, allocations: 277.2 kB / 0.5898 GB, free: 3.855 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6896, allocations: 0 / 0.5898 GB, free: 3.855 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0009047/0.6905, allocations: 171.5 kB / 0.59 GB, free: 3.688 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.0003163/0.6908, allocations: 135.2 kB / 0.5901 GB, free: 3.543 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001385/0.6922, allocations: 486.9 kB / 0.5905 GB, free: 3.055 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.6922, allocations: 0 / 0.5905 GB, free: 3.055 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007861/0.693, allocations: 319.4 kB / 0.5909 GB, free: 2.73 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/0.6942, allocations: 137.4 kB / 0.591 GB, free: 2.598 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002621/0.6968, allocations: 0.955 MB / 0.5919 GB, free: 1.605 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007817/0.6977, allocations: 0.9366 MB / 0.5928 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002212/0.6979, allocations: 39.44 kB / 0.5929 GB, free: 0.6016 MB / 426.7 MB Notification: Performance of SimCode: time 1.352e-06/0.6979, allocations: 7.875 kB / 0.5929 GB, free: 0.5938 MB / 426.7 MB Notification: Performance of Templates: time 0.02351/0.7214, allocations: 10.04 MB / 0.6027 GB, free: 6.547 MB / 442.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)