Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_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.ChopperStepDown.ChopperStepDown_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001112/0.001112, 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.001166/0.001166, 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.209/1.209, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.722e-05/1.723e-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.ChopperStepDown.ChopperStepDown_RL): time 0.00464/0.004666, allocations: 4.271 MB / 363.7 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00168/0.006358, allocations: 1.133 MB / 364.8 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002202/0.006589, allocations: 11.94 kB / 364.8 MB, free: 7.508 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002516/0.006847, allocations: 103 kB / 364.9 MB, free: 7.406 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002532/0.007108, allocations: 146.6 kB / 365 MB, free: 7.262 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005134/0.007634, allocations: 247.6 kB / 365.3 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006923/0.008336, allocations: 0.8216 MB / 366.1 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000361/0.008706, allocations: 272.6 kB / 366.4 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000237/0.00895, allocations: 266.9 kB / 366.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002447/0.009201, allocations: 282.6 kB / 366.9 MB, free: 5.379 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.046e-05/0.009289, allocations: 64 kB / 367 MB, free: 5.316 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.588e-05/0.009381, allocations: 64 kB / 367 MB, free: 5.254 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0006556/0.01004, allocations: 0.9733 MB / 368 MB, free: 4.27 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002959/0.01035, allocations: 0.5965 MB / 368.6 MB, free: 3.664 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.01046, allocations: 107.6 kB / 368.7 MB, free: 3.559 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.836e-05/0.01056, allocations: 23.88 kB / 368.7 MB, free: 3.535 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: 122 (122) * Number of variables: 122 (122) Notification: Performance of Bindings: time 0.002199/0.01277, allocations: 2.74 MB / 371.5 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of FunctionAlias: time 9.103e-05/0.01286, allocations: 115.8 kB / 371.6 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of Early Inline: time 0.1428/0.1556, allocations: 1.396 MB / 373 MB, free: 13.55 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001617/0.1558, allocations: 120.2 kB / 373.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of Alias: time 0.002794/0.1586, allocations: 2.834 MB / 375.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of simplify2: time 7.351e-05/0.1587, allocations: 73.59 kB / 376 MB, free: 12.72 MB / 302.1 MB Notification: Performance of Events: time 0.0002761/0.159, allocations: 268.6 kB / 376.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003953/0.1594, allocations: 448.8 kB / 376.7 MB, free: 12.61 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0003479/0.1597, allocations: 428 kB / 377.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of Causalize: time 0.001595/0.1613, allocations: 1.651 MB / 378.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0007923/0.1621, allocations: 1.003 MB / 379.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of Inline: time 0.001492/0.1636, allocations: 1.851 MB / 381.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001027/0.1638, allocations: 109.9 kB / 381.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001775/0.1639, allocations: 224.1 kB / 382 MB, free: 10.04 MB / 302.1 MB Notification: Performance of Causalize: time 0.009191/0.1731, allocations: 9.11 MB / 391.1 MB, free: 6.824 MB / 302.1 MB Notification: Performance of Tearing: time 0.0006099/0.1738, allocations: 0.8889 MB / 392 MB, free: 6.176 MB / 302.1 MB Notification: Performance of Initialization: time 1.132e-06/0.1738, allocations: 1.656 kB / 392 MB, free: 6.176 MB / 302.1 MB Notification: Performance of Tearing: time 0.0002772/0.1741, allocations: 450.3 kB / 392.4 MB, free: 5.859 MB / 302.1 MB Notification: Performance of Categorize: time 1.55e-05/0.1741, allocations: 3.406 kB / 392.4 MB, free: 5.859 MB / 302.1 MB Notification: Performance of Solve: time 0.0004808/0.1746, allocations: 334.9 kB / 392.7 MB, free: 5.758 MB / 302.1 MB Notification: Performance of Jacobian: time 0.00051/0.1751, allocations: 0.7341 MB / 393.5 MB, free: 5.328 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: ............................. 5 (5) {meanCurrent.x, meanVoltage.x, inductor.i, capacitor.v, loadInductor.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: ................. 26 (26) {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_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: ........... 53 (scalar:51, 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: ........... 107 (scalar:105, 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: ........... 107 (scalar:105, 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.0001006/0.1752, allocations: 63.19 kB / 393.5 MB, free: 5.312 MB / 302.1 MB Notification: Performance of SimCode: time 0.001616/0.1768, allocations: 2.758 MB / 396.3 MB, free: 3.773 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.