Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.y|meanVoltage.y|hbridge.dc_n1.v|hbridge.dc_n1.i|hbridge.dc_p1.v|hbridge.dc_p1.i|hbridge.dc_n2.v|hbridge.dc_n2.i|hbridge.dc_p2.v|hbridge.dc_p2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.y|meanVoltage.y|hbridge.dc_n1.v|hbridge.dc_n1.i|hbridge.dc_p1.v|hbridge.dc_p1.i|hbridge.dc_n2.v|hbridge.dc_n2.i|hbridge.dc_p2.v|hbridge.dc_p2.i",fileNamePrefix="Modelica_3.2.3_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.001183/0.001183, allocations: 106.3 kB / 18.35 MB, free: 4.859 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.0009889/0.000989, allocations: 191.5 kB / 19.29 MB, free: 3.93 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.312/1.312, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.033e-05/2.035e-05, allocations: 2.281 kB / 282.1 MB, free: 2.508 MB / 222.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R): time 0.006915/0.006952, allocations: 5.691 MB / 287.8 MB, free: 12.78 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.002524/0.009502, allocations: 1.563 MB / 289.3 MB, free: 11.21 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003418/0.009862, allocations: 19.88 kB / 289.3 MB, free: 11.19 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000376/0.01025, allocations: 190.2 kB / 289.5 MB, free: 11 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004161/0.01067, allocations: 261.7 kB / 289.8 MB, free: 10.74 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006833/0.01139, allocations: 422.4 kB / 290.2 MB, free: 10.33 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.001227/0.01263, allocations: 1.532 MB / 291.7 MB, free: 8.797 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007206/0.01336, allocations: 0.5475 MB / 292.3 MB, free: 8.227 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004103/0.01377, allocations: 478.2 kB / 292.7 MB, free: 7.758 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004245/0.01421, allocations: 0.5016 MB / 293.2 MB, free: 7.254 MB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001475/0.01436, allocations: 140 kB / 293.4 MB, free: 7.117 MB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001619/0.01453, allocations: 144 kB / 293.5 MB, free: 6.977 MB / 238.1 MB Notification: Performance of combineBinaries: time 0.001122/0.01566, allocations: 1.688 MB / 295.2 MB, free: 5.27 MB / 238.1 MB Notification: Performance of replaceArrayConstructors: time 0.000571/0.01624, allocations: 1.028 MB / 296.2 MB, free: 4.227 MB / 238.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002007/0.01644, allocations: 207.3 kB / 296.4 MB, free: 4.023 MB / 238.1 MB Notification: Performance of FrontEnd: time 0.0001111/0.01656, allocations: 47.81 kB / 296.5 MB, free: 3.977 MB / 238.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.004149/0.02072, allocations: 4.883 MB / 301.4 MB, free: 14.93 MB / 254.1 MB Notification: Performance of FunctionAlias: time 0.0001813/0.02091, allocations: 235.7 kB / 301.6 MB, free: 14.7 MB / 254.1 MB Notification: Performance of Early Inline: time 0.002368/0.02328, allocations: 2.742 MB / 304.3 MB, free: 11.91 MB / 254.1 MB Notification: Performance of simplify1: time 0.0002105/0.0235, allocations: 207.7 kB / 304.5 MB, free: 11.71 MB / 254.1 MB Notification: Performance of Alias: time 0.004772/0.02828, allocations: 4.755 MB / 309.3 MB, free: 6.543 MB / 254.1 MB Notification: Performance of simplify2: time 0.0001161/0.02841, allocations: 127.8 kB / 309.4 MB, free: 6.418 MB / 254.1 MB Notification: Performance of Events: time 0.0005535/0.02897, allocations: 0.5006 MB / 309.9 MB, free: 5.898 MB / 254.1 MB Notification: Performance of Detect States: time 0.0006573/0.02964, allocations: 0.7135 MB / 310.6 MB, free: 5.16 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0008241/0.03047, allocations: 0.8409 MB / 311.5 MB, free: 4.266 MB / 254.1 MB Notification: Performance of Causalize: time 0.004555/0.03504, allocations: 4.899 MB / 316.4 MB, free: 15.48 MB / 270.1 MB Notification: Performance of After Index Reduction Inline: time 0.001835/0.03689, allocations: 1.903 MB / 318.3 MB, free: 13.54 MB / 270.1 MB Notification: Performance of Inline: time 0.003464/0.04037, allocations: 3.522 MB / 321.8 MB, free: 9.973 MB / 270.1 MB Notification: Performance of Partitioning: time 0.0002547/0.04064, allocations: 231.6 kB / 322 MB, free: 9.73 MB / 270.1 MB Notification: Performance of Cleanup: time 0.000375/0.04102, allocations: 403.5 kB / 322.4 MB, free: 9.328 MB / 270.1 MB Notification: Performance of Causalize: time 0.02107/0.0621, allocations: 24 MB / 346.4 MB, free: 2.672 MB / 286.1 MB Notification: Performance of Tearing: time 0.002664/0.06479, allocations: 2.769 MB / 349.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of Initialization: time 9.22e-07/0.0648, allocations: 0 / 349.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of Tearing: time 0.001316/0.06613, allocations: 1.384 MB / 350.6 MB, free: 14.38 MB / 302.1 MB Notification: Performance of Categorize: time 2.526e-05/0.06616, allocations: 4 kB / 350.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of Solve: time 0.001049/0.06722, allocations: 0.5448 MB / 351.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of Jacobian: time 0.003724/0.07095, allocations: 2.99 MB / 354.1 MB, free: 10.79 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: ............................. 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 0.0001217/0.07108, allocations: 111 kB / 354.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of SimCode: time 0.004688/0.07578, allocations: 5.663 MB / 359.9 MB, free: 4.945 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.