Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001051/0.001051, allocations: 191.9 kB / 8.135 MB, free: 2.086 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.057/1.057, allocations: 194.2 MB / 202.8 MB, free: 8.66 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001736/0.001736, allocations: 121.6 kB / 247.7 MB, free: 6.363 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.012e-06/6.092e-06, allocations: 0 / 297.6 MB, free: 7.961 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06732/0.06735, allocations: 44.48 MB / 342.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1898/0.2572, allocations: 76.89 MB / 419 MB, free: 18.19 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.2574, allocations: 89.14 kB / 419 MB, free: 18.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01635/0.2738, allocations: 6.263 MB / 425.3 MB, free: 13.04 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.402e-05/0.2738, allocations: 16 kB / 425.3 MB, free: 13.02 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0009828/0.2748, allocations: 0.6903 MB / 426 MB, free: 12.32 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.2748, allocations: 8.031 kB / 426 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.275, allocations: 55.34 kB / 426.1 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004531/0.2754, allocations: 348.3 kB / 426.4 MB, free: 11.92 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.2755, allocations: 18.53 kB / 426.4 MB, free: 11.9 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.851e-05/0.2755, allocations: 31.98 kB / 426.5 MB, free: 11.87 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004396/0.276, allocations: 233.4 kB / 426.7 MB, free: 11.74 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005437/0.2765, allocations: 350.9 kB / 427 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.2765, allocations: 0 / 427 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.986e-05/0.2766, allocations: 11.97 kB / 427 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.2766, allocations: 8 kB / 427.1 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001922/0.2785, allocations: 1.503 MB / 428.6 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003173/0.2789, allocations: 216.6 kB / 428.8 MB, free: 9.98 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002466/0.2791, allocations: 142.6 kB / 428.9 MB, free: 9.883 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.2792, allocations: 4 kB / 428.9 MB, free: 9.879 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002501/0.2794, allocations: 189 kB / 429.1 MB, free: 9.719 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 1.723e-06/0.2794, allocations: 0 / 429.1 MB, free: 9.719 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.0004589/0.2799, allocations: 272.2 kB / 429.4 MB, free: 9.508 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.2799, allocations: 144.4 kB / 429.5 MB, free: 9.34 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002174/0.2802, allocations: 251.2 kB / 429.7 MB, free: 9.133 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.2802, allocations: 25.7 kB / 429.8 MB, free: 9.102 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.566e-05/0.2803, allocations: 190.5 kB / 430 MB, free: 8.93 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.884e-05/0.2804, allocations: 100.9 kB / 430.1 MB, free: 8.844 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.774e-05/0.2804, allocations: 0 / 430.1 MB, free: 8.844 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.179e-05/0.2804, allocations: 337.8 kB / 430.4 MB, free: 8.516 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001436/0.2806, allocations: 81.56 kB / 430.5 MB, free: 8.473 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.2808, allocations: 215 kB / 430.7 MB, free: 8.254 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001605/0.2809, allocations: 100.7 kB / 430.8 MB, free: 8.188 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.281, allocations: 4 kB / 430.8 MB, free: 8.184 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005116/0.2815, allocations: 345.4 kB / 431.1 MB, free: 7.918 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001867/0.2817, allocations: 1.4 MB / 432.5 MB, free: 6.438 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.2817, allocations: 4 kB / 432.5 MB, free: 6.434 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002966/0.282, allocations: 85.12 kB / 432.6 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002341/0.2822, allocations: 55.84 kB / 432.7 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.2835, allocations: 1.611 MB / 434.3 MB, free: 4.773 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003554/0.2839, allocations: 59.78 kB / 434.3 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.01e-05/0.2839, allocations: 12 kB / 434.3 MB, free: 4.703 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.46e-06/0.284, allocations: 4 kB / 434.3 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004467/0.2844, allocations: 286.4 kB / 434.6 MB, free: 4.496 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.2844, allocations: 4 kB / 434.6 MB, free: 4.492 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002171/0.2846, allocations: 80.62 kB / 434.7 MB, free: 4.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/0.2848, allocations: 51.7 kB / 434.8 MB, free: 4.383 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001329/0.2862, allocations: 1.721 MB / 436.5 MB, free: 2.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003022/0.2865, allocations: 39.89 kB / 436.5 MB, free: 2.707 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.641e-05/0.2865, allocations: 15.38 kB / 436.5 MB, free: 2.695 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$whenCondition2,$whenCondition1,$whenCondition4,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition3,chopperStepDown.andCondition_p.y,chopperStepDown.fire_p,chopperStepDown.transistor.off,chopperStepDown.diode.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 1 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001064/0.2866, allocations: 134.8 kB / 436.7 MB, free: 2.562 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.139e-05/0.2867, allocations: 36.47 kB / 436.7 MB, free: 2.527 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.861e-05/0.2868, allocations: 34.28 kB / 436.7 MB, free: 2.504 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.2868, allocations: 8 kB / 436.7 MB, free: 2.496 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.2868, allocations: 0 / 436.7 MB, free: 2.496 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.2868, allocations: 0 / 436.7 MB, free: 2.496 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009621/0.2878, allocations: 0.8573 MB / 437.6 MB, free: 1.773 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2878, allocations: 0 / 437.6 MB, free: 1.773 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000155/0.288, allocations: 24.02 kB / 437.6 MB, free: 1.75 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002617/0.2882, allocations: 74.33 kB / 437.7 MB, free: 1.695 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.738e-05/0.2883, allocations: 11.36 kB / 437.7 MB, free: 1.688 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/0.2894, allocations: 1.553 MB / 439.3 MB, free: 184 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2894, allocations: 0 / 439.3 MB, free: 184 kB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006347/0.2901, allocations: 0.5043 MB / 439.8 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.2902, allocations: 139 kB / 439.9 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.98e-05/0.2903, allocations: 0 / 439.9 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003205/0.2906, allocations: 33.28 kB / 439.9 MB, free: 15.6 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.542e-05/0.2907, allocations: 30.95 kB / 440 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.646e-05/0.2908, allocations: 14.98 kB / 440 MB, free: 15.57 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001689/0.2909, allocations: 181.4 kB / 440.2 MB, free: 15.42 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007163/0.2917, allocations: 178.4 kB / 440.3 MB, free: 15.25 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * Number of discrete variables: 15 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chopperStepDown.andCondition_p.y,chopperStepDown.fire_p,chopperStepDown.transistor.off,chopperStepDown.diode.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y,meanVoltage.y) * Number of discrete states: 4 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0001547/0.2918, allocations: 115.5 kB / 440.4 MB, free: 15.12 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.2929, allocations: 0.6837 MB / 441.1 MB, free: 14.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.293, allocations: 4.062 kB / 441.1 MB, free: 14.54 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003457/0.2933, allocations: 242.9 kB / 441.4 MB, free: 14.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003625/0.2937, allocations: 50.05 kB / 441.4 MB, free: 14.3 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.295, allocations: 0.5117 MB / 441.9 MB, free: 13.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004561/0.2955, allocations: 0.8539 MB / 442.8 MB, free: 12.94 MB / 330.7 MB Notification: Performance of SimCode: time 3.2e-07/0.2955, allocations: 0 / 442.8 MB, free: 12.94 MB / 330.7 MB Notification: Performance of Templates: time 0.01203/0.3076, allocations: 6.577 MB / 449.4 MB, free: 6.441 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & ./Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1)