Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") [: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 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 183.7 kB / 8.138 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 221.4 MB / 229.9 MB, free: 3.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008824/0.0008824, allocations: 99.97 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.241e-06/6.342e-06, allocations: 0 / 336.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.214, allocations: 50.39 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09217/0.3062, allocations: 85.25 MB / 472.2 MB, free: 1.559 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.3065, allocations: 83.94 kB / 472.3 MB, free: 1.477 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02787/0.3344, allocations: 9.801 MB / 482.1 MB, free: 7.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.459e-05/0.3344, allocations: 15.94 kB / 482.1 MB, free: 7.664 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001388/0.3358, allocations: 0.8023 MB / 482.9 MB, free: 6.812 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.3359, allocations: 8.031 kB / 482.9 MB, free: 6.805 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.336, allocations: 71.16 kB / 482.9 MB, free: 6.734 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005952/0.3366, allocations: 395.5 kB / 483.3 MB, free: 6.309 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.354e-05/0.3367, allocations: 20 kB / 483.4 MB, free: 6.289 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.141e-05/0.3367, allocations: 32 kB / 483.4 MB, free: 6.258 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005888/0.3373, allocations: 290 kB / 483.7 MB, free: 5.973 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007071/0.3381, allocations: 422.7 kB / 484.1 MB, free: 5.539 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.3381, allocations: 7.891 kB / 484.1 MB, free: 5.531 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.182e-05/0.3381, allocations: 0 / 484.1 MB, free: 5.531 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.819e-05/0.3382, allocations: 16 kB / 484.1 MB, free: 5.516 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002717/0.3409, allocations: 1.755 MB / 485.9 MB, free: 3.664 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005765/0.3415, allocations: 214.5 kB / 486.1 MB, free: 3.445 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004192/0.3419, allocations: 205.5 kB / 486.3 MB, free: 3.242 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.035e-05/0.342, allocations: 4.328 kB / 486.3 MB, free: 3.238 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003588/0.3423, allocations: 236.8 kB / 486.5 MB, free: 2.992 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 2.354e-06/0.3423, allocations: 0 / 486.5 MB, free: 2.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.0007444/0.3431, allocations: 325.9 kB / 486.8 MB, free: 2.664 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.3432, allocations: 106.8 kB / 486.9 MB, free: 2.535 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003231/0.3435, allocations: 285.8 kB / 487.2 MB, free: 2.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.06e-05/0.3435, allocations: 29.64 kB / 487.2 MB, free: 2.215 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.3437, allocations: 212.7 kB / 487.4 MB, free: 2.004 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.3438, allocations: 138.2 kB / 487.6 MB, free: 1.867 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.045e-05/0.3438, allocations: 0 / 487.6 MB, free: 1.867 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.344, allocations: 346.8 kB / 487.9 MB, free: 1.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002073/0.3442, allocations: 109 kB / 488 MB, free: 1.414 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002863/0.3445, allocations: 230.9 kB / 488.2 MB, free: 1.141 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000238/0.3447, allocations: 133.8 kB / 488.4 MB, free: 1.012 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3448, allocations: 0 / 488.4 MB, free: 1.012 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007033/0.3455, allocations: 413.8 kB / 488.8 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004656/0.3459, allocations: 1.304 MB / 490.1 MB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.346, allocations: 4 kB / 490.1 MB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000294/0.3463, allocations: 72.77 kB / 490.2 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004364/0.3467, allocations: 103.8 kB / 490.3 MB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001513/0.3482, allocations: 1.503 MB / 491.8 MB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004205/0.3487, allocations: 59.72 kB / 491.8 MB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.743e-05/0.3487, allocations: 16 kB / 491.8 MB, free: 13.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.725e-06/0.3487, allocations: 6.812 kB / 491.8 MB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005817/0.3493, allocations: 344.4 kB / 492.2 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3493, allocations: 4 kB / 492.2 MB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002021/0.3495, allocations: 67.78 kB / 492.3 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003592/0.3499, allocations: 104.3 kB / 492.4 MB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001336/0.3513, allocations: 1.502 MB / 493.9 MB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003767/0.3517, allocations: 51.72 kB / 493.9 MB, free: 11.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.278e-05/0.3517, allocations: 20 kB / 493.9 MB, free: 11.12 MB / 378.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 (53): * Single equations (assignments): 51 * 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.0001582/0.3519, allocations: 119.5 kB / 494 MB, free: 11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.234e-05/0.3519, allocations: 39.53 kB / 494.1 MB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006788/0.3526, allocations: 369.7 kB / 494.4 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.3526, allocations: 7.984 kB / 494.5 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.3527, allocations: 0 / 494.5 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3527, allocations: 3.938 kB / 494.5 MB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001333/0.354, allocations: 0.9073 MB / 495.4 MB, free: 9.613 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.354, allocations: 4.062 kB / 495.4 MB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003816/0.3544, allocations: 75.89 kB / 495.4 MB, free: 9.535 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002097/0.3546, allocations: 68.83 kB / 495.5 MB, free: 9.465 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.578e-05/0.3547, allocations: 7.969 kB / 495.5 MB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001309/0.356, allocations: 1.502 MB / 497 MB, free: 7.836 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.356, allocations: 4.844 kB / 497 MB, free: 7.832 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008438/0.3569, allocations: 0.6194 MB / 497.6 MB, free: 7.176 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001853/0.3571, allocations: 148.4 kB / 497.8 MB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.626e-05/0.3572, allocations: 11.98 kB / 497.8 MB, free: 7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003621/0.3575, allocations: 35.97 kB / 497.8 MB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.3576, allocations: 39.94 kB / 497.9 MB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.167e-05/0.3577, allocations: 15.94 kB / 497.9 MB, free: 6.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002179/0.3579, allocations: 208.6 kB / 498.1 MB, free: 6.707 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008378/0.3588, allocations: 223.2 kB / 498.3 MB, free: 6.488 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v,loadInductor.i) * 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 (39): * Single equations (assignments): 32 * 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.0001893/0.359, allocations: 124.9 kB / 498.4 MB, free: 6.359 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001201/0.3602, allocations: 0.7602 MB / 499.2 MB, free: 5.566 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3602, allocations: 4.125 kB / 499.2 MB, free: 5.562 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003968/0.3606, allocations: 285.7 kB / 499.5 MB, free: 5.273 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.361, allocations: 64.98 kB / 499.5 MB, free: 5.215 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00186/0.3629, allocations: 0.8162 MB / 0.4886 GB, free: 4.359 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005598/0.3635, allocations: 0.8948 MB / 0.4895 GB, free: 3.438 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.3635, allocations: 0 / 0.4895 GB, free: 3.438 MB / 378.7 MB Notification: Performance of Templates: time 0.1255/0.4889, allocations: 7.701 MB / 0.497 GB, free: 135.5 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCDC/ChopperStepDown/ChopperStepDown_RL/ChopperStepDown_RL.csv","../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches