Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.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_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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001451/0.001451, allocations: 199 kB / 18.06 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.5 MB / 245.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007536/0.0007533, allocations: 92.25 kB / 297.4 MB, free: 6.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002101/0.0002102, allocations: 4 kB / 357.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1917/0.1919, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09344/0.2854, allocations: 87.85 MB / 496.5 MB, free: 3.707 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002368/0.2857, allocations: 91.92 kB / 496.6 MB, free: 3.617 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02826/0.314, allocations: 10.54 MB / 0.4953 GB, free: 9.027 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.314, allocations: 0 / 0.4953 GB, free: 9.027 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.583e-05/0.3141, allocations: 15.94 kB / 0.4953 GB, free: 9.012 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001547/0.3156, allocations: 0.8417 MB / 0.4961 GB, free: 8.113 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.3157, allocations: 8.031 kB / 0.4961 GB, free: 8.105 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.3158, allocations: 64.19 kB / 0.4962 GB, free: 8.043 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005407/0.3163, allocations: 422.9 kB / 0.4966 GB, free: 7.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.847e-05/0.3164, allocations: 37.38 kB / 0.4966 GB, free: 7.551 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.043e-05/0.3165, allocations: 52.38 kB / 0.4967 GB, free: 7.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009458/0.3174, allocations: 0.5363 MB / 0.4972 GB, free: 6.945 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.3174, allocations: 192 / 0.4972 GB, free: 6.945 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.197e-05/0.3175, allocations: 23.94 kB / 0.4972 GB, free: 6.922 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.3175, allocations: 12 kB / 0.4972 GB, free: 6.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008511/0.3184, allocations: 407.7 kB / 0.4976 GB, free: 6.512 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002571/0.321, allocations: 1.877 MB / 0.4994 GB, free: 4.531 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.322, allocations: 440 kB / 0.4999 GB, free: 4.094 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005344/0.3226, allocations: 253.3 kB / 0.5001 GB, free: 3.844 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.842e-05/0.3226, allocations: 12.25 kB / 0.5001 GB, free: 3.832 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005927/0.3232, allocations: 317 kB / 0.5004 GB, free: 3.504 MB / 378.7 MB Notification: Performance of pre-optimization done (n=44): time 2.415e-06/0.3232, allocations: 0 / 0.5004 GB, free: 3.504 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.001741/0.325, allocations: 0.7253 MB / 0.5011 GB, free: 2.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.96e-05/0.3251, allocations: 118.7 kB / 0.5012 GB, free: 2.609 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004073/0.3255, allocations: 381.7 kB / 0.5016 GB, free: 2.223 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.324e-05/0.3255, allocations: 41.7 kB / 0.5016 GB, free: 2.176 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.3257, allocations: 256.9 kB / 0.5019 GB, free: 1.922 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.3258, allocations: 138.1 kB / 0.502 GB, free: 1.785 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.59e-05/0.3258, allocations: 8 kB / 0.502 GB, free: 1.777 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.326, allocations: 358.8 kB / 0.5024 GB, free: 1.418 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003627/0.3263, allocations: 161 kB / 0.5025 GB, free: 1.262 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004258/0.3268, allocations: 284.5 kB / 0.5028 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000774/0.3275, allocations: 457 kB / 0.5032 GB, free: 444 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3276, allocations: 3.938 kB / 0.5032 GB, free: 440 kB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.1645/0.4921, allocations: 0.5655 MB / 0.5038 GB, free: 93.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000141/0.4923, allocations: 214.7 kB / 0.504 GB, free: 93.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.4923, allocations: 4.531 kB / 0.504 GB, free: 93.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003502/0.4927, allocations: 69.92 kB / 0.5041 GB, free: 93.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004487/0.4931, allocations: 102 kB / 0.5042 GB, free: 93.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001619/0.4948, allocations: 1.695 MB / 0.5058 GB, free: 91.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005422/0.4953, allocations: 66.59 kB / 0.5059 GB, free: 91.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.836e-05/0.4954, allocations: 21.5 kB / 0.5059 GB, free: 91.85 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/0.4954, allocations: 4.5 kB / 0.5059 GB, free: 91.85 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001073/0.4965, allocations: 0.489 MB / 0.5064 GB, free: 91.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.4965, allocations: 8.875 kB / 0.5064 GB, free: 91.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002276/0.4967, allocations: 78.89 kB / 0.5065 GB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003515/0.4971, allocations: 94.66 kB / 0.5065 GB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/0.4984, allocations: 1.695 MB / 0.5082 GB, free: 90.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003964/0.4988, allocations: 62.42 kB / 0.5083 GB, free: 90.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.439e-05/0.4989, allocations: 20.34 kB / 0.5083 GB, free: 90.47 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 (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.0003683/0.4993, allocations: 267.9 kB / 0.5085 GB, free: 90.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.279e-05/0.4993, allocations: 45.98 kB / 0.5086 GB, free: 90.28 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/0.5004, allocations: 0.4922 MB / 0.5091 GB, free: 90.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.5004, allocations: 5.312 kB / 0.5091 GB, free: 90.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.5004, allocations: 0.75 kB / 0.5091 GB, free: 90.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.433e-06/0.5004, allocations: 2.344 kB / 0.5091 GB, free: 90.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001669/0.5021, allocations: 1.11 MB / 0.5102 GB, free: 89.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.5021, allocations: 0.6562 kB / 0.5102 GB, free: 89.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004025/0.5025, allocations: 79.05 kB / 0.5102 GB, free: 89.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002496/0.5028, allocations: 71.02 kB / 0.5103 GB, free: 89.9 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.792e-05/0.5028, allocations: 18.11 kB / 0.5103 GB, free: 89.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001412/0.5042, allocations: 1.684 MB / 0.512 GB, free: 88.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.5042, allocations: 0.5625 kB / 0.512 GB, free: 88.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.5056, allocations: 0.7898 MB / 0.5127 GB, free: 88.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.5058, allocations: 159 kB / 0.5129 GB, free: 88.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.494e-05/0.5058, allocations: 14.41 kB / 0.5129 GB, free: 88.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003213/0.5062, allocations: 41.72 kB / 0.5129 GB, free: 88.22 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.5063, allocations: 44.28 kB / 0.513 GB, free: 88.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.024e-05/0.5063, allocations: 23.16 kB / 0.513 GB, free: 88.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002516/0.5066, allocations: 266.5 kB / 0.5133 GB, free: 88.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5066, allocations: 2.625 kB / 0.5133 GB, free: 88.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008953/0.5075, allocations: 248.7 kB / 0.5135 GB, free: 88.02 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) * Number of clocked states: 0 () * 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.0001603/0.5076, allocations: 138.9 kB / 0.5136 GB, free: 87.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.5092, allocations: 1.007 MB / 0.5146 GB, free: 87.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.5092, allocations: 6.875 kB / 0.5146 GB, free: 87.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005016/0.5097, allocations: 370.9 kB / 0.515 GB, free: 87.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000625/0.5104, allocations: 87.39 kB / 0.5151 GB, free: 87.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.5121, allocations: 1.368 MB / 0.5164 GB, free: 86.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.5124, allocations: 0.8553 MB / 0.5172 GB, free: 85.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.5125, allocations: 38.34 kB / 0.5173 GB, free: 85.56 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.5125, allocations: 0 / 0.5173 GB, free: 85.56 MB / 378.7 MB Notification: Performance of Templates: time 0.009073/0.5216, allocations: 8.278 MB / 0.5253 GB, free: 83.74 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & ./Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat","/var/lib/jenkins1/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_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches