Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|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_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|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_3.2.3_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.001156/0.001157, allocations: 106.1 kB / 18.41 MB, free: 4.637 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.001291/0.001292, allocations: 190.7 kB / 19.35 MB, free: 3.723 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.459/1.459, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.313e-05/2.312e-05, allocations: 2.281 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL): time 0.006878/0.006909, allocations: 5.793 MB / 335 MB, free: 13.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003028/0.009955, allocations: 1.587 MB / 336.6 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001015/0.01099, allocations: 23.88 kB / 336.6 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007452/0.01174, allocations: 190.2 kB / 336.8 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009808/0.01274, allocations: 265.6 kB / 337.1 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001029/0.01383, allocations: 415.5 kB / 337.5 MB, free: 11 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001828/0.01567, allocations: 1.563 MB / 339 MB, free: 9.434 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008206/0.0165, allocations: 0.5555 MB / 339.6 MB, free: 8.859 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006068/0.01711, allocations: 486.2 kB / 340.1 MB, free: 8.383 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006369/0.01776, allocations: 0.5133 MB / 340.6 MB, free: 7.867 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002393/0.01801, allocations: 147.9 kB / 340.7 MB, free: 7.723 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000246/0.01826, allocations: 144 kB / 340.8 MB, free: 7.582 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001273/0.01954, allocations: 1.731 MB / 342.6 MB, free: 5.832 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0007281/0.02028, allocations: 1.047 MB / 343.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002841/0.02057, allocations: 211.4 kB / 343.8 MB, free: 4.562 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0002114/0.02079, allocations: 59.67 kB / 343.9 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.004175/0.02497, allocations: 4.988 MB / 348.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001839/0.02516, allocations: 235.7 kB / 349.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002354/0.02752, allocations: 2.789 MB / 351.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002545/0.02779, allocations: 207.7 kB / 352.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of Alias: time 0.006053/0.03385, allocations: 5.46 MB / 357.6 MB, free: 6.203 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001624/0.03404, allocations: 135.8 kB / 357.7 MB, free: 6.07 MB / 302.1 MB Notification: Performance of Events: time 0.0005926/0.03464, allocations: 0.5122 MB / 358.2 MB, free: 5.527 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006837/0.03534, allocations: 0.7243 MB / 358.9 MB, free: 4.777 MB / 302.1 MB Notification: Performance of Partitioning: time 0.001013/0.03636, allocations: 0.8487 MB / 359.8 MB, free: 3.875 MB / 302.1 MB Notification: Performance of Causalize: time 0.004351/0.04072, allocations: 3.433 MB / 363.2 MB, free: 380 kB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001886/0.04263, allocations: 1.931 MB / 365.1 MB, free: 14.41 MB / 318.1 MB Notification: Performance of Inline: time 0.003645/0.04628, allocations: 3.68 MB / 368.8 MB, free: 10.67 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002616/0.04656, allocations: 235.7 kB / 369.1 MB, free: 10.42 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0003706/0.04694, allocations: 407.5 kB / 369.5 MB, free: 10.02 MB / 318.1 MB Notification: Performance of Causalize: time 0.207/0.254, allocations: 19.93 MB / 389.4 MB, free: 36.11 MB / 318.1 MB Notification: Performance of Tearing: time 0.003216/0.2572, allocations: 2.938 MB / 392.3 MB, free: 34.99 MB / 318.1 MB Notification: Performance of Initialization: time 3.407e-06/0.2572, allocations: 3.406 kB / 392.3 MB, free: 34.99 MB / 318.1 MB Notification: Performance of Tearing: time 0.001267/0.2585, allocations: 1.479 MB / 393.8 MB, free: 34.41 MB / 318.1 MB Notification: Performance of Categorize: time 3.14e-05/0.2586, allocations: 6.812 kB / 393.8 MB, free: 34.41 MB / 318.1 MB Notification: Performance of Solve: time 0.001125/0.2597, allocations: 0.534 MB / 394.3 MB, free: 34.33 MB / 318.1 MB Notification: Performance of Jacobian: time 0.002136/0.2618, allocations: 2.101 MB / 396.4 MB, free: 33.72 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 0.0001014/0.262, allocations: 106.6 kB / 396.5 MB, free: 33.68 MB / 318.1 MB Notification: Performance of SimCode: time 0.004597/0.2666, allocations: 5.666 MB / 402.2 MB, free: 32.08 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.