Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.0009977/0.0009978, allocations: 105.8 kB / 16.42 MB, free: 6.461 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.0008957/0.0008957, allocations: 189.9 kB / 17.36 MB, free: 5.73 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.494/1.494, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.683e-05/2.684e-05, allocations: 2.5 kB / 327.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL): time 0.007116/0.007151, allocations: 5.801 MB / 333 MB, free: 13.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002865/0.01003, allocations: 1.575 MB / 334.6 MB, free: 11.9 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003901/0.01044, allocations: 23.88 kB / 334.6 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004025/0.01085, allocations: 190.2 kB / 334.8 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004934/0.01142, allocations: 273.6 kB / 335.1 MB, free: 11.42 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007461/0.01217, allocations: 415.4 kB / 335.5 MB, free: 11.01 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001416/0.01359, allocations: 1.563 MB / 337 MB, free: 9.441 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000744/0.01435, allocations: 0.5594 MB / 337.6 MB, free: 8.863 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004574/0.01481, allocations: 482.2 kB / 338.1 MB, free: 8.391 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004873/0.01531, allocations: 0.5094 MB / 338.6 MB, free: 7.879 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001666/0.01548, allocations: 144 kB / 338.7 MB, free: 7.738 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001605/0.01565, allocations: 147.9 kB / 338.9 MB, free: 7.594 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001223/0.01688, allocations: 1.727 MB / 340.6 MB, free: 5.848 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0006209/0.01751, allocations: 1.059 MB / 341.6 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002179/0.01773, allocations: 203.4 kB / 341.8 MB, free: 4.574 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.000148/0.01789, allocations: 55.69 kB / 341.9 MB, free: 4.52 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.004558/0.02245, allocations: 4.988 MB / 346.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002015/0.02266, allocations: 239.7 kB / 347.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002585/0.02525, allocations: 2.788 MB / 349.9 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002308/0.02549, allocations: 211.7 kB / 350.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of Alias: time 0.005254/0.03076, allocations: 4.876 MB / 355 MB, free: 6.801 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001421/0.03092, allocations: 127.8 kB / 355.1 MB, free: 6.676 MB / 302.1 MB Notification: Performance of Events: time 0.0005866/0.03151, allocations: 0.5098 MB / 355.6 MB, free: 6.137 MB / 302.1 MB Notification: Performance of Detect States: time 0.000735/0.03225, allocations: 0.7323 MB / 356.4 MB, free: 5.383 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000887/0.03315, allocations: 0.8488 MB / 357.2 MB, free: 4.48 MB / 302.1 MB Notification: Performance of Causalize: time 0.004696/0.03786, allocations: 4.94 MB / 362.2 MB, free: 15.66 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.001838/0.03971, allocations: 1.939 MB / 364.1 MB, free: 13.68 MB / 318.1 MB Notification: Performance of Inline: time 0.003795/0.04351, allocations: 3.695 MB / 367.8 MB, free: 9.93 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0003113/0.04383, allocations: 231.7 kB / 368 MB, free: 9.688 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0004637/0.04431, allocations: 411.5 kB / 368.4 MB, free: 9.277 MB / 318.1 MB Notification: Performance of Causalize: time 0.2043/0.2486, allocations: 24.36 MB / 392.8 MB, free: 38.15 MB / 318.1 MB Notification: Performance of Tearing: time 0.002275/0.2509, allocations: 2.941 MB / 395.7 MB, free: 36.43 MB / 318.1 MB Notification: Performance of Initialization: time 1.402e-06/0.2509, allocations: 0 / 395.7 MB, free: 36.43 MB / 318.1 MB Notification: Performance of Tearing: time 0.001255/0.2522, allocations: 1.479 MB / 397.2 MB, free: 35.55 MB / 318.1 MB Notification: Performance of Categorize: time 2.891e-05/0.2522, allocations: 2.938 kB / 397.2 MB, free: 35.55 MB / 318.1 MB Notification: Performance of Solve: time 0.001116/0.2533, allocations: 0.5378 MB / 397.7 MB, free: 35.37 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001836/0.2552, allocations: 2.097 MB / 399.8 MB, free: 34.52 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 9.635e-05/0.2553, allocations: 107.2 kB / 399.9 MB, free: 34.5 MB / 318.1 MB Notification: Performance of SimCode: time 0.003799/0.2591, allocations: 5.673 MB / 405.6 MB, free: 31.91 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.