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_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.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.2.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.0009371/0.0009372, allocations: 108.5 kB / 16.42 MB, free: 5.504 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.0009147/0.0009147, allocations: 190.4 kB / 17.35 MB, free: 5.176 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.27/1.27, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.692e-05/1.692e-05, allocations: 6.219 kB / 327.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R): time 0.005941/0.005966, allocations: 5.683 MB / 332.9 MB, free: 13.58 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002357/0.008341, allocations: 1.56 MB / 334.5 MB, free: 12.01 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003025/0.008655, allocations: 23.88 kB / 334.5 MB, free: 11.99 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003467/0.009008, allocations: 182.2 kB / 334.7 MB, free: 11.81 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000414/0.00943, allocations: 265.6 kB / 334.9 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000665/0.01012, allocations: 415.4 kB / 335.3 MB, free: 11.14 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001206/0.01134, allocations: 1.532 MB / 336.9 MB, free: 9.602 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006574/0.01201, allocations: 0.5475 MB / 337.4 MB, free: 9.035 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003892/0.0124, allocations: 474.2 kB / 337.9 MB, free: 8.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004207/0.01283, allocations: 0.5055 MB / 338.4 MB, free: 8.062 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000132/0.01297, allocations: 144 kB / 338.5 MB, free: 7.922 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001496/0.01313, allocations: 140 kB / 338.7 MB, free: 7.785 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001041/0.01417, allocations: 1.688 MB / 340.4 MB, free: 6.078 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.000549/0.01473, allocations: 1.031 MB / 341.4 MB, free: 5.031 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001788/0.01491, allocations: 203.4 kB / 341.6 MB, free: 4.832 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.3e-05/0.01501, allocations: 51.75 kB / 341.6 MB, free: 4.781 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.003824/0.01884, allocations: 4.883 MB / 346.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001793/0.01903, allocations: 235.7 kB / 346.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002301/0.02134, allocations: 2.742 MB / 349.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001968/0.02154, allocations: 211.7 kB / 349.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of Alias: time 0.004586/0.02614, allocations: 4.762 MB / 354.5 MB, free: 7.34 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001226/0.02627, allocations: 127.8 kB / 354.6 MB, free: 7.215 MB / 302.1 MB Notification: Performance of Events: time 0.0005372/0.02682, allocations: 0.4979 MB / 355.1 MB, free: 6.699 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006631/0.02749, allocations: 0.7059 MB / 355.8 MB, free: 5.965 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0008366/0.02833, allocations: 0.8331 MB / 356.6 MB, free: 5.078 MB / 302.1 MB Notification: Performance of Causalize: time 0.004415/0.03276, allocations: 4.909 MB / 361.5 MB, free: 280 kB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001659/0.03443, allocations: 1.9 MB / 363.4 MB, free: 14.34 MB / 318.1 MB Notification: Performance of Inline: time 0.003242/0.03768, allocations: 3.642 MB / 367.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002281/0.03792, allocations: 223.7 kB / 367.3 MB, free: 10.41 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0003243/0.03825, allocations: 411.5 kB / 367.7 MB, free: 10 MB / 318.1 MB Notification: Performance of Causalize: time 0.1628/0.201, allocations: 24.03 MB / 391.7 MB, free: 39.51 MB / 318.1 MB Notification: Performance of Tearing: time 0.002309/0.2034, allocations: 2.771 MB / 394.5 MB, free: 38.13 MB / 318.1 MB Notification: Performance of Initialization: time 1.834e-06/0.2034, allocations: 0 / 394.5 MB, free: 38.13 MB / 318.1 MB Notification: Performance of Tearing: time 0.001085/0.2045, allocations: 1.382 MB / 395.9 MB, free: 37.45 MB / 318.1 MB Notification: Performance of Categorize: time 2.761e-05/0.2045, allocations: 6.031 kB / 395.9 MB, free: 37.45 MB / 318.1 MB Notification: Performance of Solve: time 0.0009369/0.2054, allocations: 0.5061 MB / 396.4 MB, free: 37.27 MB / 318.1 MB Notification: Performance of Jacobian: time 0.002793/0.2082, allocations: 2.979 MB / 399.4 MB, free: 36.17 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.187e-05/0.2083, allocations: 111.3 kB / 399.5 MB, free: 36.15 MB / 318.1 MB Notification: Performance of SimCode: time 0.003829/0.2122, allocations: 5.661 MB / 405.1 MB, free: 33.54 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.