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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 177.1 kB / 8.35 MB, free: 0.7266 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.317/1.317, allocations: 221.5 MB / 230.3 MB, free: 7.52 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.0008071/0.0008071, allocations: 87.48 kB / 281.2 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.771e-05/1.773e-05, allocations: 4 kB / 337.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09733/0.09737, allocations: 50.42 MB / 387.5 MB, free: 7.547 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3068/0.4042, allocations: 85.31 MB / 472.8 MB, free: 9.516 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.4045, allocations: 89.66 kB / 472.9 MB, free: 9.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02626/0.4307, allocations: 10.02 MB / 482.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.4308, allocations: 0 / 482.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.148e-05/0.4308, allocations: 12 kB / 482.9 MB, free: 15.34 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.001355/0.4322, allocations: 0.7721 MB / 483.7 MB, free: 14.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.4322, allocations: 8.031 kB / 483.7 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.4323, allocations: 63.25 kB / 483.8 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000562/0.4329, allocations: 400.7 kB / 484.1 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.433, allocations: 19.98 kB / 484.2 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.017e-05/0.433, allocations: 43.91 kB / 484.2 MB, free: 13.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005202/0.4336, allocations: 290.6 kB / 484.5 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006862/0.4343, allocations: 430.8 kB / 484.9 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.4343, allocations: 0 / 484.9 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.152e-05/0.4343, allocations: 3.984 kB / 484.9 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.4343, allocations: 12 kB / 484.9 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002493/0.4368, allocations: 1.76 MB / 486.7 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008358/0.4377, allocations: 366.3 kB / 487 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003767/0.4381, allocations: 207 kB / 487.2 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.197e-05/0.4381, allocations: 4.328 kB / 487.2 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003958/0.4385, allocations: 249.2 kB / 487.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 1.724e-06/0.4386, allocations: 4 kB / 487.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.0006396/0.4392, allocations: 349.9 kB / 487.8 MB, free: 10.17 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.822e-05/0.4393, allocations: 114.8 kB / 487.9 MB, free: 10.03 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002941/0.4396, allocations: 278.2 kB / 488.2 MB, free: 9.758 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.75e-05/0.4396, allocations: 25.7 kB / 488.2 MB, free: 9.727 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001649/0.4398, allocations: 264.6 kB / 488.5 MB, free: 9.465 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.4399, allocations: 122.2 kB / 488.6 MB, free: 9.344 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.915e-05/0.4399, allocations: 4 kB / 488.6 MB, free: 9.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.4401, allocations: 354.8 kB / 489 MB, free: 8.984 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.4402, allocations: 105.1 kB / 489.1 MB, free: 8.883 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002483/0.4405, allocations: 227.5 kB / 489.3 MB, free: 8.613 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.4407, allocations: 133.8 kB / 489.4 MB, free: 8.484 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.4407, allocations: 0 / 489.4 MB, free: 8.484 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006171/0.4413, allocations: 414 kB / 489.8 MB, free: 8.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004598/0.4418, allocations: 1.344 MB / 491.2 MB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.4418, allocations: 4 kB / 491.2 MB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002678/0.4421, allocations: 72.86 kB / 491.3 MB, free: 6.539 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000357/0.4425, allocations: 95.88 kB / 491.3 MB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001495/0.444, allocations: 1.623 MB / 493 MB, free: 4.703 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000362/0.4444, allocations: 59.62 kB / 493 MB, free: 4.645 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.417e-05/0.4444, allocations: 20 kB / 493 MB, free: 4.625 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.486e-06/0.4444, allocations: 4 kB / 493.1 MB, free: 4.621 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005678/0.445, allocations: 368.8 kB / 493.4 MB, free: 4.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.445, allocations: 4 kB / 493.4 MB, free: 4.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001751/0.4452, allocations: 68.81 kB / 493.5 MB, free: 4.184 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003148/0.4455, allocations: 88.23 kB / 493.6 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001344/0.4469, allocations: 1.638 MB / 495.2 MB, free: 2.348 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003155/0.4472, allocations: 51.61 kB / 495.3 MB, free: 2.297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.832e-05/0.4472, allocations: 16 kB / 495.3 MB, free: 2.281 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 (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.0001547/0.4474, allocations: 132 kB / 495.4 MB, free: 2.145 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.355e-05/0.4475, allocations: 43.59 kB / 495.4 MB, free: 2.102 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006346/0.4481, allocations: 378.1 kB / 495.8 MB, free: 1.719 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.4481, allocations: 4 kB / 495.8 MB, free: 1.715 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.4481, allocations: 0 / 495.8 MB, free: 1.715 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.4482, allocations: 7.938 kB / 495.8 MB, free: 1.707 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.4494, allocations: 0.9188 MB / 496.7 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.654e-06/0.4494, allocations: 0 / 496.7 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003456/0.4497, allocations: 71.89 kB / 496.8 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001729/0.4499, allocations: 64.83 kB / 496.9 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.696e-05/0.4499, allocations: 4 kB / 496.9 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001338/0.4513, allocations: 1.638 MB / 498.5 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4513, allocations: 4.031 kB / 498.5 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008073/0.4521, allocations: 0.6385 MB / 499.2 MB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001567/0.4523, allocations: 148.7 kB / 499.3 MB, free: 14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.834e-05/0.4524, allocations: 7.984 kB / 499.3 MB, free: 13.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000326/0.4527, allocations: 35.97 kB / 499.4 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000109/0.4528, allocations: 43.88 kB / 499.4 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.4528, allocations: 19.98 kB / 499.4 MB, free: 13.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002118/0.4531, allocations: 208.6 kB / 499.6 MB, free: 13.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4531, allocations: 0 / 499.6 MB, free: 13.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008494/0.4539, allocations: 223.2 kB / 499.8 MB, free: 13.47 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.0001757/0.4541, allocations: 130.8 kB / 500 MB, free: 13.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001256/0.4554, allocations: 0.855 MB / 0.4891 GB, free: 12.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4554, allocations: 3.938 kB / 0.4891 GB, free: 12.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003811/0.4558, allocations: 303.4 kB / 0.4894 GB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004545/0.4562, allocations: 63.7 kB / 0.4894 GB, free: 12.06 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00165/0.4579, allocations: 0.7885 MB / 0.4902 GB, free: 11.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004185/0.4583, allocations: 0.8675 MB / 0.4911 GB, free: 10.35 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002742/0.4586, allocations: 67.27 kB / 0.4911 GB, free: 10.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.354e-05/0.4587, allocations: 27.44 kB / 0.4911 GB, free: 10.25 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.4587, allocations: 0 / 0.4911 GB, free: 10.25 MB / 378.7 MB Notification: Performance of Templates: time 0.01206/0.4708, allocations: 6.351 MB / 0.4973 GB, free: 4 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