Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_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.ChopperStepUp.ChopperStepUp_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor.v|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepUp.vDC1|chopperStepUp.iDC1|chopperStepUp.vDC2|chopperStepUp.iDC2",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor.v|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepUp.vDC1|chopperStepUp.iDC1|chopperStepUp.vDC2|chopperStepUp.iDC2",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 109.5 kB / 17.75 MB, free: 5.352 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.001372/0.001372, allocations: 188.2 kB / 18.68 MB, free: 4.426 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.316/1.316, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.243e-05/2.243e-05, allocations: 6.219 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R): time 0.004542/0.004572, allocations: 3.895 MB / 355.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.006229, allocations: 1.009 MB / 356.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002244/0.006464, allocations: 11.94 kB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002417/0.006712, allocations: 87.09 kB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002436/0.006963, allocations: 138.7 kB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005016/0.007487, allocations: 227.6 kB / 357.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006667/0.008164, allocations: 0.7518 MB / 358.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003896/0.008564, allocations: 268.5 kB / 358.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/0.008805, allocations: 247 kB / 358.6 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002692/0.009081, allocations: 274.7 kB / 358.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.2e-05/0.009172, allocations: 64 kB / 358.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.543e-05/0.009256, allocations: 64 kB / 359 MB, free: 12.19 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0005865/0.009849, allocations: 0.9153 MB / 359.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003067/0.01016, allocations: 0.5618 MB / 360.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.01028, allocations: 99.69 kB / 360.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001093/0.01039, allocations: 35.8 kB / 360.6 MB, free: 10.56 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: 116 (116) * Number of variables: 116 (116) Notification: Performance of Bindings: time 0.00214/0.01254, allocations: 2.592 MB / 363.2 MB, free: 7.844 MB / 302.1 MB Notification: Performance of FunctionAlias: time 9.303e-05/0.01264, allocations: 103.9 kB / 363.3 MB, free: 7.742 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001124/0.01377, allocations: 1.331 MB / 364.6 MB, free: 6.383 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001229/0.0139, allocations: 115.8 kB / 364.7 MB, free: 6.27 MB / 302.1 MB Notification: Performance of Alias: time 0.00287/0.01678, allocations: 2.678 MB / 367.4 MB, free: 3.332 MB / 302.1 MB Notification: Performance of simplify2: time 8.305e-05/0.01687, allocations: 79.88 kB / 367.5 MB, free: 3.254 MB / 302.1 MB Notification: Performance of Events: time 0.0003342/0.01721, allocations: 252 kB / 367.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of Detect States: time 0.0004432/0.01767, allocations: 453.8 kB / 368.2 MB, free: 2.555 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0004103/0.01809, allocations: 410.4 kB / 368.6 MB, free: 2.102 MB / 302.1 MB Notification: Performance of Causalize: time 0.001645/0.01974, allocations: 1.535 MB / 370.1 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.2148/0.2346, allocations: 0.9783 MB / 371.1 MB, free: 18.6 MB / 302.1 MB Notification: Performance of Inline: time 0.002163/0.2368, allocations: 1.767 MB / 372.9 MB, free: 18.48 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001442/0.2369, allocations: 121.7 kB / 373 MB, free: 18.45 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002324/0.2372, allocations: 218.2 kB / 373.2 MB, free: 18.43 MB / 302.1 MB Notification: Performance of Causalize: time 0.01136/0.2485, allocations: 8.851 MB / 382 MB, free: 16.5 MB / 302.1 MB Notification: Performance of Tearing: time 0.0008178/0.2494, allocations: 0.8753 MB / 382.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of Initialization: time 1.082e-06/0.2494, allocations: 2.953 kB / 382.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003562/0.2497, allocations: 455.8 kB / 383.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of Categorize: time 2.667e-05/0.2498, allocations: 4.172 kB / 383.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of Solve: time 0.0007738/0.2506, allocations: 322.7 kB / 383.7 MB, free: 15.44 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0007143/0.2513, allocations: 0.7306 MB / 384.4 MB, free: 15.02 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: ............................. 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) {chopperStepUp.enableLogic.booleanReplicator.y, chopperStepUp.enableLogic.internalEnable, chopperStepUp.andCondition_p.u1, chopperStepUp.andCondition_p.u2, chopperStepUp.andCondition_p.y, chopperStepUp.transistor.off, chopperStepUp.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: ........... 104 (scalar:102, 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: ........... 104 (scalar:102, 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 8.187e-05/0.2514, allocations: 69.28 kB / 384.5 MB, free: 15 MB / 302.1 MB Notification: Performance of SimCode: time 0.002484/0.2539, allocations: 2.661 MB / 387.1 MB, free: 13.5 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.