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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 116.8 kB / 17.76 MB, free: 5.211 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.001113/0.001113, allocations: 192.6 kB / 18.69 MB, free: 4.289 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.321/1.321, allocations: 222.9 MB / 242.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.708e-05/2.71e-05, allocations: 2.281 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL): time 0.005663/0.005698, allocations: 4.011 MB / 356 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002054/0.007776, allocations: 1.013 MB / 357 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000288/0.008079, allocations: 8 kB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003031/0.008389, allocations: 103 kB / 357.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003042/0.008702, allocations: 150.7 kB / 357.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006053/0.00934, allocations: 235.6 kB / 357.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007606/0.01011, allocations: 0.7829 MB / 358.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004225/0.01054, allocations: 272.6 kB / 358.5 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000267/0.01082, allocations: 267 kB / 358.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002952/0.01112, allocations: 282.6 kB / 359.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.957e-05/0.01123, allocations: 60 kB / 359.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.45e-05/0.01133, allocations: 64 kB / 359.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0008604/0.01219, allocations: 0.9463 MB / 360.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004082/0.01261, allocations: 0.5927 MB / 360.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.01277, allocations: 103.7 kB / 360.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001422/0.01291, allocations: 31.8 kB / 360.9 MB, free: 10.29 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 (122) * Number of variables: 122 (122) Notification: Performance of Bindings: time 0.002772/0.01569, allocations: 2.701 MB / 363.6 MB, free: 7.465 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001038/0.01581, allocations: 111.9 kB / 363.7 MB, free: 7.355 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001327/0.01714, allocations: 1.393 MB / 365.1 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001324/0.01728, allocations: 119.8 kB / 365.2 MB, free: 5.812 MB / 302.1 MB Notification: Performance of Alias: time 0.003526/0.02081, allocations: 2.819 MB / 368 MB, free: 2.727 MB / 302.1 MB Notification: Performance of simplify2: time 8.108e-05/0.02091, allocations: 79.88 kB / 368.1 MB, free: 2.648 MB / 302.1 MB Notification: Performance of Events: time 0.0003837/0.0213, allocations: 257.6 kB / 368.3 MB, free: 2.398 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006024/0.02191, allocations: 462.3 kB / 368.8 MB, free: 1.934 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0004798/0.0224, allocations: 434.4 kB / 369.2 MB, free: 1.457 MB / 302.1 MB Notification: Performance of Causalize: time 0.1897/0.2121, allocations: 1.614 MB / 370.8 MB, free: 18.75 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001188/0.2133, allocations: 1.006 MB / 371.8 MB, free: 18.7 MB / 302.1 MB Notification: Performance of Inline: time 0.002073/0.2154, allocations: 1.812 MB / 373.6 MB, free: 18.54 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001348/0.2155, allocations: 115.2 kB / 373.8 MB, free: 18.51 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002295/0.2158, allocations: 215.9 kB / 374 MB, free: 18.5 MB / 302.1 MB Notification: Performance of Causalize: time 0.0122/0.228, allocations: 9.084 MB / 383.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of Tearing: time 0.000961/0.229, allocations: 0.8848 MB / 383.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Initialization: time 2.254e-06/0.229, allocations: 0.9375 kB / 383.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004559/0.2295, allocations: 452.8 kB / 384.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of Categorize: time 3.365e-05/0.2295, allocations: 6.031 kB / 384.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of Solve: time 0.0008922/0.2304, allocations: 335.4 kB / 384.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0007078/0.2311, allocations: 0.7382 MB / 385.5 MB, free: 14.33 MB / 302.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: ............................. 5 (5) {meanCurrent.x, meanVoltage.x, inductor.i, capacitor.v, loadInductor.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: ................. 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: ........... 53 (scalar:51, 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: ........... 107 (scalar:105, 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: ........... 107 (scalar:105, 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.0001559/0.2313, allocations: 77.38 kB / 385.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of SimCode: time 0.002153/0.2334, allocations: 2.722 MB / 388.3 MB, free: 12.77 MB / 302.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.