Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00117/0.00117, allocations: 112.4 kB / 18.47 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001239/0.001239, allocations: 210.2 kB / 19.41 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.615e-05/1.616e-05, allocations: 2.281 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL): time 0.006222/0.006246, allocations: 6.123 MB / 365.5 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002293/0.008554, allocations: 1.687 MB / 367.2 MB, free: 5.109 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003049/0.008869, allocations: 27.88 kB / 367.2 MB, free: 5.082 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003557/0.009232, allocations: 194.1 kB / 367.4 MB, free: 4.891 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004122/0.009651, allocations: 269.6 kB / 367.7 MB, free: 4.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006566/0.01032, allocations: 431.4 kB / 368.1 MB, free: 4.203 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001254/0.01159, allocations: 1.618 MB / 369.7 MB, free: 2.582 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006848/0.01228, allocations: 0.5673 MB / 370.3 MB, free: 1.988 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000394/0.01268, allocations: 0.4904 MB / 370.8 MB, free: 1.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000415/0.01311, allocations: 0.5249 MB / 371.3 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001538/0.01327, allocations: 144 kB / 371.4 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001701/0.01344, allocations: 148 kB / 371.6 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.1376/0.1511, allocations: 1.749 MB / 373.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004436/0.1516, allocations: 1.076 MB / 374.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002705/0.1518, allocations: 216.8 kB / 374.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0003016/0.1521, allocations: 55.3 kB / 374.7 MB, free: 10.67 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: 228 (228) * Number of variables: 228 (228) Notification: Performance of Bindings: time 0.003644/0.1558, allocations: 5.08 MB / 379.7 MB, free: 8.867 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001695/0.156, allocations: 233.8 kB / 380 MB, free: 8.867 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002249/0.1582, allocations: 2.852 MB / 382.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002631/0.1585, allocations: 212.1 kB / 383 MB, free: 6.926 MB / 302.1 MB Notification: Performance of Alias: time 0.005305/0.1638, allocations: 5.655 MB / 388.7 MB, free: 3.723 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001395/0.164, allocations: 131.2 kB / 388.8 MB, free: 3.672 MB / 302.1 MB Notification: Performance of Events: time 0.0004642/0.1644, allocations: 0.5164 MB / 389.3 MB, free: 3.312 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006662/0.1651, allocations: 0.7318 MB / 390.1 MB, free: 2.816 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007263/0.1658, allocations: 0.8532 MB / 390.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of Causalize: time 0.003312/0.1692, allocations: 3.427 MB / 394.3 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001597/0.1708, allocations: 1.963 MB / 396.3 MB, free: 15.73 MB / 318.1 MB Notification: Performance of Inline: time 0.003571/0.1743, allocations: 3.729 MB / 400 MB, free: 13.41 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0003295/0.1747, allocations: 230.8 kB / 400.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of Cleanup: time 0.000353/0.175, allocations: 410.8 kB / 400.7 MB, free: 13.01 MB / 318.1 MB Notification: Performance of Causalize: time 0.0206/0.1957, allocations: 19.96 MB / 420.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of Tearing: time 0.002698/0.1984, allocations: 2.95 MB / 423.6 MB, free: 7.781 MB / 334.1 MB Notification: Performance of Initialization: time 9.12e-07/0.1984, allocations: 4 kB / 423.6 MB, free: 7.777 MB / 334.1 MB Notification: Performance of Tearing: time 0.001225/0.1996, allocations: 1.469 MB / 425 MB, free: 6.223 MB / 334.1 MB Notification: Performance of Categorize: time 2.402e-05/0.1997, allocations: 7.938 kB / 425.1 MB, free: 6.215 MB / 334.1 MB Notification: Performance of Solve: time 0.000951/0.2006, allocations: 0.5362 MB / 425.6 MB, free: 5.672 MB / 334.1 MB Notification: Performance of Jacobian: time 0.002215/0.2028, allocations: 2.095 MB / 427.7 MB, free: 3.543 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: ............................. 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.u1, 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.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.u1, 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.transistor_p.off, hbridge.inverter_n.diode_p.off, hbridge.inverter_n.transistor_n.off, hbridge.inverter_n.diode_n.off, signalPWM.fire, signalPWM.zeroOrderHold.sampleTrigger, $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.505e-05/0.2029, allocations: 107.1 kB / 427.8 MB, free: 3.453 MB / 334.1 MB Notification: Performance of SimCode: time 0.004084/0.207, allocations: 5.73 MB / 433.5 MB, free: 13.64 MB / 350.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.