Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001195/0.001195, allocations: 117 kB / 17.76 MB, free: 5.32 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.001146/0.001146, allocations: 188.6 kB / 18.69 MB, free: 4.402 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.262/1.262, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.998e-05/1.999e-05, allocations: 4.812 kB / 328.6 MB, free: 3.297 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL): time 0.004422/0.00445, allocations: 3.609 MB / 332.2 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.005935, allocations: 0.9785 MB / 333.1 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001682/0.006114, allocations: 11.94 kB / 333.2 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002011/0.006321, allocations: 75.17 kB / 333.2 MB, free: 14.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001996/0.006529, allocations: 130.8 kB / 333.4 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.006985, allocations: 203.6 kB / 333.6 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005903/0.007585, allocations: 0.6657 MB / 334.2 MB, free: 13.6 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003454/0.007939, allocations: 238.7 kB / 334.5 MB, free: 13.36 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.008126, allocations: 215.2 kB / 334.7 MB, free: 13.14 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002234/0.008356, allocations: 238.9 kB / 334.9 MB, free: 12.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.62e-05/0.008438, allocations: 59.94 kB / 335 MB, free: 12.85 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.19e-05/0.008515, allocations: 56 kB / 335 MB, free: 12.8 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0005376/0.009059, allocations: 0.8072 MB / 335.8 MB, free: 11.98 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002641/0.009329, allocations: 0.5003 MB / 336.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.576e-05/0.00942, allocations: 87.69 kB / 336.4 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.861e-05/0.009475, allocations: 23.88 kB / 336.4 MB, free: 11.36 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.00195/0.01143, allocations: 2.33 MB / 338.8 MB, free: 8.918 MB / 286.1 MB Notification: Performance of FunctionAlias: time 9.329e-05/0.01153, allocations: 103.8 kB / 338.9 MB, free: 8.816 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001033/0.01257, allocations: 1.186 MB / 340 MB, free: 7.602 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001081/0.01268, allocations: 99.88 kB / 340.1 MB, free: 7.504 MB / 286.1 MB Notification: Performance of Alias: time 0.002225/0.01491, allocations: 2.126 MB / 342.3 MB, free: 5.16 MB / 286.1 MB Notification: Performance of simplify2: time 5.912e-05/0.01499, allocations: 67.91 kB / 342.3 MB, free: 5.094 MB / 286.1 MB Notification: Performance of Events: time 0.0002976/0.01529, allocations: 222.9 kB / 342.6 MB, free: 4.871 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004167/0.01572, allocations: 396.8 kB / 342.9 MB, free: 4.473 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003851/0.01611, allocations: 390.4 kB / 343.3 MB, free: 4.039 MB / 286.1 MB Notification: Performance of Causalize: time 0.001801/0.01792, allocations: 1.93 MB / 345.3 MB, free: 2.074 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0007863/0.01872, allocations: 0.8725 MB / 346.1 MB, free: 1.172 MB / 286.1 MB Notification: Performance of Inline: time 0.001508/0.02023, allocations: 1.591 MB / 347.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001096/0.02036, allocations: 99.61 kB / 347.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001657/0.02053, allocations: 191.5 kB / 348 MB, free: 15.25 MB / 302.1 MB Notification: Performance of Causalize: time 0.008297/0.02883, allocations: 9.636 MB / 357.6 MB, free: 5.938 MB / 302.1 MB Notification: Performance of Tearing: time 0.000703/0.02955, allocations: 0.8864 MB / 358.5 MB, free: 4.953 MB / 302.1 MB Notification: Performance of Initialization: time 7.52e-07/0.02956, allocations: 0 / 358.5 MB, free: 4.953 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003465/0.02992, allocations: 450 kB / 359 MB, free: 4.465 MB / 302.1 MB Notification: Performance of Categorize: time 1.631e-05/0.02994, allocations: 8.047 kB / 359 MB, free: 4.457 MB / 302.1 MB Notification: Performance of Solve: time 0.0004066/0.03035, allocations: 275.4 kB / 359.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0005632/0.03092, allocations: 0.6505 MB / 359.9 MB, free: 3.496 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.03106, allocations: 85.05 kB / 360 MB, free: 3.418 MB / 302.1 MB Notification: Performance of SimCode: time 0.001855/0.03292, allocations: 2.501 MB / 362.5 MB, free: 0.8789 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.