Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001417, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008464/0.0008464, allocations: 94.77 kB / 286.7 MB, free: 5.258 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.646e-05/1.648e-05, allocations: 4 kB / 343.7 MB, free: 8.277 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1122, allocations: 51.48 MB / 395.2 MB, free: 4.754 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3968/0.5091, allocations: 87.11 MB / 482.3 MB, free: 6.066 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/0.5094, allocations: 83.53 kB / 482.4 MB, free: 6.023 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0251/0.5345, allocations: 10.16 MB / 492.5 MB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.5346, allocations: 0 / 492.5 MB, free: 13.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.97e-05/0.5346, allocations: 16 kB / 492.6 MB, free: 13.58 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001608/0.5362, allocations: 0.7667 MB / 493.3 MB, free: 12.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.5363, allocations: 8.031 kB / 493.3 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.5364, allocations: 66.86 kB / 493.4 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005736/0.537, allocations: 393.4 kB / 493.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.5371, allocations: 19.98 kB / 493.8 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.517e-05/0.5371, allocations: 28 kB / 493.8 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005068/0.5376, allocations: 283.2 kB / 494.1 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006947/0.5384, allocations: 413.1 kB / 494.5 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.5384, allocations: 8.594 kB / 494.5 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.405e-05/0.5384, allocations: 3.984 kB / 494.5 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.5385, allocations: 15.95 kB / 494.5 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002586/0.541, allocations: 1.698 MB / 496.2 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008084/0.5419, allocations: 353.3 kB / 496.6 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000372/0.5423, allocations: 207 kB / 496.8 MB, free: 9.969 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.812e-05/0.5423, allocations: 4 kB / 496.8 MB, free: 9.965 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004068/0.5427, allocations: 234.9 kB / 497 MB, free: 9.777 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.863e-06/0.5427, allocations: 4 kB / 497 MB, free: 9.773 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0006084/0.5434, allocations: 341.4 kB / 497.3 MB, free: 9.508 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.825e-05/0.5434, allocations: 113.6 kB / 497.5 MB, free: 9.375 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003066/0.5438, allocations: 273.7 kB / 497.7 MB, free: 9.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.174e-05/0.5438, allocations: 29.7 kB / 497.8 MB, free: 9.125 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001926/0.544, allocations: 254.2 kB / 498 MB, free: 8.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.5441, allocations: 115.5 kB / 498.1 MB, free: 8.832 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.989e-05/0.5441, allocations: 4 kB / 498.1 MB, free: 8.828 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.5443, allocations: 357.8 kB / 498.5 MB, free: 8.488 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.5445, allocations: 105 kB / 498.6 MB, free: 8.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002477/0.5447, allocations: 224.1 kB / 498.8 MB, free: 8.207 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.545, allocations: 121.1 kB / 498.9 MB, free: 8.129 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.545, allocations: 0 / 498.9 MB, free: 8.129 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006425/0.5456, allocations: 411.5 kB / 499.3 MB, free: 7.812 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006316/0.5463, allocations: 1.34 MB / 0.4889 GB, free: 6.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.5463, allocations: 4 kB / 0.4889 GB, free: 6.391 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002729/0.5466, allocations: 67.95 kB / 0.489 GB, free: 6.336 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003598/0.5469, allocations: 95.77 kB / 0.4891 GB, free: 6.246 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001557/0.5485, allocations: 1.633 MB / 0.4907 GB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003639/0.5489, allocations: 55.72 kB / 0.4907 GB, free: 4.621 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.948e-05/0.5489, allocations: 22.98 kB / 0.4907 GB, free: 4.602 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.616e-06/0.5489, allocations: 4 kB / 0.4908 GB, free: 4.598 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005908/0.5495, allocations: 336.7 kB / 0.4911 GB, free: 4.359 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.5496, allocations: 8 kB / 0.4911 GB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001852/0.5497, allocations: 72.25 kB / 0.4911 GB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003082/0.5501, allocations: 87.2 kB / 0.4912 GB, free: 4.215 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001477/0.5516, allocations: 1.628 MB / 0.4928 GB, free: 2.645 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003298/0.5519, allocations: 51.67 kB / 0.4929 GB, free: 2.594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.22e-05/0.5519, allocations: 19.81 kB / 0.4929 GB, free: 2.578 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$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 (50): * Single equations (assignments): 48 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001839/0.5521, allocations: 123.7 kB / 0.493 GB, free: 2.453 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.361e-05/0.5522, allocations: 42.44 kB / 0.493 GB, free: 2.414 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006408/0.5529, allocations: 370.2 kB / 0.4934 GB, free: 2.145 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.5529, allocations: 7.953 kB / 0.4934 GB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.5529, allocations: 0 / 0.4934 GB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.5529, allocations: 3.984 kB / 0.4934 GB, free: 2.133 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001248/0.5542, allocations: 0.8957 MB / 0.4943 GB, free: 1.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.5542, allocations: 4 kB / 0.4943 GB, free: 1.391 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003265/0.5545, allocations: 71.64 kB / 0.4944 GB, free: 1.324 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001876/0.5547, allocations: 69.83 kB / 0.4944 GB, free: 1.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.5547, allocations: 0 / 0.4944 GB, free: 1.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001418/0.5562, allocations: 1.633 MB / 0.496 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.5562, allocations: 0 / 0.496 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008286/0.557, allocations: 0.6334 MB / 0.4966 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/0.5572, allocations: 150 kB / 0.4968 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.627e-05/0.5572, allocations: 11.38 kB / 0.4968 GB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003066/0.5576, allocations: 35.95 kB / 0.4968 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.5577, allocations: 43.45 kB / 0.4969 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.202e-05/0.5577, allocations: 15.75 kB / 0.4969 GB, free: 14.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001884/0.5579, allocations: 207.3 kB / 0.4971 GB, free: 14.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5579, allocations: 0 / 0.4971 GB, free: 14.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008401/0.5588, allocations: 223.1 kB / 0.4973 GB, free: 14.57 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v) * 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_last,meanVoltage.y_last) * 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 (37): * Single equations (assignments): 30 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001931/0.559, allocations: 123.2 kB / 0.4974 GB, free: 14.45 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001131/0.5601, allocations: 0.8473 MB / 0.4982 GB, free: 13.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.5601, allocations: 0 / 0.4982 GB, free: 13.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003449/0.5605, allocations: 289.2 kB / 0.4985 GB, free: 13.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003923/0.5609, allocations: 67.67 kB / 0.4986 GB, free: 13.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001343/0.5622, allocations: 0.7175 MB / 0.4993 GB, free: 12.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.5627, allocations: 0.8598 MB / 0.5001 GB, free: 11.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002529/0.5629, allocations: 63.25 kB / 0.5002 GB, free: 11.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.319e-05/0.563, allocations: 27.44 kB / 0.5002 GB, free: 11.78 MB / 378.7 MB Notification: Performance of SimCode: time 3.5e-07/0.563, allocations: 4 kB / 0.5002 GB, free: 11.78 MB / 378.7 MB Notification: Performance of Templates: time 0.01121/0.5742, allocations: 6.34 MB / 0.5064 GB, free: 5.605 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.makefile (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & ./Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCDC/ChopperStepDown/ChopperStepDown_R/ChopperStepDown_R.csv","../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches