Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.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.ChopperStepUp.ChopperStepUp_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001296/0.001296, allocations: 106.4 kB / 16.42 MB, free: 6.512 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.0009631/0.000963, allocations: 192.2 kB / 17.35 MB, free: 5.754 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.488/1.488, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.548e-05/2.548e-05, allocations: 6.219 kB / 327.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R): time 0.004715/0.004749, allocations: 3.726 MB / 331 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.006426, allocations: 0.994 MB / 332 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002199/0.006658, allocations: 11.94 kB / 332 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.006903, allocations: 79.16 kB / 332 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002198/0.007132, allocations: 134.8 kB / 332.2 MB, free: 14.33 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004722/0.007639, allocations: 207.6 kB / 332.4 MB, free: 14.13 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006182/0.008266, allocations: 0.7007 MB / 333.1 MB, free: 13.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003466/0.008621, allocations: 255.1 kB / 333.3 MB, free: 13.17 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002162/0.008844, allocations: 227.2 kB / 333.5 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002526/0.009104, allocations: 258.8 kB / 333.8 MB, free: 12.69 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.06e-05/0.009194, allocations: 60 kB / 333.9 MB, free: 12.63 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.23e-05/0.009273, allocations: 60 kB / 333.9 MB, free: 12.57 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0005674/0.009845, allocations: 0.8458 MB / 334.8 MB, free: 11.72 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002827/0.01014, allocations: 0.5196 MB / 335.3 MB, free: 11.19 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.644e-05/0.01024, allocations: 91.69 kB / 335.4 MB, free: 11.1 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.559e-05/0.01032, allocations: 19.88 kB / 335.4 MB, free: 11.08 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: 109 (109) * Number of variables: 109 (109) Notification: Performance of Bindings: time 0.002088/0.01241, allocations: 2.445 MB / 337.8 MB, free: 8.52 MB / 286.1 MB Notification: Performance of FunctionAlias: time 9.415e-05/0.01251, allocations: 107.8 kB / 337.9 MB, free: 8.414 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001103/0.01363, allocations: 1.257 MB / 339.2 MB, free: 7.129 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001179/0.01375, allocations: 107.9 kB / 339.3 MB, free: 7.023 MB / 286.1 MB Notification: Performance of Alias: time 0.002379/0.01614, allocations: 2.208 MB / 341.5 MB, free: 4.594 MB / 286.1 MB Notification: Performance of simplify2: time 6.417e-05/0.01621, allocations: 55.92 kB / 341.6 MB, free: 4.539 MB / 286.1 MB Notification: Performance of Events: time 0.0003343/0.01655, allocations: 242.9 kB / 341.8 MB, free: 4.297 MB / 286.1 MB Notification: Performance of Detect States: time 0.0006026/0.01717, allocations: 427.4 kB / 342.2 MB, free: 3.867 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003985/0.01757, allocations: 398.4 kB / 342.6 MB, free: 3.426 MB / 286.1 MB Notification: Performance of Causalize: time 0.001985/0.01957, allocations: 2.03 MB / 344.6 MB, free: 1.359 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0008368/0.02041, allocations: 0.9005 MB / 345.5 MB, free: 440 kB / 286.1 MB Notification: Performance of Inline: time 0.001638/0.02206, allocations: 1.674 MB / 347.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001207/0.0222, allocations: 99.61 kB / 347.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001758/0.02238, allocations: 199.6 kB / 347.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of Causalize: time 0.009089/0.03147, allocations: 10.08 MB / 357.6 MB, free: 4.715 MB / 302.1 MB Notification: Performance of Tearing: time 0.0008161/0.03232, allocations: 0.8943 MB / 358.5 MB, free: 3.723 MB / 302.1 MB Notification: Performance of Initialization: time 1.303e-06/0.03233, allocations: 0 / 358.5 MB, free: 3.723 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004018/0.03274, allocations: 446.5 kB / 358.9 MB, free: 3.238 MB / 302.1 MB Notification: Performance of Categorize: time 2.379e-05/0.03277, allocations: 8.047 kB / 358.9 MB, free: 3.23 MB / 302.1 MB Notification: Performance of Solve: time 0.0004778/0.03325, allocations: 291.8 kB / 359.2 MB, free: 2.949 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0006491/0.03391, allocations: 0.7092 MB / 359.9 MB, free: 2.199 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: ............................. 4 (4) {meanCurrent.x, meanVoltage.x, inductorSource.i, capacitor.v} * 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) {chopperStepUp.enableLogic.booleanReplicator.y, chopperStepUp.enableLogic.internalEnable, chopperStepUp.andCondition_p.u1, chopperStepUp.andCondition_p.u2, chopperStepUp.andCondition_p.y, chopperStepUp.transistor.off, chopperStepUp.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: ........... 47 (scalar:45, 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: ........... 97 (scalar:95, 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: ........... 97 (scalar:95, 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.0001382/0.03406, allocations: 81.05 kB / 360 MB, free: 2.121 MB / 302.1 MB Notification: Performance of SimCode: time 0.002137/0.0362, allocations: 2.55 MB / 362.5 MB, free: 15.53 MB / 318.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.