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_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.2.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.2.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.001174/0.001174, allocations: 108 kB / 16.42 MB, free: 6.465 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.001144/0.001144, allocations: 189.5 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.197/1.197, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.424e-05/2.426e-05, allocations: 3.547 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.004292/0.004325, allocations: 3.515 MB / 330.7 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001499/0.005835, allocations: 0.9512 MB / 331.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002101/0.006056, allocations: 11.94 kB / 331.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002264/0.006289, allocations: 79.17 kB / 331.8 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001847/0.006482, allocations: 118.9 kB / 331.9 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004478/0.006942, allocations: 199.6 kB / 332.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005682/0.00752, allocations: 0.6424 MB / 332.7 MB, free: 13.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003298/0.007857, allocations: 218.1 kB / 333 MB, free: 13.53 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002051/0.008071, allocations: 215.1 kB / 333.2 MB, free: 13.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002394/0.008318, allocations: 219 kB / 333.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.793e-05/0.008393, allocations: 52 kB / 333.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.59e-05/0.008464, allocations: 55.94 kB / 333.5 MB, free: 13 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0005041/0.008973, allocations: 0.7686 MB / 334.2 MB, free: 12.22 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.000243/0.009223, allocations: 484.7 kB / 334.7 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.044e-05/0.009308, allocations: 87.69 kB / 334.8 MB, free: 11.65 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.598e-05/0.009361, allocations: 23.92 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.00189/0.01126, allocations: 2.233 MB / 337.1 MB, free: 9.281 MB / 286.1 MB Notification: Performance of FunctionAlias: time 7.896e-05/0.01134, allocations: 87.88 kB / 337.2 MB, free: 9.195 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0009698/0.01232, allocations: 1.147 MB / 338.3 MB, free: 8.02 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001059/0.01243, allocations: 95.88 kB / 338.4 MB, free: 7.926 MB / 286.1 MB Notification: Performance of Alias: time 0.00205/0.01449, allocations: 1.989 MB / 340.4 MB, free: 5.727 MB / 286.1 MB Notification: Performance of simplify2: time 8.194e-05/0.01458, allocations: 67.91 kB / 340.4 MB, free: 5.66 MB / 286.1 MB Notification: Performance of Events: time 0.0002965/0.01488, allocations: 222.6 kB / 340.7 MB, free: 5.441 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004076/0.0153, allocations: 401.5 kB / 341.1 MB, free: 5.031 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003716/0.01568, allocations: 366.4 kB / 341.4 MB, free: 4.621 MB / 286.1 MB Notification: Performance of Causalize: time 0.00182/0.01751, allocations: 1.887 MB / 343.3 MB, free: 2.695 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0007535/0.01827, allocations: 0.8532 MB / 344.2 MB, free: 1.816 MB / 286.1 MB Notification: Performance of Inline: time 0.001461/0.01974, allocations: 1.55 MB / 345.7 MB, free: 236 kB / 286.1 MB Notification: Performance of Partitioning: time 0.0001112/0.01986, allocations: 91.61 kB / 345.8 MB, free: 136 kB / 286.1 MB Notification: Performance of Cleanup: time 0.0001712/0.02004, allocations: 191.7 kB / 346 MB, free: 15.94 MB / 302.1 MB Notification: Performance of Causalize: time 0.008112/0.02816, allocations: 9.313 MB / 355.3 MB, free: 6.93 MB / 302.1 MB Notification: Performance of Tearing: time 0.0008941/0.02907, allocations: 1.015 MB / 356.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of Initialization: time 8.12e-07/0.02908, allocations: 0 / 356.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004189/0.0295, allocations: 0.5204 MB / 356.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of Categorize: time 1.67e-05/0.02953, allocations: 4 kB / 356.8 MB, free: 5.246 MB / 302.1 MB Notification: Performance of Solve: time 0.0003699/0.0299, allocations: 251.4 kB / 357.1 MB, free: 5 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0006181/0.03053, allocations: 0.6622 MB / 357.7 MB, free: 4.297 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.0001257/0.03067, allocations: 73.47 kB / 357.8 MB, free: 4.234 MB / 302.1 MB Notification: Performance of SimCode: time 0.001789/0.03246, allocations: 2.459 MB / 360.3 MB, free: 1.73 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.