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") [: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 trunk/package.mo): time 0.001322/0.001322, allocations: 200.1 kB / 8.541 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001012/0.001012, allocations: 92.91 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.285e-06/8.305e-06, allocations: 4 kB / 343.2 MB, free: 8.668 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09868/0.0987, allocations: 51.47 MB / 394.6 MB, free: 5.145 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3051/0.4039, allocations: 87.04 MB / 481.7 MB, free: 6.156 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/0.4042, allocations: 83.58 kB / 481.8 MB, free: 6.109 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02567/0.4298, allocations: 9.932 MB / 491.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.563e-05/0.4299, allocations: 12 kB / 491.7 MB, free: 13.89 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.00128/0.4312, allocations: 0.7875 MB / 492.5 MB, free: 13.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.4312, allocations: 9.344 kB / 492.5 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.4314, allocations: 71.23 kB / 492.6 MB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005727/0.4319, allocations: 392 kB / 492.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/0.432, allocations: 16 kB / 493 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.546e-05/0.4321, allocations: 31.44 kB / 493 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000562/0.4326, allocations: 280.8 kB / 493.3 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006629/0.4333, allocations: 408 kB / 493.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.4333, allocations: 8 kB / 493.7 MB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.016e-05/0.4334, allocations: 0 / 493.7 MB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.4334, allocations: 15.91 kB / 493.7 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002481/0.4359, allocations: 1.681 MB / 495.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007016/0.4366, allocations: 328.2 kB / 495.7 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003755/0.437, allocations: 201.3 kB / 495.9 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.759e-05/0.437, allocations: 4 kB / 495.9 MB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003293/0.4374, allocations: 222.2 kB / 496.1 MB, free: 10.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.804e-06/0.4374, allocations: 0 / 496.1 MB, free: 10.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0005881/0.438, allocations: 317 kB / 496.4 MB, free: 9.844 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.4381, allocations: 117.8 kB / 496.5 MB, free: 9.707 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002885/0.4383, allocations: 278.6 kB / 496.8 MB, free: 9.484 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.665e-05/0.4384, allocations: 28.52 kB / 496.8 MB, free: 9.453 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001245/0.4385, allocations: 219 kB / 497 MB, free: 9.258 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.004e-05/0.4386, allocations: 115 kB / 497.2 MB, free: 9.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.844e-05/0.4386, allocations: 0 / 497.2 MB, free: 9.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.4388, allocations: 363.2 kB / 497.5 MB, free: 8.812 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001724/0.439, allocations: 101.8 kB / 497.6 MB, free: 8.754 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002412/0.4392, allocations: 220.1 kB / 497.8 MB, free: 8.543 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001951/0.4394, allocations: 120 kB / 497.9 MB, free: 8.469 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.4394, allocations: 4 kB / 498 MB, free: 8.465 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006017/0.44, allocations: 396 kB / 498.3 MB, free: 8.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005561/0.4406, allocations: 1.306 MB / 499.6 MB, free: 6.777 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.4406, allocations: 7.984 kB / 499.7 MB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002752/0.4409, allocations: 68.27 kB / 499.7 MB, free: 6.715 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003651/0.4413, allocations: 93.14 kB / 499.8 MB, free: 6.629 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.4427, allocations: 1.517 MB / 0.4896 GB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003644/0.4431, allocations: 55.78 kB / 0.4896 GB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.552e-05/0.4431, allocations: 19.62 kB / 0.4896 GB, free: 5.078 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.949e-06/0.4431, allocations: 4 kB / 0.4897 GB, free: 5.074 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005426/0.4437, allocations: 321.8 kB / 0.49 GB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.4437, allocations: 7.984 kB / 0.49 GB, free: 4.836 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001939/0.4439, allocations: 79.83 kB / 0.49 GB, free: 4.773 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003298/0.4442, allocations: 87.45 kB / 0.4901 GB, free: 4.691 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001237/0.4455, allocations: 1.505 MB / 0.4916 GB, free: 3.215 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003228/0.4458, allocations: 53.22 kB / 0.4916 GB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.554e-05/0.4459, allocations: 19.94 kB / 0.4917 GB, free: 3.148 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.0001588/0.446, allocations: 127.1 kB / 0.4918 GB, free: 3.023 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.781e-05/0.4461, allocations: 51.45 kB / 0.4918 GB, free: 2.973 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005915/0.4467, allocations: 344.7 kB / 0.4922 GB, free: 2.727 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.4467, allocations: 8 kB / 0.4922 GB, free: 2.719 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.4467, allocations: 0 / 0.4922 GB, free: 2.719 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.4467, allocations: 0 / 0.4922 GB, free: 2.719 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001289/0.448, allocations: 0.8709 MB / 0.493 GB, free: 2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.448, allocations: 0 / 0.493 GB, free: 2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003703/0.4484, allocations: 79.52 kB / 0.4931 GB, free: 1.926 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001879/0.4486, allocations: 62.83 kB / 0.4932 GB, free: 1.879 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.115e-05/0.4487, allocations: 15.64 kB / 0.4932 GB, free: 1.867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001326/0.45, allocations: 1.496 MB / 0.4946 GB, free: 404 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.45, allocations: 2.062 kB / 0.4946 GB, free: 404 kB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008453/0.4509, allocations: 0.6193 MB / 0.4952 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001902/0.4511, allocations: 152.7 kB / 0.4954 GB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.136e-05/0.4511, allocations: 13.45 kB / 0.4954 GB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003486/0.4515, allocations: 36.78 kB / 0.4954 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001066/0.4516, allocations: 42.81 kB / 0.4955 GB, free: 15.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.563e-05/0.4517, allocations: 10.62 kB / 0.4955 GB, free: 15.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002448/0.4519, allocations: 211 kB / 0.4957 GB, free: 15.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001229/0.4531, allocations: 215.8 kB / 0.4959 GB, free: 15.28 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.0001971/0.4533, allocations: 119.9 kB / 0.496 GB, free: 15.15 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001132/0.4545, allocations: 0.7446 MB / 0.4967 GB, free: 14.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.4545, allocations: 0 / 0.4967 GB, free: 14.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003669/0.4549, allocations: 274.3 kB / 0.497 GB, free: 14.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.4553, allocations: 68.98 kB / 0.4971 GB, free: 14.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001864/0.4572, allocations: 0.739 MB / 0.4978 GB, free: 13.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00057/0.4578, allocations: 0.8934 MB / 0.4987 GB, free: 12.63 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4578, allocations: 0 / 0.4987 GB, free: 12.63 MB / 378.7 MB Notification: Performance of Templates: time 0.0134/0.4712, allocations: 7.603 MB / 0.5061 GB, free: 5.195 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