Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001185/0.001185, allocations: 113 kB / 17.75 MB, free: 5.309 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.001197/0.001197, allocations: 184.7 kB / 18.68 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.189/1.189, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.683e-05/1.685e-05, allocations: 2.281 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.HBridge.HBridge_RL): time 0.006566/0.006592, allocations: 5.834 MB / 357.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002826/0.009434, allocations: 1.543 MB / 359.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007004/0.01015, allocations: 19.94 kB / 359.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005059/0.01066, allocations: 194.1 kB / 359.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007705/0.01146, allocations: 277.6 kB / 359.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008472/0.01231, allocations: 411.5 kB / 360.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001508/0.01383, allocations: 1.571 MB / 361.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007008/0.01454, allocations: 0.5555 MB / 362.4 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004228/0.01497, allocations: 490.2 kB / 362.8 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000456/0.01543, allocations: 0.5172 MB / 363.4 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001526/0.0156, allocations: 148 kB / 363.5 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001509/0.01575, allocations: 144 kB / 363.6 MB, free: 7.48 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.001101/0.01686, allocations: 1.727 MB / 365.4 MB, free: 5.734 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005769/0.01744, allocations: 1.058 MB / 366.4 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002087/0.01766, allocations: 211.4 kB / 366.6 MB, free: 4.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001255/0.01779, allocations: 43.81 kB / 366.7 MB, free: 4.41 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: 224 (224) * Number of variables: 224 (224) Notification: Performance of Bindings: time 0.1673/0.1851, allocations: 5.003 MB / 371.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002425/0.1853, allocations: 230.9 kB / 371.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of Early Inline: time 0.002225/0.1876, allocations: 2.809 MB / 374.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002401/0.1878, allocations: 216.3 kB / 374.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of Alias: time 0.004401/0.1922, allocations: 4.933 MB / 379.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of simplify2: time 0.000169/0.1924, allocations: 129.2 kB / 380 MB, free: 12.93 MB / 302.1 MB Notification: Performance of Events: time 0.0005008/0.1929, allocations: 0.5156 MB / 380.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of Detect States: time 0.0007322/0.1937, allocations: 0.7137 MB / 381.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007764/0.1945, allocations: 0.8493 MB / 382.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of Causalize: time 0.004401/0.1989, allocations: 4.95 MB / 387 MB, free: 9.516 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001554/0.2004, allocations: 1.938 MB / 389 MB, free: 8.27 MB / 302.1 MB Notification: Performance of Inline: time 0.003186/0.2036, allocations: 3.691 MB / 392.6 MB, free: 6.023 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002173/0.2039, allocations: 230.1 kB / 392.9 MB, free: 5.879 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002598/0.2041, allocations: 412.7 kB / 393.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of Causalize: time 0.01876/0.2229, allocations: 24.37 MB / 417.7 MB, free: 2.551 MB / 318.1 MB Notification: Performance of Tearing: time 0.002581/0.2255, allocations: 2.945 MB / 420.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of Initialization: time 2.124e-06/0.2255, allocations: 0 / 420.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of Tearing: time 0.001279/0.2268, allocations: 1.478 MB / 422.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of Categorize: time 2.896e-05/0.2269, allocations: 8 kB / 422.1 MB, free: 13.96 MB / 334.1 MB Notification: Performance of Solve: time 0.001061/0.2279, allocations: 0.5356 MB / 422.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of Jacobian: time 0.002288/0.2302, allocations: 2.095 MB / 424.7 MB, free: 11.29 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.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.0001184/0.2303, allocations: 101.9 kB / 424.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of SimCode: time 0.004583/0.2349, allocations: 5.677 MB / 430.5 MB, free: 5.508 MB / 334.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.