Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001142/0.001142, allocations: 115.3 kB / 17.75 MB, free: 5.195 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.001221/0.001221, allocations: 189.9 kB / 18.68 MB, free: 4.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.267/1.267, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.869e-05/1.869e-05, allocations: 2.281 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R): time 0.006005/0.006032, allocations: 5.733 MB / 357.7 MB, free: 13.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002382/0.008427, allocations: 1.52 MB / 359.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005488/0.008986, allocations: 23.88 kB / 359.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004329/0.009426, allocations: 178.2 kB / 359.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005618/0.009997, allocations: 273.6 kB / 359.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007289/0.01074, allocations: 407.5 kB / 360.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001405/0.01216, allocations: 1.547 MB / 361.6 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006794/0.01285, allocations: 0.5553 MB / 362.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004905/0.01334, allocations: 474.3 kB / 362.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005133/0.01387, allocations: 0.5055 MB / 363.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.01404, allocations: 144 kB / 363.3 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.01422, allocations: 140 kB / 363.4 MB, free: 7.707 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.001024/0.01525, allocations: 1.688 MB / 365.1 MB, free: 6 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005062/0.01576, allocations: 1.035 MB / 366.2 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001766/0.01595, allocations: 207.4 kB / 366.4 MB, free: 4.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001332/0.01608, allocations: 55.73 kB / 366.4 MB, free: 4.691 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 218 (218) * Number of variables: 218 (218) Notification: Performance of Bindings: time 0.1428/0.1589, allocations: 4.898 MB / 371.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0003978/0.1593, allocations: 218.1 kB / 371.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002503/0.1618, allocations: 2.769 MB / 374.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002726/0.1621, allocations: 202.5 kB / 374.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of Alias: time 0.005721/0.1678, allocations: 5.382 MB / 379.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001774/0.168, allocations: 125.4 kB / 380 MB, free: 13.21 MB / 302.1 MB Notification: Performance of Events: time 0.0005786/0.1686, allocations: 0.4956 MB / 380.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006825/0.1693, allocations: 0.7224 MB / 381.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0008103/0.1701, allocations: 0.8376 MB / 382.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of Causalize: time 0.003796/0.1739, allocations: 3.407 MB / 385.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001617/0.1756, allocations: 1.905 MB / 387.4 MB, free: 9.355 MB / 302.1 MB Notification: Performance of Inline: time 0.003305/0.1789, allocations: 3.642 MB / 391 MB, free: 7.141 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002436/0.1791, allocations: 228.8 kB / 391.2 MB, free: 6.996 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0003027/0.1794, allocations: 402.8 kB / 391.6 MB, free: 6.742 MB / 302.1 MB Notification: Performance of Causalize: time 0.01966/0.1991, allocations: 19.68 MB / 411.3 MB, free: 7.121 MB / 318.1 MB Notification: Performance of Tearing: time 0.002686/0.2018, allocations: 2.772 MB / 414.1 MB, free: 4.336 MB / 318.1 MB Notification: Performance of Initialization: time 2.114e-06/0.2019, allocations: 0 / 414.1 MB, free: 4.336 MB / 318.1 MB Notification: Performance of Tearing: time 0.001325/0.2032, allocations: 1.387 MB / 415.5 MB, free: 2.945 MB / 318.1 MB Notification: Performance of Categorize: time 3.16e-05/0.2032, allocations: 6.953 kB / 415.5 MB, free: 2.941 MB / 318.1 MB Notification: Performance of Solve: time 0.0009662/0.2042, allocations: 0.5045 MB / 416 MB, free: 2.43 MB / 318.1 MB Notification: Performance of Jacobian: time 0.003561/0.2078, allocations: 2.99 MB / 419 MB, free: 15.41 MB / 334.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.0001252/0.2079, allocations: 84.11 kB / 419 MB, free: 15.37 MB / 334.1 MB Notification: Performance of SimCode: time 0.004965/0.2129, allocations: 5.68 MB / 424.7 MB, free: 9.625 MB / 334.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.