Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_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_TrianglePWM_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00126/0.001261, allocations: 111.8 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.001275/0.001275, allocations: 206.8 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.455e-05/2.456e-05, allocations: 2.281 kB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_TrianglePWM_RL): time 0.008225/0.008259, allocations: 6.196 MB / 365.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004049/0.01233, allocations: 1.703 MB / 367.3 MB, free: 5.043 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001508/0.01386, allocations: 23.88 kB / 367.3 MB, free: 5.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006532/0.01453, allocations: 198 kB / 367.5 MB, free: 4.824 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008635/0.01541, allocations: 289.4 kB / 367.8 MB, free: 4.539 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.01657, allocations: 447.4 kB / 368.2 MB, free: 4.102 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00155/0.01813, allocations: 1.676 MB / 369.9 MB, free: 2.422 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007806/0.01893, allocations: 0.5837 MB / 370.5 MB, free: 1.816 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005142/0.01945, allocations: 0.5099 MB / 371 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004809/0.01994, allocations: 0.5444 MB / 371.5 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000162/0.02011, allocations: 152 kB / 371.7 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001755/0.02029, allocations: 152 kB / 371.8 MB, free: 472 kB / 302.1 MB Notification: Performance of combineBinaries: time 0.2015/0.2218, allocations: 1.832 MB / 373.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005544/0.2224, allocations: 1.127 MB / 374.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003585/0.2228, allocations: 219.5 kB / 375 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0004123/0.2232, allocations: 54.39 kB / 375 MB, free: 10.49 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: 233 (233) * Number of variables: 233 (233) Notification: Performance of Bindings: time 0.004132/0.2273, allocations: 5.254 MB / 380.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001973/0.2275, allocations: 245.7 kB / 380.5 MB, free: 8.539 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002531/0.2301, allocations: 2.968 MB / 383.5 MB, free: 6.582 MB / 302.1 MB Notification: Performance of simplify1: time 0.0003212/0.2304, allocations: 218.9 kB / 383.7 MB, free: 6.484 MB / 302.1 MB Notification: Performance of Alias: time 0.00655/0.237, allocations: 5.749 MB / 389.5 MB, free: 3.223 MB / 302.1 MB Notification: Performance of simplify2: time 0.0002455/0.2372, allocations: 141.6 kB / 389.6 MB, free: 3.172 MB / 302.1 MB Notification: Performance of Events: time 0.0006303/0.2379, allocations: 0.5421 MB / 390.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of Detect States: time 0.0009839/0.2389, allocations: 0.787 MB / 390.9 MB, free: 2.285 MB / 302.1 MB Notification: Performance of Partitioning: time 0.001007/0.2399, allocations: 0.9494 MB / 391.9 MB, free: 1.711 MB / 302.1 MB Notification: Performance of Causalize: time 0.004454/0.2444, allocations: 3.766 MB / 395.6 MB, free: 184 kB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.002382/0.2468, allocations: 2.098 MB / 397.7 MB, free: 14.84 MB / 318.1 MB Notification: Performance of Inline: time 0.004323/0.2511, allocations: 4.033 MB / 401.8 MB, free: 12.36 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0003035/0.2514, allocations: 249.1 kB / 402 MB, free: 12.2 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0004196/0.2518, allocations: 449.2 kB / 402.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of Causalize: time 0.02679/0.2786, allocations: 21.52 MB / 424 MB, free: 7.508 MB / 334.1 MB Notification: Performance of Tearing: time 0.00307/0.2818, allocations: 2.936 MB / 426.9 MB, free: 4.395 MB / 334.1 MB Notification: Performance of Initialization: time 2.375e-06/0.2818, allocations: 0 / 426.9 MB, free: 4.395 MB / 334.1 MB Notification: Performance of Tearing: time 0.001458/0.2833, allocations: 1.48 MB / 428.4 MB, free: 2.832 MB / 334.1 MB Notification: Performance of Categorize: time 5.039e-05/0.2833, allocations: 7.938 kB / 428.4 MB, free: 2.824 MB / 334.1 MB Notification: Performance of Solve: time 0.001632/0.285, allocations: 0.5755 MB / 429 MB, free: 2.242 MB / 334.1 MB Notification: Performance of Jacobian: time 0.002617/0.2876, allocations: 2.181 MB / 431.2 MB, free: 16 kB / 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: .................... 8 (8) {zeroOrderHold.firstTrigger, zeroOrderHold.ySample, meanVoltage.y, meanCurrent.y, signalPWM.triangle.T_start, signalPWM.triangle.count, signalPWM.zeroOrderHold.firstTrigger, signalPWM.zeroOrderHold.ySample} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 61 (61) {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, zeroOrderHold.sampleTrigger, $SEV_23, $SEV_22, $SEV_21, $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_7, $TEV_6, $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: ........... 89 (scalar:83, array:6, record:0) * Number of multi strong components: ............ 8 (algorithm:0, when:8, 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: ........... 190 (scalar:184, array:6, record:0) * Number of multi strong components: ............ 3 (algorithm:3, 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: ........... 190 (scalar:184, array:6, record:0) * Number of multi strong components: ............ 3 (algorithm:3, 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.0001691/0.2878, allocations: 111.8 kB / 431.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of SimCode: time 0.005499/0.2933, allocations: 5.874 MB / 437.1 MB, free: 9.973 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.