Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R.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_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_trunk_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_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001291/0.001291, allocations: 119.7 kB / 18.47 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001296/0.001296, allocations: 209.1 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.769e-05/1.77e-05, allocations: 4.391 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_R): time 0.006784/0.00681, allocations: 6.03 MB / 365.4 MB, free: 6.859 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002624/0.009448, allocations: 1.652 MB / 367.1 MB, free: 5.199 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003391/0.009798, allocations: 23.88 kB / 367.1 MB, free: 5.176 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004083/0.01021, allocations: 198.1 kB / 367.3 MB, free: 4.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004342/0.01066, allocations: 261.7 kB / 367.5 MB, free: 4.723 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007306/0.0114, allocations: 423.4 kB / 367.9 MB, free: 4.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001388/0.0128, allocations: 1.594 MB / 369.5 MB, free: 2.711 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007712/0.01358, allocations: 0.5671 MB / 370.1 MB, free: 2.121 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004246/0.01401, allocations: 482.2 kB / 370.6 MB, free: 1.648 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004806/0.0145, allocations: 0.5094 MB / 371.1 MB, free: 1.137 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001621/0.01467, allocations: 144 kB / 371.2 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001693/0.01485, allocations: 147.9 kB / 371.4 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.1949/0.2097, allocations: 1.714 MB / 373.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.000652/0.2104, allocations: 1.058 MB / 374.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004178/0.2109, allocations: 207.8 kB / 374.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0004177/0.2113, allocations: 59.28 kB / 374.4 MB, free: 10.86 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: 222 (222) * Number of variables: 222 (222) Notification: Performance of Bindings: time 0.00429/0.2156, allocations: 4.972 MB / 379.4 MB, free: 9.102 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001795/0.2158, allocations: 228.4 kB / 379.6 MB, free: 9.098 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002377/0.2182, allocations: 2.801 MB / 382.4 MB, free: 7.312 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002867/0.2185, allocations: 205.2 kB / 382.6 MB, free: 7.219 MB / 302.1 MB Notification: Performance of Alias: time 0.00624/0.2247, allocations: 5.532 MB / 388.1 MB, free: 4.07 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001797/0.2249, allocations: 132.4 kB / 388.3 MB, free: 4.02 MB / 302.1 MB Notification: Performance of Events: time 0.0005832/0.2255, allocations: 498.7 kB / 388.7 MB, free: 3.695 MB / 302.1 MB Notification: Performance of Detect States: time 0.000671/0.2262, allocations: 0.7231 MB / 389.5 MB, free: 3.199 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0008453/0.227, allocations: 0.837 MB / 390.3 MB, free: 2.695 MB / 302.1 MB Notification: Performance of Causalize: time 0.003962/0.231, allocations: 3.421 MB / 393.7 MB, free: 1.348 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001807/0.2328, allocations: 1.918 MB / 395.6 MB, free: 128 kB / 302.1 MB Notification: Performance of Inline: time 0.004102/0.2369, allocations: 3.677 MB / 399.3 MB, free: 13.84 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002672/0.2372, allocations: 218.2 kB / 399.5 MB, free: 13.7 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0004279/0.2376, allocations: 407.1 kB / 399.9 MB, free: 13.44 MB / 318.1 MB Notification: Performance of Causalize: time 0.02281/0.2605, allocations: 19.72 MB / 419.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of Tearing: time 0.003163/0.2637, allocations: 2.767 MB / 422.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of Initialization: time 1.984e-06/0.2637, allocations: 0 / 422.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of Tearing: time 0.001381/0.2651, allocations: 1.393 MB / 423.8 MB, free: 7.562 MB / 334.1 MB Notification: Performance of Categorize: time 4.139e-05/0.2652, allocations: 4 kB / 423.8 MB, free: 7.559 MB / 334.1 MB Notification: Performance of Solve: time 0.00134/0.2665, allocations: 0.5124 MB / 424.3 MB, free: 7.047 MB / 334.1 MB Notification: Performance of Jacobian: time 0.003584/0.2701, allocations: 2.981 MB / 427.3 MB, free: 4.031 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.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: ........... 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.000157/0.2703, allocations: 96.62 kB / 427.4 MB, free: 3.949 MB / 334.1 MB Notification: Performance of SimCode: time 0.00494/0.2752, allocations: 5.721 MB / 433.1 MB, free: 14.15 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.