Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009619/0.0009618, allocations: 194.2 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 226.5 MB / 245.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007921/0.0007921, allocations: 92.55 kB / 297.4 MB, free: 6.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002037/0.0002037, allocations: 8 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1835/0.1837, allocations: 51.28 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0926/0.2763, allocations: 87.65 MB / 496.3 MB, free: 3.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/0.2766, allocations: 87.94 kB / 496.4 MB, free: 3.844 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0266/0.3032, allocations: 10.19 MB / 0.4947 GB, free: 9.598 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3033, allocations: 3.938 kB / 0.4947 GB, free: 9.594 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.199e-05/0.3033, allocations: 19.98 kB / 0.4948 GB, free: 9.574 MB / 378.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.001306/0.3046, allocations: 0.8184 MB / 0.4956 GB, free: 8.703 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.3047, allocations: 12.03 kB / 0.4956 GB, free: 8.691 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.3048, allocations: 60.28 kB / 0.4956 GB, free: 8.633 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005115/0.3053, allocations: 408.5 kB / 0.496 GB, free: 8.195 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.247e-05/0.3053, allocations: 37.38 kB / 0.4961 GB, free: 8.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.57e-05/0.3054, allocations: 48.38 kB / 0.4961 GB, free: 8.113 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008938/0.3063, allocations: 0.5128 MB / 0.4966 GB, free: 7.582 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.3063, allocations: 3.938 kB / 0.4966 GB, free: 7.578 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.017e-05/0.3064, allocations: 23.98 kB / 0.4966 GB, free: 7.555 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.3064, allocations: 12 kB / 0.4966 GB, free: 7.543 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008074/0.3072, allocations: 391.7 kB / 0.497 GB, free: 7.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002472/0.3097, allocations: 1.803 MB / 0.4988 GB, free: 5.262 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.3108, allocations: 450.8 kB / 0.4992 GB, free: 4.812 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005211/0.3113, allocations: 256.7 kB / 0.4994 GB, free: 4.559 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.976e-05/0.3114, allocations: 11.92 kB / 0.4995 GB, free: 4.547 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005467/0.3119, allocations: 292.6 kB / 0.4997 GB, free: 4.242 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 2.204e-06/0.3119, allocations: 0 / 0.4997 GB, free: 4.242 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001687/0.3136, allocations: 0.7285 MB / 0.5004 GB, free: 3.484 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.613e-05/0.3137, allocations: 118.8 kB / 0.5006 GB, free: 3.344 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003978/0.3141, allocations: 373.7 kB / 0.5009 GB, free: 2.965 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.998e-05/0.3142, allocations: 37.7 kB / 0.501 GB, free: 2.922 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001641/0.3143, allocations: 252.3 kB / 0.5012 GB, free: 2.672 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.307e-05/0.3144, allocations: 126.2 kB / 0.5013 GB, free: 2.547 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.52e-05/0.3145, allocations: 12 kB / 0.5013 GB, free: 2.535 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.3146, allocations: 350.8 kB / 0.5017 GB, free: 2.184 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003408/0.3149, allocations: 157 kB / 0.5018 GB, free: 2.031 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004208/0.3154, allocations: 284.1 kB / 0.5021 GB, free: 1.703 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007154/0.3161, allocations: 442.6 kB / 0.5025 GB, free: 1.219 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.3161, allocations: 0 / 0.5025 GB, free: 1.219 MB / 378.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001007/0.3171, allocations: 0.5576 MB / 0.503 GB, free: 0.6445 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001245/0.3173, allocations: 222.5 kB / 0.5033 GB, free: 380 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.3173, allocations: 4 kB / 0.5033 GB, free: 376 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002633/0.3175, allocations: 68.81 kB / 0.5033 GB, free: 304 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003378/0.3179, allocations: 99.88 kB / 0.5034 GB, free: 204 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1533/0.4712, allocations: 1.69 MB / 0.5051 GB, free: 92.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005052/0.4718, allocations: 63.36 kB / 0.5051 GB, free: 92.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/0.4718, allocations: 21.34 kB / 0.5052 GB, free: 92.19 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.026e-05/0.4718, allocations: 3.875 kB / 0.5052 GB, free: 92.19 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001006/0.4728, allocations: 484.3 kB / 0.5056 GB, free: 92.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.4729, allocations: 4.906 kB / 0.5056 GB, free: 92.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002172/0.4731, allocations: 70.02 kB / 0.5057 GB, free: 92.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003226/0.4734, allocations: 89.67 kB / 0.5058 GB, free: 92.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/0.4747, allocations: 1.7 MB / 0.5074 GB, free: 90.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003531/0.4751, allocations: 62.48 kB / 0.5075 GB, free: 90.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.231e-05/0.4751, allocations: 20.34 kB / 0.5075 GB, free: 90.81 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 () * Number of clocked 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.0002967/0.4754, allocations: 267.4 kB / 0.5078 GB, free: 90.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.325e-05/0.4755, allocations: 46.88 kB / 0.5078 GB, free: 90.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009734/0.4765, allocations: 491.1 kB / 0.5083 GB, free: 90.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.4765, allocations: 8.656 kB / 0.5083 GB, free: 90.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.483e-06/0.4765, allocations: 0 / 0.5083 GB, free: 90.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.4765, allocations: 2.531 kB / 0.5083 GB, free: 90.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001597/0.4781, allocations: 1.077 MB / 0.5093 GB, free: 90.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.4781, allocations: 0 / 0.5093 GB, free: 90.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000314/0.4784, allocations: 74.17 kB / 0.5094 GB, free: 90.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001904/0.4786, allocations: 71.56 kB / 0.5095 GB, free: 90.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.247e-05/0.4787, allocations: 11.45 kB / 0.5095 GB, free: 90.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001278/0.48, allocations: 1.694 MB / 0.5112 GB, free: 88.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.48, allocations: 1 kB / 0.5112 GB, free: 88.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/0.4815, allocations: 0.767 MB / 0.5119 GB, free: 88.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001811/0.4816, allocations: 158 kB / 0.5121 GB, free: 88.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.444e-05/0.4817, allocations: 16.55 kB / 0.5121 GB, free: 88.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003309/0.4821, allocations: 37.27 kB / 0.5121 GB, free: 88.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.4822, allocations: 50.28 kB / 0.5122 GB, free: 88.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-05/0.4822, allocations: 20.05 kB / 0.5122 GB, free: 88.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002684/0.4825, allocations: 263 kB / 0.5124 GB, free: 88.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4825, allocations: 0.5 kB / 0.5124 GB, free: 88.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008872/0.4834, allocations: 241.3 kB / 0.5127 GB, free: 88.46 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) * Number of clocked states: 0 () * 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.0001525/0.4836, allocations: 125.2 kB / 0.5128 GB, free: 88.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001423/0.485, allocations: 0.9968 MB / 0.5137 GB, free: 87.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.485, allocations: 3.094 kB / 0.5137 GB, free: 87.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004652/0.4855, allocations: 360 kB / 0.5141 GB, free: 87.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005778/0.4861, allocations: 83.45 kB / 0.5142 GB, free: 87.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.4877, allocations: 1.267 MB / 0.5154 GB, free: 86.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/0.488, allocations: 0.8489 MB / 0.5162 GB, free: 86.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.4881, allocations: 36.75 kB / 0.5163 GB, free: 86.11 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4881, allocations: 0 / 0.5163 GB, free: 86.11 MB / 378.7 MB Notification: Performance of Templates: time 0.007863/0.496, allocations: 8.027 MB / 0.5241 GB, free: 84.82 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & ./Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches