Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 110.4 kB / 18.37 MB, free: 4.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 196.7 kB / 19.3 MB, free: 3.805 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.287/1.287, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.798e-05/2.801e-05, allocations: 2.281 kB / 282.1 MB, free: 2.484 MB / 222.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL): time 0.005404/0.005449, allocations: 3.616 MB / 285.7 MB, free: 14.84 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.007121, allocations: 0.9782 MB / 286.7 MB, free: 13.85 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002075/0.00734, allocations: 11.94 kB / 286.7 MB, free: 13.84 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002285/0.007574, allocations: 75.17 kB / 286.8 MB, free: 13.77 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002851/0.007866, allocations: 134.8 kB / 286.9 MB, free: 13.63 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004999/0.008386, allocations: 199.6 kB / 287.1 MB, free: 13.44 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006104/0.009006, allocations: 0.6696 MB / 287.8 MB, free: 12.77 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00034/0.009354, allocations: 238.7 kB / 288 MB, free: 12.53 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002179/0.00958, allocations: 215.2 kB / 288.2 MB, free: 12.32 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.009822, allocations: 242.8 kB / 288.4 MB, free: 12.08 MB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 7.054e-05/0.0099, allocations: 56 kB / 288.5 MB, free: 12.03 MB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.839e-05/0.009974, allocations: 56 kB / 288.5 MB, free: 11.97 MB / 238.1 MB Notification: Performance of combineBinaries: time 0.0005367/0.01052, allocations: 0.8033 MB / 289.3 MB, free: 11.16 MB / 238.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002691/0.01079, allocations: 0.5004 MB / 289.8 MB, free: 10.65 MB / 238.1 MB Notification: Performance of NFVerifyModel.verify: time 9.097e-05/0.01089, allocations: 91.69 kB / 289.9 MB, free: 10.56 MB / 238.1 MB Notification: Performance of FrontEnd: time 5.361e-05/0.01095, allocations: 23.88 kB / 290 MB, free: 10.54 MB / 238.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 (103) * Number of variables: 103 (103) Notification: Performance of Bindings: time 0.00205/0.013, allocations: 2.322 MB / 292.3 MB, free: 8.098 MB / 238.1 MB Notification: Performance of FunctionAlias: time 0.0001067/0.01312, allocations: 107.8 kB / 292.4 MB, free: 7.992 MB / 238.1 MB Notification: Performance of Early Inline: time 0.001113/0.01424, allocations: 1.198 MB / 293.6 MB, free: 6.766 MB / 238.1 MB Notification: Performance of simplify1: time 0.0001044/0.01435, allocations: 95.86 kB / 293.7 MB, free: 6.672 MB / 238.1 MB Notification: Performance of Alias: time 0.002349/0.0167, allocations: 2.115 MB / 295.8 MB, free: 4.34 MB / 238.1 MB Notification: Performance of simplify2: time 5.875e-05/0.01677, allocations: 63.91 kB / 295.9 MB, free: 4.277 MB / 238.1 MB Notification: Performance of Events: time 0.0003146/0.01709, allocations: 241.6 kB / 296.1 MB, free: 4.039 MB / 238.1 MB Notification: Performance of Detect States: time 0.0004187/0.01752, allocations: 396.8 kB / 296.5 MB, free: 3.637 MB / 238.1 MB Notification: Performance of Partitioning: time 0.0003948/0.01793, allocations: 386.4 kB / 296.9 MB, free: 3.207 MB / 238.1 MB Notification: Performance of Causalize: time 0.001964/0.0199, allocations: 1.921 MB / 298.8 MB, free: 1.25 MB / 238.1 MB Notification: Performance of After Index Reduction Inline: time 0.0008212/0.02073, allocations: 0.872 MB / 299.6 MB, free: 364 kB / 238.1 MB Notification: Performance of Inline: time 0.001542/0.02228, allocations: 1.547 MB / 301.2 MB, free: 14.77 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0001203/0.02241, allocations: 99.61 kB / 301.3 MB, free: 14.66 MB / 254.1 MB Notification: Performance of Cleanup: time 0.0001673/0.02259, allocations: 199.6 kB / 301.5 MB, free: 14.46 MB / 254.1 MB Notification: Performance of Causalize: time 0.009089/0.03168, allocations: 9.618 MB / 311.1 MB, free: 5.176 MB / 254.1 MB Notification: Performance of Tearing: time 0.0008172/0.03251, allocations: 0.8825 MB / 312 MB, free: 4.195 MB / 254.1 MB Notification: Performance of Initialization: time 6.41e-07/0.03252, allocations: 0 / 312 MB, free: 4.195 MB / 254.1 MB Notification: Performance of Tearing: time 0.0004107/0.03294, allocations: 454 kB / 312.4 MB, free: 3.703 MB / 254.1 MB Notification: Performance of Categorize: time 2.387e-05/0.03298, allocations: 8.047 kB / 312.4 MB, free: 3.695 MB / 254.1 MB Notification: Performance of Solve: time 0.0005312/0.03351, allocations: 291.4 kB / 312.7 MB, free: 3.41 MB / 254.1 MB Notification: Performance of Jacobian: time 0.0007638/0.03429, allocations: 0.6544 MB / 313.4 MB, free: 2.711 MB / 254.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 6 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 1 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 3 (3) {meanCurrent.x, meanVoltage.x, inductor.i} * Number of discrete states: .................... 6 (6) {meanVoltage.y, meanCurrent.y, signalPWM.sawtooth.T_start, signalPWM.sawtooth.count, signalPWM.zeroOrderHold.firstTrigger, signalPWM.zeroOrderHold.ySample} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 24 (24) {chopperStepDown.enableLogic.booleanReplicator.y, chopperStepDown.enableLogic.internalEnable, chopperStepDown.andCondition_p.u1, chopperStepDown.andCondition_p.u2, chopperStepDown.andCondition_p.y, chopperStepDown.transistor.off, chopperStepDown.diode.off, signalPWM.zeroOrderHold.sampleTrigger, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_5, $TEV_4, $TEV_3, $TEV_2, $TEV_1, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 44 (scalar:42, array:2, record:0) * Number of multi strong components: ............ 6 (algorithm:0, when:6, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 92 (scalar:90, array:2, record:0) * Number of multi strong components: ............ 2 (algorithm:2, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 92 (scalar:90, array:2, record:0) * Number of multi strong components: ............ 2 (algorithm:2, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 0.0001009/0.0344, allocations: 80.42 kB / 313.5 MB, free: 2.641 MB / 254.1 MB Notification: Performance of SimCode: time 0.002376/0.03679, allocations: 2.475 MB / 315.9 MB, free: 128 kB / 254.1 MB Error: Template error: A template call failed (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so: (null)). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics). [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SerializeModelInfo.mo:116:9-116:84:writable] Error: Internal error SerializeModelInfo.serialize failed [CodegenCFunctions.tpl:5962:14-5962:14:writable] Error: Template error: daeExpLbinary:ERR.