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_R.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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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_4.0.0_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_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 110.1 kB / 17.7 MB, free: 5.418 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.001117/0.001117, allocations: 192 kB / 18.64 MB, free: 4.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.21/1.21, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.222e-05/2.221e-05, allocations: 9.031 kB / 302 MB, free: 5.207 MB / 238.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.004698/0.004733, allocations: 3.895 MB / 305.9 MB, free: 1.301 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.006213, allocations: 1.003 MB / 306.9 MB, free: 304 kB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001776/0.006402, allocations: 11.94 kB / 306.9 MB, free: 292 kB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001918/0.0066, allocations: 91.03 kB / 307 MB, free: 200 kB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002021/0.006811, allocations: 138.8 kB / 307.2 MB, free: 60 kB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004486/0.007284, allocations: 230.2 kB / 307.4 MB, free: 15.84 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006161/0.007909, allocations: 0.7594 MB / 308.2 MB, free: 15.07 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003467/0.008264, allocations: 264.6 kB / 308.4 MB, free: 14.81 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002261/0.008498, allocations: 243.1 kB / 308.6 MB, free: 14.57 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002306/0.008735, allocations: 274.6 kB / 308.9 MB, free: 14.3 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 7.15e-05/0.008813, allocations: 64 kB / 309 MB, free: 14.24 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.224e-05/0.008902, allocations: 60 kB / 309 MB, free: 14.18 MB / 254.1 MB Notification: Performance of combineBinaries: time 0.0005825/0.009489, allocations: 0.9115 MB / 310 MB, free: 13.26 MB / 254.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002691/0.009765, allocations: 0.5657 MB / 310.5 MB, free: 12.69 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.009874, allocations: 99.69 kB / 310.6 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd: time 6.345e-05/0.009944, allocations: 35.75 kB / 310.6 MB, free: 12.55 MB / 254.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 (116) * Number of variables: 116 (116) Notification: Performance of Bindings: time 0.00215/0.0121, allocations: 2.596 MB / 313.2 MB, free: 9.836 MB / 254.1 MB Notification: Performance of FunctionAlias: time 9.099e-05/0.0122, allocations: 103.9 kB / 313.3 MB, free: 9.734 MB / 254.1 MB Notification: Performance of Early Inline: time 0.001152/0.01336, allocations: 1.327 MB / 314.7 MB, free: 8.383 MB / 254.1 MB Notification: Performance of simplify1: time 0.0001201/0.01348, allocations: 115.9 kB / 314.8 MB, free: 8.27 MB / 254.1 MB Notification: Performance of Alias: time 0.00245/0.01594, allocations: 2.392 MB / 317.2 MB, free: 5.613 MB / 254.1 MB Notification: Performance of simplify2: time 7.434e-05/0.01603, allocations: 71.89 kB / 317.2 MB, free: 5.543 MB / 254.1 MB Notification: Performance of Events: time 0.0003211/0.01636, allocations: 260 kB / 317.5 MB, free: 5.289 MB / 254.1 MB Notification: Performance of Detect States: time 0.0004235/0.01679, allocations: 434.6 kB / 317.9 MB, free: 4.848 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0004248/0.01722, allocations: 426.3 kB / 318.3 MB, free: 4.379 MB / 254.1 MB Notification: Performance of Causalize: time 0.002071/0.0193, allocations: 2.172 MB / 320.5 MB, free: 2.188 MB / 254.1 MB Notification: Performance of After Index Reduction Inline: time 0.0009089/0.02022, allocations: 0.9811 MB / 321.5 MB, free: 1.18 MB / 254.1 MB Notification: Performance of Inline: time 0.001572/0.0218, allocations: 1.719 MB / 323.2 MB, free: 15.43 MB / 270.1 MB Notification: Performance of Partitioning: time 0.0001101/0.02192, allocations: 107.6 kB / 323.3 MB, free: 15.31 MB / 270.1 MB Notification: Performance of Cleanup: time 0.0001782/0.02211, allocations: 207.6 kB / 323.5 MB, free: 15.11 MB / 270.1 MB Notification: Performance of Causalize: time 0.009066/0.03118, allocations: 10.54 MB / 334.1 MB, free: 4.977 MB / 270.1 MB Notification: Performance of Tearing: time 0.0007404/0.03194, allocations: 0.8867 MB / 335 MB, free: 3.992 MB / 270.1 MB Notification: Performance of Initialization: time 2.024e-06/0.03195, allocations: 4 kB / 335 MB, free: 3.988 MB / 270.1 MB Notification: Performance of Tearing: time 0.0003417/0.0323, allocations: 458 kB / 335.4 MB, free: 3.492 MB / 270.1 MB Notification: Performance of Categorize: time 1.792e-05/0.03233, allocations: 8 kB / 335.4 MB, free: 3.484 MB / 270.1 MB Notification: Performance of Solve: time 0.0005391/0.03287, allocations: 323.8 kB / 335.7 MB, free: 3.168 MB / 270.1 MB Notification: Performance of Jacobian: time 0.0006567/0.03354, allocations: 0.7183 MB / 336.4 MB, free: 2.406 MB / 270.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: ............................. 4 (4) {meanCurrent.x, meanVoltage.x, inductor.i, capacitor.v} * 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: ................. 26 (26) {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_7, $TEV_6, $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: ........... 51 (scalar:49, 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: ........... 103 (scalar:101, 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: ........... 103 (scalar:101, 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.0001227/0.03367, allocations: 87.58 kB / 336.5 MB, free: 2.348 MB / 270.1 MB Notification: Performance of SimCode: time 0.002094/0.03577, allocations: 2.637 MB / 339.2 MB, free: 15.66 MB / 286.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.