Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_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.ChopperStepDown.ChopperStepDown_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001371/0.001372, allocations: 104.4 kB / 16.42 MB, free: 6.461 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.001137/0.001137, allocations: 192.2 kB / 17.36 MB, free: 5.73 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.47/1.47, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.417e-05/2.418e-05, allocations: 2.281 kB / 327.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.004579/0.004611, allocations: 3.511 MB / 330.7 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.006293, allocations: 0.9551 MB / 331.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002046/0.006509, allocations: 11.94 kB / 331.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002442/0.006762, allocations: 87.17 kB / 331.8 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002119/0.006983, allocations: 106.9 kB / 331.9 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005117/0.007539, allocations: 207.6 kB / 332.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007099/0.008258, allocations: 0.6307 MB / 332.7 MB, free: 13.76 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003668/0.008635, allocations: 230.1 kB / 333 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002776/0.008921, allocations: 207.2 kB / 333.2 MB, free: 13.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002401/0.009169, allocations: 231 kB / 333.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.062e-05/0.009246, allocations: 55.94 kB / 333.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.875e-05/0.009321, allocations: 52 kB / 333.5 MB, free: 12.99 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0005347/0.009861, allocations: 0.7608 MB / 334.2 MB, free: 12.22 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002598/0.01013, allocations: 488.7 kB / 334.7 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.394e-05/0.01023, allocations: 91.69 kB / 334.8 MB, free: 11.64 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.414e-05/0.0103, allocations: 15.94 kB / 334.8 MB, free: 11.63 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: 97 (97) * Number of variables: 97 (97) Notification: Performance of Bindings: time 0.00206/0.01237, allocations: 2.229 MB / 337.1 MB, free: 9.285 MB / 286.1 MB Notification: Performance of FunctionAlias: time 8.907e-05/0.01246, allocations: 99.86 kB / 337.2 MB, free: 9.188 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001037/0.01351, allocations: 1.136 MB / 338.3 MB, free: 8.023 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001188/0.01364, allocations: 99.86 kB / 338.4 MB, free: 7.926 MB / 286.1 MB Notification: Performance of Alias: time 0.002432/0.01608, allocations: 2.001 MB / 340.4 MB, free: 5.715 MB / 286.1 MB Notification: Performance of simplify2: time 6.174e-05/0.01615, allocations: 59.92 kB / 340.5 MB, free: 5.656 MB / 286.1 MB Notification: Performance of Events: time 0.0003182/0.01648, allocations: 226.7 kB / 340.7 MB, free: 5.434 MB / 286.1 MB Notification: Performance of Detect States: time 0.000403/0.01689, allocations: 392.8 kB / 341.1 MB, free: 5.031 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003619/0.01726, allocations: 374.3 kB / 341.4 MB, free: 4.613 MB / 286.1 MB Notification: Performance of Causalize: time 0.002043/0.01931, allocations: 1.884 MB / 343.3 MB, free: 2.691 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.000764/0.02009, allocations: 0.8525 MB / 344.2 MB, free: 1.812 MB / 286.1 MB Notification: Performance of Inline: time 0.001608/0.0217, allocations: 1.533 MB / 345.7 MB, free: 248 kB / 286.1 MB Notification: Performance of Partitioning: time 0.0001779/0.02189, allocations: 107.6 kB / 345.8 MB, free: 132 kB / 286.1 MB Notification: Performance of Cleanup: time 0.000201/0.0221, allocations: 195.6 kB / 346 MB, free: 15.93 MB / 302.1 MB Notification: Performance of Causalize: time 0.009535/0.03164, allocations: 9.307 MB / 355.3 MB, free: 6.93 MB / 302.1 MB Notification: Performance of Tearing: time 0.001022/0.03269, allocations: 1.027 MB / 356.3 MB, free: 5.805 MB / 302.1 MB Notification: Performance of Initialization: time 1.012e-06/0.0327, allocations: 0 / 356.3 MB, free: 5.805 MB / 302.1 MB Notification: Performance of Tearing: time 0.0005119/0.03322, allocations: 0.5058 MB / 356.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of Categorize: time 2.071e-05/0.03325, allocations: 4 kB / 356.8 MB, free: 5.246 MB / 302.1 MB Notification: Performance of Solve: time 0.0004353/0.03369, allocations: 267.3 kB / 357.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of Jacobian: time 0.000631/0.03433, allocations: 0.6505 MB / 357.7 MB, free: 4.293 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: ............................. 2 (2) {meanCurrent.x, meanVoltage.x} * 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: ........... 39 (scalar:37, 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: ........... 85 (scalar:83, 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: ........... 85 (scalar:83, 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.000102/0.03444, allocations: 77.45 kB / 357.8 MB, free: 4.227 MB / 302.1 MB Notification: Performance of SimCode: time 0.002057/0.03651, allocations: 2.464 MB / 360.3 MB, free: 1.719 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.