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_RL.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_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 115.8 kB / 17.75 MB, free: 5.285 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.001151/0.001151, allocations: 189.9 kB / 18.68 MB, free: 4.363 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.291/1.291, allocations: 205.1 MB / 224.6 MB, free: 12.2 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.107e-05/2.108e-05, allocations: 3.266 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL): time 0.006364/0.006395, allocations: 5.799 MB / 334.3 MB, free: 13.46 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002949/0.009357, allocations: 1.571 MB / 335.9 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004199/0.009789, allocations: 23.88 kB / 335.9 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004631/0.01026, allocations: 190.2 kB / 336.1 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004927/0.01076, allocations: 273.5 kB / 336.4 MB, free: 11.4 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000783/0.01158, allocations: 407.5 kB / 336.8 MB, free: 11 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001451/0.01304, allocations: 1.571 MB / 338.4 MB, free: 9.426 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000796/0.01384, allocations: 0.5516 MB / 338.9 MB, free: 8.855 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004764/0.01433, allocations: 494.2 kB / 339.4 MB, free: 8.371 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004829/0.01482, allocations: 0.5016 MB / 339.9 MB, free: 7.867 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001446/0.01497, allocations: 144 kB / 340 MB, free: 7.727 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001595/0.01514, allocations: 148 kB / 340.2 MB, free: 7.582 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001129/0.01627, allocations: 1.734 MB / 341.9 MB, free: 5.828 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005496/0.01683, allocations: 1.051 MB / 343 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001822/0.01702, allocations: 207.4 kB / 343.2 MB, free: 4.559 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001251/0.01715, allocations: 55.78 kB / 343.2 MB, free: 4.504 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: 222 (222) * Number of variables: 222 (222) Notification: Performance of Bindings: time 0.004073/0.02123, allocations: 4.988 MB / 348.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001933/0.02143, allocations: 243.7 kB / 348.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002327/0.02376, allocations: 2.796 MB / 351.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002241/0.024, allocations: 211.7 kB / 351.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of Alias: time 0.004704/0.02871, allocations: 4.872 MB / 356.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of simplify2: time 0.000109/0.02883, allocations: 127.8 kB / 356.4 MB, free: 6.652 MB / 302.1 MB Notification: Performance of Events: time 0.0005365/0.02938, allocations: 0.5173 MB / 357 MB, free: 6.105 MB / 302.1 MB Notification: Performance of Detect States: time 0.0007446/0.03013, allocations: 0.7252 MB / 357.7 MB, free: 5.355 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007742/0.03092, allocations: 0.8449 MB / 358.5 MB, free: 4.457 MB / 302.1 MB Notification: Performance of Causalize: time 0.004493/0.03542, allocations: 4.948 MB / 363.5 MB, free: 15.62 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.001707/0.03714, allocations: 1.927 MB / 365.4 MB, free: 13.66 MB / 318.1 MB Notification: Performance of Inline: time 0.003383/0.04053, allocations: 3.692 MB / 369.1 MB, free: 9.914 MB / 318.1 MB Notification: Performance of Partitioning: time 0.000234/0.04078, allocations: 231.7 kB / 369.3 MB, free: 9.672 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0003269/0.04111, allocations: 407.5 kB / 369.7 MB, free: 9.266 MB / 318.1 MB Notification: Performance of Causalize: time 0.1728/0.2139, allocations: 24.36 MB / 394.1 MB, free: 38.11 MB / 318.1 MB Notification: Performance of Tearing: time 0.002222/0.2161, allocations: 2.947 MB / 397 MB, free: 36.38 MB / 318.1 MB Notification: Performance of Initialization: time 1.402e-06/0.2162, allocations: 0 / 397 MB, free: 36.38 MB / 318.1 MB Notification: Performance of Tearing: time 0.001012/0.2172, allocations: 1.466 MB / 398.5 MB, free: 35.51 MB / 318.1 MB Notification: Performance of Categorize: time 2.533e-05/0.2172, allocations: 6.969 kB / 398.5 MB, free: 35.51 MB / 318.1 MB Notification: Performance of Solve: time 0.0009252/0.2181, allocations: 0.5365 MB / 399 MB, free: 35.33 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001716/0.2199, allocations: 2.107 MB / 401.2 MB, free: 34.48 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: ............................. 3 (3) {meanCurrent.x, meanVoltage.x, inductor.i} * 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: ........... 82 (scalar:76, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 173 (scalar:167, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 173 (scalar:167, 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: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 8.315e-05/0.22, allocations: 106.1 kB / 401.3 MB, free: 34.46 MB / 318.1 MB Notification: Performance of SimCode: time 0.003521/0.2235, allocations: 5.673 MB / 406.9 MB, free: 31.85 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.