Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_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.HBridge.HBridge_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 109.9 kB / 16.42 MB, free: 6.512 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.001102/0.001102, allocations: 187.2 kB / 17.35 MB, free: 5.754 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.269/1.269, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.835e-05/1.836e-05, allocations: 2.281 kB / 327.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL): time 0.006197/0.006223, allocations: 5.8 MB / 333 MB, free: 13.47 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00239/0.008635, allocations: 1.575 MB / 334.6 MB, free: 11.89 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003387/0.008987, allocations: 23.88 kB / 334.6 MB, free: 11.87 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003878/0.009382, allocations: 190.2 kB / 334.8 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004232/0.009814, allocations: 269.6 kB / 335.1 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007021/0.01056, allocations: 411.5 kB / 335.5 MB, free: 11.01 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001277/0.01185, allocations: 1.567 MB / 337 MB, free: 9.438 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006912/0.01255, allocations: 0.5555 MB / 337.6 MB, free: 8.863 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004333/0.01299, allocations: 486.2 kB / 338.1 MB, free: 8.387 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004526/0.01345, allocations: 0.5094 MB / 338.6 MB, free: 7.875 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001493/0.0136, allocations: 144 kB / 338.7 MB, free: 7.734 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001602/0.01377, allocations: 144 kB / 338.9 MB, free: 7.594 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001104/0.01488, allocations: 1.738 MB / 340.6 MB, free: 5.836 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005612/0.01545, allocations: 1.051 MB / 341.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.01566, allocations: 207.4 kB / 341.9 MB, free: 4.566 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001167/0.01578, allocations: 55.75 kB / 341.9 MB, free: 4.512 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 (222) * Number of variables: 222 (222) Notification: Performance of Bindings: time 0.004122/0.01991, allocations: 4.988 MB / 346.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001915/0.02011, allocations: 239.7 kB / 347.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002478/0.02259, allocations: 2.792 MB / 349.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002322/0.02284, allocations: 207.7 kB / 350.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of Alias: time 0.00509/0.02794, allocations: 4.872 MB / 355 MB, free: 6.797 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001475/0.0281, allocations: 127.8 kB / 355.1 MB, free: 6.672 MB / 302.1 MB Notification: Performance of Events: time 0.0005742/0.02869, allocations: 0.5175 MB / 355.6 MB, free: 6.125 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006758/0.02937, allocations: 0.7283 MB / 356.4 MB, free: 5.375 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0008208/0.0302, allocations: 0.8449 MB / 357.2 MB, free: 4.477 MB / 302.1 MB Notification: Performance of Causalize: time 0.004477/0.03469, allocations: 4.944 MB / 362.2 MB, free: 15.65 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.001741/0.03645, allocations: 1.935 MB / 364.1 MB, free: 13.68 MB / 318.1 MB Notification: Performance of Inline: time 0.003442/0.0399, allocations: 3.694 MB / 367.8 MB, free: 9.926 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002312/0.04014, allocations: 223.7 kB / 368 MB, free: 9.691 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0003233/0.04048, allocations: 415.5 kB / 368.4 MB, free: 9.277 MB / 318.1 MB Notification: Performance of Causalize: time 0.1559/0.1964, allocations: 24.37 MB / 392.8 MB, free: 38.15 MB / 318.1 MB Notification: Performance of Tearing: time 0.001914/0.1984, allocations: 2.939 MB / 395.7 MB, free: 36.43 MB / 318.1 MB Notification: Performance of Initialization: time 1.102e-06/0.1984, allocations: 0.9375 kB / 395.7 MB, free: 36.43 MB / 318.1 MB Notification: Performance of Tearing: time 0.0009267/0.1993, allocations: 1.476 MB / 397.2 MB, free: 35.55 MB / 318.1 MB Notification: Performance of Categorize: time 1.965e-05/0.1993, allocations: 5.125 kB / 397.2 MB, free: 35.55 MB / 318.1 MB Notification: Performance of Solve: time 0.0008084/0.2002, allocations: 0.5406 MB / 397.7 MB, free: 35.37 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001683/0.2019, allocations: 2.095 MB / 399.8 MB, free: 34.53 MB / 318.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: ................. 55 (55) {hbridge.enableLogic.booleanReplicator.y, hbridge.enableLogic.internalEnable, hbridge.andCondition_p.u2, hbridge.andCondition_n.u2, hbridge.inverter_p.enableLogic.booleanReplicator.y, hbridge.inverter_p.enableLogic.internalEnable, hbridge.inverter_p.andCondition_p.u2, hbridge.inverter_p.andCondition_p.y, hbridge.inverter_p.andCondition_n.u2, hbridge.inverter_p.andCondition_n.y, hbridge.inverter_p.fire_n, hbridge.inverter_p.transistor_p.off, hbridge.inverter_p.diode_p.off, hbridge.inverter_p.transistor_n.off, hbridge.inverter_p.diode_n.off, hbridge.inverter_n.enableLogic.booleanReplicator.y, hbridge.inverter_n.enableLogic.internalEnable, hbridge.inverter_n.andCondition_p.u2, hbridge.inverter_n.andCondition_p.y, hbridge.inverter_n.andCondition_n.u2, hbridge.inverter_n.andCondition_n.y, hbridge.inverter_n.fire_n, hbridge.inverter_n.transistor_p.off, hbridge.inverter_n.diode_p.off, hbridge.inverter_n.transistor_n.off, hbridge.inverter_n.diode_n.off, signalPWM.zeroOrderHold.sampleTrigger, signalPWM.inverse.u, $SEV_20, $SEV_19, $SEV_18, $SEV_17, $SEV_16, $SEV_15, $SEV_14, $SEV_13, $SEV_12, $SEV_11, $SEV_10, $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: ........... 82 (scalar:76, array:6, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 173 (scalar:167, array:6, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 173 (scalar:167, array:6, 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: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 7.959e-05/0.2019, allocations: 110.2 kB / 399.9 MB, free: 34.5 MB / 318.1 MB Notification: Performance of SimCode: time 0.003212/0.2052, allocations: 5.672 MB / 405.6 MB, free: 31.91 MB / 318.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.