Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_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.ChopperStepUp.ChopperStepUp_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor.v|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepUp.vDC1|chopperStepUp.iDC1|chopperStepUp.vDC2|chopperStepUp.iDC2",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor.v|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepUp.vDC1|chopperStepUp.iDC1|chopperStepUp.vDC2|chopperStepUp.iDC2",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_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.001494/0.001495, allocations: 180.7 kB / 8.137 MB, free: 2.688 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.248/1.248, allocations: 221.4 MB / 229.9 MB, free: 7.703 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009533/0.0009533, allocations: 95.41 kB / 280.8 MB, free: 5.203 MB / 222.1 MB Notification: Performance of FrontEnd - loaded program: time 6.352e-06/6.452e-06, allocations: 0 / 336.5 MB, free: 13.44 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1984/0.1984, allocations: 50.4 MB / 386.9 MB, free: 40.43 MB / 302.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08896/0.2874, allocations: 85.07 MB / 472 MB, free: 5.469 MB / 350.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/0.2877, allocations: 84.97 kB / 472.1 MB, free: 5.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 0.02645/0.3141, allocations: 9.467 MB / 481.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.847e-05/0.3142, allocations: 8 kB / 481.6 MB, free: 11.93 MB / 366.1 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.001389/0.3156, allocations: 0.779 MB / 482.3 MB, free: 11.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.3156, allocations: 12.03 kB / 482.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.3158, allocations: 67.23 kB / 482.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006365/0.3164, allocations: 383.6 kB / 482.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.868e-05/0.3165, allocations: 20.73 kB / 482.8 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.667e-05/0.3165, allocations: 32 kB / 482.8 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005821/0.3171, allocations: 270 kB / 483.1 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000692/0.3178, allocations: 422.6 kB / 483.5 MB, free: 9.863 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.3179, allocations: 0 / 483.5 MB, free: 9.863 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.189e-05/0.3179, allocations: 0 / 483.5 MB, free: 9.863 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.259e-05/0.318, allocations: 12 kB / 483.5 MB, free: 9.852 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002501/0.3205, allocations: 1.682 MB / 485.2 MB, free: 8.086 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006711/0.3212, allocations: 320.8 kB / 485.5 MB, free: 7.766 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003904/0.3216, allocations: 203 kB / 485.7 MB, free: 7.566 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.82e-05/0.3216, allocations: 11.98 kB / 485.7 MB, free: 7.555 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003338/0.3219, allocations: 216.8 kB / 485.9 MB, free: 7.324 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 1.954e-06/0.322, allocations: 0 / 485.9 MB, free: 7.324 MB / 366.1 MB Notification: Performance of matching and sorting (n=42): time 0.0005947/0.3226, allocations: 313.6 kB / 486.3 MB, free: 7.008 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.166e-05/0.3226, allocations: 122.7 kB / 486.4 MB, free: 6.863 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002756/0.3229, allocations: 271.7 kB / 486.6 MB, free: 6.598 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/0.323, allocations: 25.7 kB / 486.7 MB, free: 6.566 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.3231, allocations: 208.8 kB / 486.9 MB, free: 6.355 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.658e-05/0.3232, allocations: 126.2 kB / 487 MB, free: 6.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.883e-05/0.3232, allocations: 0 / 487 MB, free: 6.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.3234, allocations: 354.7 kB / 487.3 MB, free: 5.875 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/0.3235, allocations: 104.9 kB / 487.4 MB, free: 5.773 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002469/0.3238, allocations: 219.3 kB / 487.7 MB, free: 5.512 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002037/0.324, allocations: 128.9 kB / 487.8 MB, free: 5.387 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.324, allocations: 4 kB / 487.8 MB, free: 5.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006187/0.3246, allocations: 393.5 kB / 488.2 MB, free: 4.988 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004181/0.3251, allocations: 1.308 MB / 489.5 MB, free: 3.578 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3251, allocations: 4 kB / 489.5 MB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002656/0.3254, allocations: 62.39 kB / 489.5 MB, free: 3.512 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003872/0.3257, allocations: 104.9 kB / 489.6 MB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.3272, allocations: 1.498 MB / 491.1 MB, free: 1.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/0.3275, allocations: 55.72 kB / 491.2 MB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-05/0.3276, allocations: 20 kB / 491.2 MB, free: 1.723 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.721e-06/0.3276, allocations: 4.562 kB / 491.2 MB, free: 1.719 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005494/0.3281, allocations: 330.9 kB / 491.5 MB, free: 1.395 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.3282, allocations: 7.906 kB / 491.5 MB, free: 1.387 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001984/0.3284, allocations: 73.39 kB / 491.6 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003347/0.3287, allocations: 95.81 kB / 491.7 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001377/0.3301, allocations: 1.499 MB / 493.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003359/0.3305, allocations: 51.73 kB / 493.3 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.15e-05/0.3305, allocations: 20 kB / 493.3 MB, free: 15.54 MB / 382.1 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,chopperStepUp.andCondition_p.y,chopperStepUp.fire_p,chopperStepUp.transistor.off,chopperStepUp.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.0001581/0.3307, allocations: 123.5 kB / 493.4 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.919e-05/0.3307, allocations: 39.53 kB / 493.4 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006415/0.3314, allocations: 342.1 kB / 493.8 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.3314, allocations: 16.58 kB / 493.8 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-06/0.3314, allocations: 0 / 493.8 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.3314, allocations: 4 kB / 493.8 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001313/0.3327, allocations: 0.8636 MB / 494.7 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3328, allocations: 0 / 494.7 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003635/0.3331, allocations: 79.92 kB / 494.7 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000197/0.3333, allocations: 64.81 kB / 494.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.977e-05/0.3334, allocations: 7.984 kB / 494.8 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/0.3347, allocations: 1.492 MB / 496.3 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.3347, allocations: 4.062 kB / 496.3 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008215/0.3355, allocations: 0.5948 MB / 496.9 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001684/0.3357, allocations: 144.5 kB / 497 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.773e-05/0.3358, allocations: 8 kB / 497.1 MB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003556/0.3361, allocations: 40.89 kB / 497.1 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.845e-05/0.3362, allocations: 31.95 kB / 497.1 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.3363, allocations: 15.98 kB / 497.1 MB, free: 11.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 0.0001868/0.3365, allocations: 203.1 kB / 497.3 MB, free: 11.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007072/0.3372, allocations: 215.2 kB / 497.5 MB, free: 11.04 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v) * Number of discrete variables: 15 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chopperStepUp.andCondition_p.y,chopperStepUp.fire_p,chopperStepUp.transistor.off,chopperStepUp.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 (36): * Single equations (assignments): 29 * 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.0001623/0.3374, allocations: 120 kB / 497.7 MB, free: 10.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001071/0.3384, allocations: 0.761 MB / 498.4 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3385, allocations: 0 / 498.4 MB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003477/0.3388, allocations: 269.5 kB / 498.7 MB, free: 9.852 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.3392, allocations: 65.59 kB / 498.8 MB, free: 9.793 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001498/0.3407, allocations: 0.7083 MB / 499.5 MB, free: 9.047 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004876/0.3412, allocations: 0.8943 MB / 0.4886 GB, free: 8.125 MB / 382.1 MB Notification: Performance of SimCode: time 2.354e-06/0.3412, allocations: 0 / 0.4886 GB, free: 8.125 MB / 382.1 MB Notification: Performance of Templates: time 0.01269/0.3539, allocations: 7.499 MB / 0.4959 GB, free: 0.7578 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.sim & ./Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/PowerConverters/Examples/DCDC/ChopperStepUp/ChopperStepUp_R/ChopperStepUp_R.csv","../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches