Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.001192/0.001192, allocations: 111.9 kB / 17.75 MB, free: 5.309 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.001082/0.001082, allocations: 193.8 kB / 18.68 MB, free: 4.383 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.283/1.283, allocations: 205.1 MB / 224.6 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.361e-05/1.361e-05, allocations: 2.281 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R): time 0.006041/0.006064, allocations: 5.691 MB / 334.2 MB, free: 13.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002138/0.008214, allocations: 1.564 MB / 335.8 MB, free: 12 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002811/0.008507, allocations: 23.88 kB / 335.8 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003651/0.008878, allocations: 182.2 kB / 336 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003981/0.009292, allocations: 269.6 kB / 336.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006644/0.009963, allocations: 403.5 kB / 336.7 MB, free: 11.14 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001213/0.01119, allocations: 1.536 MB / 338.2 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000649/0.01184, allocations: 0.5514 MB / 338.7 MB, free: 9.027 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003916/0.01225, allocations: 474.3 kB / 339.2 MB, free: 8.562 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004199/0.01267, allocations: 0.5016 MB / 339.7 MB, free: 8.059 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001432/0.01282, allocations: 144 kB / 339.8 MB, free: 7.918 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001521/0.01298, allocations: 147.9 kB / 340 MB, free: 7.773 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001041/0.01403, allocations: 1.68 MB / 341.7 MB, free: 6.074 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005603/0.0146, allocations: 1.035 MB / 342.7 MB, free: 5.023 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001909/0.01479, allocations: 203.4 kB / 342.9 MB, free: 4.824 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.372e-05/0.01489, allocations: 51.8 kB / 343 MB, free: 4.773 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.003992/0.01889, allocations: 4.883 MB / 347.8 MB, free: 15.72 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001799/0.01908, allocations: 231.7 kB / 348.1 MB, free: 15.49 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002376/0.02146, allocations: 2.749 MB / 350.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002012/0.02167, allocations: 203.7 kB / 351 MB, free: 12.5 MB / 302.1 MB Notification: Performance of Alias: time 0.004786/0.02646, allocations: 4.758 MB / 355.8 MB, free: 7.34 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001412/0.02662, allocations: 127.8 kB / 355.9 MB, free: 7.215 MB / 302.1 MB Notification: Performance of Events: time 0.0005597/0.02718, allocations: 0.494 MB / 356.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006693/0.02786, allocations: 0.7059 MB / 357.1 MB, free: 5.969 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0008659/0.02874, allocations: 0.8487 MB / 357.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of Causalize: time 0.004618/0.03337, allocations: 4.898 MB / 362.8 MB, free: 280 kB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001838/0.03521, allocations: 1.911 MB / 364.8 MB, free: 14.33 MB / 318.1 MB Notification: Performance of Inline: time 0.003476/0.0387, allocations: 3.635 MB / 368.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002478/0.03896, allocations: 231.6 kB / 368.6 MB, free: 10.4 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0003541/0.03932, allocations: 407.5 kB / 369 MB, free: 9.992 MB / 318.1 MB Notification: Performance of Causalize: time 0.1679/0.2072, allocations: 24.02 MB / 393 MB, free: 39.76 MB / 318.1 MB Notification: Performance of Tearing: time 0.002391/0.2097, allocations: 2.775 MB / 395.8 MB, free: 38.38 MB / 318.1 MB Notification: Performance of Initialization: time 1.112e-06/0.2097, allocations: 0 / 395.8 MB, free: 38.38 MB / 318.1 MB Notification: Performance of Tearing: time 0.001094/0.2108, allocations: 1.381 MB / 397.2 MB, free: 37.7 MB / 318.1 MB Notification: Performance of Categorize: time 2.482e-05/0.2108, allocations: 9.922 kB / 397.2 MB, free: 37.7 MB / 318.1 MB Notification: Performance of Solve: time 0.0008417/0.2116, allocations: 0.5087 MB / 397.7 MB, free: 37.51 MB / 318.1 MB Notification: Performance of Jacobian: time 0.002817/0.2145, allocations: 2.986 MB / 400.7 MB, free: 36.41 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 7.268e-05/0.2146, allocations: 104.8 kB / 400.8 MB, free: 36.39 MB / 318.1 MB Notification: Performance of SimCode: time 0.003336/0.2179, allocations: 5.666 MB / 406.5 MB, free: 33.81 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.