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_R.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_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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 185.9 kB / 8.135 MB, free: 2.219 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.179/1.179, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009263/0.0009263, allocations: 100.5 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.875e-06/7.915e-06, allocations: 0 / 336.5 MB, free: 9.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1983/0.1984, allocations: 50.4 MB / 386.9 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08953/0.2879, allocations: 85.06 MB / 472 MB, free: 1.797 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002153/0.2882, allocations: 79.95 kB / 472.1 MB, free: 1.719 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02715/0.3153, allocations: 9.457 MB / 481.5 MB, free: 8.273 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.924e-05/0.3154, allocations: 12 kB / 481.5 MB, free: 8.262 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.001322/0.3167, allocations: 0.779 MB / 482.3 MB, free: 7.434 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.3168, allocations: 8.031 kB / 482.3 MB, free: 7.426 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.3169, allocations: 67.25 kB / 482.4 MB, free: 7.359 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005667/0.3175, allocations: 395.5 kB / 482.8 MB, free: 6.934 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.3175, allocations: 16 kB / 482.8 MB, free: 6.918 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.627e-05/0.3176, allocations: 28 kB / 482.8 MB, free: 6.891 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005575/0.3181, allocations: 283.8 kB / 483.1 MB, free: 6.613 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000674/0.3188, allocations: 406.7 kB / 483.5 MB, free: 6.195 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.3189, allocations: 4 kB / 483.5 MB, free: 6.191 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.385e-05/0.3189, allocations: 7.984 kB / 483.5 MB, free: 6.184 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.3189, allocations: 8 kB / 483.5 MB, free: 6.176 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002528/0.3215, allocations: 1.685 MB / 485.2 MB, free: 4.406 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000707/0.3222, allocations: 311 kB / 485.5 MB, free: 4.094 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004012/0.3226, allocations: 206.9 kB / 485.7 MB, free: 3.891 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.531e-05/0.3226, allocations: 7.938 kB / 485.7 MB, free: 3.883 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003416/0.323, allocations: 216.8 kB / 485.9 MB, free: 3.652 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.583e-06/0.323, allocations: 0 / 485.9 MB, free: 3.652 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0006105/0.3236, allocations: 321.5 kB / 486.2 MB, free: 3.328 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/0.3237, allocations: 110.8 kB / 486.3 MB, free: 3.195 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002791/0.324, allocations: 271.7 kB / 486.6 MB, free: 2.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.324, allocations: 29.7 kB / 486.6 MB, free: 2.895 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.3241, allocations: 208.7 kB / 486.8 MB, free: 2.684 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.43e-05/0.3242, allocations: 130.1 kB / 487 MB, free: 2.555 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.972e-05/0.3243, allocations: 4 kB / 487 MB, free: 2.551 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.3244, allocations: 346.8 kB / 487.3 MB, free: 2.203 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.3246, allocations: 101 kB / 487.4 MB, free: 2.105 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000306/0.3249, allocations: 218.7 kB / 487.6 MB, free: 1.844 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.3251, allocations: 129.7 kB / 487.8 MB, free: 1.719 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.3251, allocations: 4 kB / 487.8 MB, free: 1.715 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006397/0.3258, allocations: 393.5 kB / 488.1 MB, free: 1.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004446/0.3262, allocations: 1.308 MB / 489.4 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.3262, allocations: 4 kB / 489.5 MB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002727/0.3265, allocations: 64.83 kB / 489.5 MB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003833/0.3269, allocations: 99.81 kB / 489.6 MB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.3283, allocations: 1.503 MB / 491.1 MB, free: 14.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004205/0.3287, allocations: 59.72 kB / 491.2 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.76e-05/0.3288, allocations: 16.05 kB / 491.2 MB, free: 14.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.522e-06/0.3288, allocations: 8 kB / 491.2 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005576/0.3294, allocations: 327.8 kB / 491.5 MB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3294, allocations: 7.906 kB / 491.5 MB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002098/0.3296, allocations: 73.3 kB / 491.6 MB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003421/0.33, allocations: 87.83 kB / 491.7 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.3312, allocations: 1.51 MB / 493.2 MB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003394/0.3316, allocations: 47.73 kB / 493.2 MB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.296e-05/0.3316, allocations: 24.06 kB / 493.3 MB, free: 11.86 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 (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.0001315/0.3318, allocations: 123.5 kB / 493.4 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.214e-05/0.3318, allocations: 43.53 kB / 493.4 MB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006277/0.3325, allocations: 354 kB / 493.8 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.3325, allocations: 7.953 kB / 493.8 MB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.3325, allocations: 3.984 kB / 493.8 MB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.191e-06/0.3325, allocations: 0 / 493.8 MB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00124/0.3338, allocations: 0.8717 MB / 494.7 MB, free: 10.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3338, allocations: 3.984 kB / 494.7 MB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003598/0.3341, allocations: 75.97 kB / 494.7 MB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001987/0.3343, allocations: 68.81 kB / 494.8 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.935e-05/0.3344, allocations: 4 kB / 494.8 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001279/0.3357, allocations: 1.498 MB / 496.3 MB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3357, allocations: 64 / 496.3 MB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008028/0.3365, allocations: 0.6126 MB / 496.9 MB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002054/0.3367, allocations: 152.5 kB / 497.1 MB, free: 7.809 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.018e-05/0.3368, allocations: 0 / 497.1 MB, free: 7.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003679/0.3372, allocations: 43.95 kB / 497.1 MB, free: 7.766 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.3373, allocations: 39.89 kB / 497.1 MB, free: 7.727 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.158e-05/0.3373, allocations: 19.98 kB / 497.2 MB, free: 7.707 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002059/0.3375, allocations: 203.1 kB / 497.4 MB, free: 7.512 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006737/0.3382, allocations: 207.2 kB / 497.6 MB, free: 7.309 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.0001777/0.3384, allocations: 128.8 kB / 497.7 MB, free: 7.176 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.3395, allocations: 0.7492 MB / 498.4 MB, free: 6.398 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3395, allocations: 0 / 498.4 MB, free: 6.398 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003732/0.3399, allocations: 278.6 kB / 498.7 MB, free: 6.117 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004025/0.3403, allocations: 63.45 kB / 498.8 MB, free: 6.059 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.342, allocations: 0.7363 MB / 499.5 MB, free: 5.281 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005447/0.3425, allocations: 0.8943 MB / 0.4887 GB, free: 4.359 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3425, allocations: 0 / 0.4887 GB, free: 4.359 MB / 378.7 MB Notification: Performance of Templates: time 0.1164/0.459, allocations: 7.519 MB / 0.496 GB, free: 135.5 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches