Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_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.ChopperStepDown.ChopperStepDown_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000933/0.000933, allocations: 108.5 kB / 16.42 MB, free: 5.504 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.0008963/0.0008963, allocations: 190.4 kB / 17.35 MB, free: 5.176 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.261/1.261, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.752e-05/1.753e-05, allocations: 2.281 kB / 327.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL): time 0.004283/0.004309, allocations: 3.626 MB / 330.9 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001483/0.005805, allocations: 0.9707 MB / 331.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001721/0.005989, allocations: 11.94 kB / 331.8 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002065/0.006202, allocations: 87.16 kB / 331.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001973/0.006407, allocations: 114.9 kB / 332 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004627/0.006876, allocations: 211.6 kB / 332.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005984/0.007484, allocations: 0.6696 MB / 332.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000322/0.007814, allocations: 238.7 kB / 333.1 MB, free: 13.33 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001969/0.00802, allocations: 219.2 kB / 333.4 MB, free: 13.12 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.008254, allocations: 238.9 kB / 333.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.226e-05/0.008335, allocations: 56 kB / 333.6 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.774e-05/0.008409, allocations: 56 kB / 333.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004987/0.008913, allocations: 0.8033 MB / 334.5 MB, free: 11.96 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002558/0.009177, allocations: 0.5042 MB / 335 MB, free: 11.45 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.224e-05/0.009265, allocations: 87.69 kB / 335.1 MB, free: 11.36 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.089e-05/0.009322, allocations: 23.94 kB / 335.1 MB, free: 11.34 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: 103 (103) * Number of variables: 103 (103) Notification: Performance of Bindings: time 0.00189/0.01122, allocations: 2.33 MB / 337.4 MB, free: 8.895 MB / 286.1 MB Notification: Performance of FunctionAlias: time 8.497e-05/0.01131, allocations: 95.86 kB / 337.5 MB, free: 8.801 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001032/0.01235, allocations: 1.194 MB / 338.7 MB, free: 7.578 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001028/0.01246, allocations: 99.88 kB / 338.8 MB, free: 7.48 MB / 286.1 MB Notification: Performance of Alias: time 0.00218/0.01464, allocations: 2.126 MB / 341 MB, free: 5.137 MB / 286.1 MB Notification: Performance of simplify2: time 6.728e-05/0.01472, allocations: 63.91 kB / 341 MB, free: 5.074 MB / 286.1 MB Notification: Performance of Events: time 0.0002848/0.01502, allocations: 222.8 kB / 341.2 MB, free: 4.852 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004559/0.01548, allocations: 396.9 kB / 341.6 MB, free: 4.453 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003601/0.01585, allocations: 390.4 kB / 342 MB, free: 4.02 MB / 286.1 MB Notification: Performance of Causalize: time 0.001791/0.01765, allocations: 1.922 MB / 343.9 MB, free: 2.062 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0007695/0.01843, allocations: 0.8803 MB / 344.8 MB, free: 1.152 MB / 286.1 MB Notification: Performance of Inline: time 0.001479/0.01992, allocations: 1.591 MB / 346.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001081/0.02004, allocations: 107.6 kB / 346.5 MB, free: 15.41 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001529/0.0202, allocations: 191.5 kB / 346.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of Causalize: time 0.008327/0.02853, allocations: 9.632 MB / 356.3 MB, free: 5.914 MB / 302.1 MB Notification: Performance of Tearing: time 0.0007325/0.02929, allocations: 0.8787 MB / 357.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of Initialization: time 9.31e-07/0.0293, allocations: 0 / 357.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003415/0.02965, allocations: 446 kB / 357.6 MB, free: 4.453 MB / 302.1 MB Notification: Performance of Categorize: time 1.968e-05/0.02968, allocations: 12.03 kB / 357.6 MB, free: 4.441 MB / 302.1 MB Notification: Performance of Solve: time 0.0004354/0.03012, allocations: 283.4 kB / 357.9 MB, free: 4.164 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0005834/0.03071, allocations: 0.6466 MB / 358.6 MB, free: 3.477 MB / 302.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: ................. 24 (24) {chopperStepDown.enableLogic.booleanReplicator.y, chopperStepDown.enableLogic.internalEnable, chopperStepDown.andCondition_p.u1, chopperStepDown.andCondition_p.u2, chopperStepDown.andCondition_p.y, chopperStepDown.transistor.off, chopperStepDown.diode.off, signalPWM.zeroOrderHold.sampleTrigger, $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: ........... 44 (scalar:42, array:2, 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: ........... 92 (scalar:90, array:2, 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: ........... 92 (scalar:90, array:2, 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.0001255/0.03084, allocations: 80.97 kB / 358.7 MB, free: 3.402 MB / 302.1 MB Notification: Performance of SimCode: time 0.001865/0.03271, allocations: 2.496 MB / 361.1 MB, free: 0.8711 MB / 302.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.