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.001693/0.001693, allocations: 173.4 kB / 16.76 MB, free: 5.035 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.847/2.847, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.001081/0.001081, allocations: 89.39 kB / 271.3 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3936/0.3936, allocations: 38.08 MB / 357.6 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000614/0.000614, allocations: 12 kB / 423.9 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5487/0.5493, allocations: 56.32 MB / 480.3 MB, free: 9.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2161/0.7655, allocations: 98.28 MB / 0.565 GB, free: 4.066 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004205/0.766, allocations: 95.95 kB / 0.5651 GB, free: 3.973 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06541/0.8314, allocations: 16.1 MB / 0.5808 GB, free: 3.68 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.839e-06/0.8315, allocations: 4 kB / 0.5808 GB, free: 3.676 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.64e-05/0.8316, allocations: 12 kB / 0.5808 GB, free: 3.664 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.002985/0.8346, allocations: 0.9223 MB / 0.5817 GB, free: 2.688 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.292e-05/0.8347, allocations: 8.031 kB / 0.5817 GB, free: 2.68 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002409/0.8349, allocations: 76.09 kB / 0.5818 GB, free: 2.605 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002587/0.8375, allocations: 0.8474 MB / 0.5826 GB, free: 1.719 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002252/0.8378, allocations: 117.3 kB / 0.5827 GB, free: 1.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001492/0.8379, allocations: 60.38 kB / 0.5828 GB, free: 1.531 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002051/0.84, allocations: 0.7686 MB / 0.5835 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.88e-05/0.84, allocations: 3.938 kB / 0.5835 GB, free: 0.7188 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.689e-05/0.8401, allocations: 24 kB / 0.5836 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.307e-05/0.8402, allocations: 16 kB / 0.5836 GB, free: 0.6797 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001849/0.842, allocations: 0.6167 MB / 0.5842 GB, free: 64 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005317/0.8474, allocations: 2.514 MB / 0.5866 GB, free: 13.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.8487, allocations: 421.2 kB / 0.587 GB, free: 13.01 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006418/0.8494, allocations: 197.9 kB / 0.5872 GB, free: 12.81 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.716e-05/0.8495, allocations: 8.266 kB / 0.5872 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006716/0.8502, allocations: 243.3 kB / 0.5875 GB, free: 12.54 MB / 426.7 MB Notification: Performance of pre-optimization done (n=36): time 4.279e-06/0.8502, allocations: 0 / 0.5875 GB, free: 12.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=36): time 0.004374/0.8546, allocations: 0.8394 MB / 0.5883 GB, free: 11.67 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001354/0.8547, allocations: 140.4 kB / 0.5884 GB, free: 11.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008372/0.8556, allocations: 401.9 kB / 0.5888 GB, free: 11.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.702e-05/0.8557, allocations: 33.7 kB / 0.5888 GB, free: 11.06 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004067/0.8561, allocations: 320.1 kB / 0.5891 GB, free: 10.74 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001653/0.8563, allocations: 118.3 kB / 0.5893 GB, free: 10.62 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.304e-05/0.8563, allocations: 8 kB / 0.5893 GB, free: 10.62 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000208/0.8565, allocations: 355.2 kB / 0.5896 GB, free: 10.26 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004749/0.857, allocations: 128.8 kB / 0.5897 GB, free: 10.14 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005798/0.8576, allocations: 246 kB / 0.59 GB, free: 9.852 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002387/0.86, allocations: 0.6524 MB / 0.5906 GB, free: 9.148 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.155e-05/0.8601, allocations: 4 kB / 0.5906 GB, free: 9.145 MB / 426.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.002236/0.8623, allocations: 0.5609 MB / 0.5911 GB, free: 8.574 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.154e-05/0.8624, allocations: 4 kB / 0.5912 GB, free: 8.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/0.8624, allocations: 4 kB / 0.5912 GB, free: 8.566 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006878/0.8631, allocations: 152.9 kB / 0.5913 GB, free: 8.414 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004718/0.8636, allocations: 75.91 kB / 0.5914 GB, free: 8.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004941/0.8685, allocations: 2.051 MB / 0.5934 GB, free: 6.152 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007985/0.8694, allocations: 55.5 kB / 0.5934 GB, free: 6.098 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.78e-05/0.8695, allocations: 20 kB / 0.5935 GB, free: 6.078 MB / 426.7 MB Warning: Assuming fixed start value for the following 2 variables: chopper.modulator.t0:DISCRETE(unit = "s" fixed = true protected = true ) type: Real chopper.modulator.t1: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.t0,$PRE.chopper.modulator.t1,chopper.modulator.t0,chopper.modulator.t1,chopper.chopper.gate,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.0007553/0.8702, allocations: 245.5 kB / 0.5937 GB, free: 5.828 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001466/0.8704, allocations: 47.53 kB / 0.5937 GB, free: 5.781 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001953/0.8723, allocations: 482.5 kB / 0.5942 GB, free: 5.301 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-05/0.8724, allocations: 4 kB / 0.5942 GB, free: 5.297 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.8724, allocations: 0 / 0.5942 GB, free: 5.297 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.8724, allocations: 11.92 kB / 0.5942 GB, free: 5.285 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00143/0.8739, allocations: 0.6707 MB / 0.5949 GB, free: 4.555 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.635e-06/0.8739, allocations: 0 / 0.5949 GB, free: 4.555 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003839/0.8743, allocations: 43.92 kB / 0.5949 GB, free: 4.512 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006223/0.8749, allocations: 148.8 kB / 0.595 GB, free: 4.363 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.665e-05/0.875, allocations: 11.94 kB / 0.5951 GB, free: 4.352 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004478/0.8795, allocations: 2.035 MB / 0.597 GB, free: 2.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.8795, allocations: 0 / 0.597 GB, free: 2.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002501/0.882, allocations: 0.702 MB / 0.5977 GB, free: 1.445 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003559/0.8824, allocations: 148.6 kB / 0.5979 GB, free: 1.281 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.523e-05/0.8825, allocations: 8 kB / 0.5979 GB, free: 1.273 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003901/0.8829, allocations: 15.98 kB / 0.5979 GB, free: 1.258 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/0.8831, allocations: 39.88 kB / 0.5979 GB, free: 1.219 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.294e-05/0.8832, allocations: 12 kB / 0.5979 GB, free: 1.207 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006018/0.8838, allocations: 283.1 kB / 0.5982 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.8838, allocations: 0 / 0.5982 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001132/0.885, allocations: 171.4 kB / 0.5984 GB, free: 0.7656 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 () * 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.0003779/0.8854, allocations: 143 kB / 0.5985 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.887, allocations: 0.4953 MB / 0.599 GB, free: 112 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/0.887, allocations: 4 kB / 0.599 GB, free: 108 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008872/0.8879, allocations: 331.3 kB / 0.5993 GB, free: 15.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/0.8892, allocations: 141.7 kB / 0.5995 GB, free: 15.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003405/0.8926, allocations: 1.544 MB / 0.601 GB, free: 14.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008157/0.8935, allocations: 0.925 MB / 0.6019 GB, free: 13.09 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001842/0.8937, allocations: 35.44 kB / 0.6019 GB, free: 13.06 MB / 442.7 MB Notification: Performance of SimCode: time 1.973e-06/0.8937, allocations: 0 / 0.6019 GB, free: 13.06 MB / 442.7 MB Notification: Performance of Templates: time 0.02337/0.9171, allocations: 10.37 MB / 0.612 GB, free: 2.688 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)