Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_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 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_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 106.4 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.001136/0.001135, allocations: 192.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.423/1.423, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.691e-05/2.693e-05, allocations: 3.547 kB / 327.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R): time 0.006961/0.006996, allocations: 5.702 MB / 332.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002939/0.009958, allocations: 1.556 MB / 334.5 MB, free: 12.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004185/0.01039, allocations: 23.94 kB / 334.5 MB, free: 12 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004348/0.01083, allocations: 182.2 kB / 334.7 MB, free: 11.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004926/0.01133, allocations: 269.6 kB / 334.9 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008064/0.01219, allocations: 411.5 kB / 335.3 MB, free: 11.15 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001374/0.01358, allocations: 1.532 MB / 336.9 MB, free: 9.613 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007545/0.01434, allocations: 0.5514 MB / 337.4 MB, free: 9.043 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004525/0.0148, allocations: 478.2 kB / 337.9 MB, free: 8.574 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004765/0.01529, allocations: 0.5055 MB / 338.4 MB, free: 8.066 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001493/0.01546, allocations: 144 kB / 338.5 MB, free: 7.926 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001695/0.01563, allocations: 144 kB / 338.7 MB, free: 7.785 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001155/0.0168, allocations: 1.684 MB / 340.4 MB, free: 6.082 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0006039/0.01741, allocations: 1.028 MB / 341.4 MB, free: 5.039 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002062/0.01762, allocations: 207.4 kB / 341.6 MB, free: 4.836 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001355/0.01776, allocations: 47.8 kB / 341.6 MB, free: 4.789 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: 216 (216) * Number of variables: 216 (216) Notification: Performance of Bindings: time 0.00433/0.0221, allocations: 4.883 MB / 346.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002009/0.02231, allocations: 227.8 kB / 346.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002544/0.02486, allocations: 2.753 MB / 349.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of simplify1: time 0.000224/0.02511, allocations: 203.8 kB / 349.7 MB, free: 12.52 MB / 302.1 MB Notification: Performance of Alias: time 0.005214/0.03033, allocations: 4.751 MB / 354.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001361/0.03048, allocations: 127.8 kB / 354.6 MB, free: 7.238 MB / 302.1 MB Notification: Performance of Events: time 0.0006183/0.03111, allocations: 0.5006 MB / 355.1 MB, free: 6.719 MB / 302.1 MB Notification: Performance of Detect States: time 0.0007134/0.03183, allocations: 0.7065 MB / 355.8 MB, free: 5.984 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0008801/0.03272, allocations: 0.837 MB / 356.6 MB, free: 5.094 MB / 302.1 MB Notification: Performance of Causalize: time 0.004869/0.0376, allocations: 4.917 MB / 361.5 MB, free: 288 kB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001898/0.03951, allocations: 1.899 MB / 363.4 MB, free: 14.35 MB / 318.1 MB Notification: Performance of Inline: time 0.003728/0.04325, allocations: 3.648 MB / 367.1 MB, free: 10.65 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002523/0.04351, allocations: 219.7 kB / 367.3 MB, free: 10.42 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0003774/0.0439, allocations: 399.5 kB / 367.7 MB, free: 10.02 MB / 318.1 MB Notification: Performance of Causalize: time 0.2265/0.2704, allocations: 24.03 MB / 391.7 MB, free: 39.53 MB / 318.1 MB Notification: Performance of Tearing: time 0.002738/0.2732, allocations: 2.775 MB / 394.5 MB, free: 38.15 MB / 318.1 MB Notification: Performance of Initialization: time 1.703e-06/0.2732, allocations: 0 / 394.5 MB, free: 38.15 MB / 318.1 MB Notification: Performance of Tearing: time 0.001219/0.2744, allocations: 1.378 MB / 395.9 MB, free: 37.47 MB / 318.1 MB Notification: Performance of Categorize: time 2.855e-05/0.2745, allocations: 4.969 kB / 395.9 MB, free: 37.47 MB / 318.1 MB Notification: Performance of Solve: time 0.0009811/0.2754, allocations: 0.5183 MB / 396.4 MB, free: 37.29 MB / 318.1 MB Notification: Performance of Jacobian: time 0.002944/0.2784, allocations: 2.982 MB / 399.4 MB, free: 36.18 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: ............................. 2 (2) {meanCurrent.x, meanVoltage.x} * 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: ........... 76 (scalar:70, 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: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 165 (scalar:159, 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: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 165 (scalar:159, 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: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 9.358e-05/0.2785, allocations: 107.2 kB / 399.5 MB, free: 36.16 MB / 318.1 MB Notification: Performance of SimCode: time 0.004481/0.283, allocations: 5.659 MB / 405.1 MB, free: 33.59 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.