Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepDown.vDC1|chopperStepDown.iDC1|chopperStepDown.vDC2|chopperStepDown.iDC2",fileNamePrefix="Modelica_3.2.3_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.001068/0.001068, allocations: 106.3 kB / 18.41 MB, free: 4.531 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.001276/0.001276, allocations: 192.3 kB / 19.35 MB, free: 3.609 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.477/1.477, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.543e-05/2.544e-05, allocations: 3.266 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.004936/0.00497, allocations: 3.502 MB / 332.7 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.006981, allocations: 0.959 MB / 333.7 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003426/0.007341, allocations: 8 kB / 333.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002638/0.007614, allocations: 79.17 kB / 333.8 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002552/0.007878, allocations: 114.9 kB / 333.9 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005645/0.008498, allocations: 195.6 kB / 334.1 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006462/0.009154, allocations: 0.6424 MB / 334.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000375/0.009538, allocations: 226.1 kB / 334.9 MB, free: 13.54 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002214/0.009766, allocations: 211.2 kB / 335.1 MB, free: 13.33 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002374/0.01001, allocations: 226.9 kB / 335.4 MB, free: 13.11 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.173e-05/0.01011, allocations: 52 kB / 335.4 MB, free: 13.05 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.152e-05/0.0102, allocations: 52 kB / 335.5 MB, free: 13 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0006199/0.01083, allocations: 0.7687 MB / 336.2 MB, free: 12.23 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002947/0.01113, allocations: 488.7 kB / 336.7 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.486e-05/0.01123, allocations: 87.69 kB / 336.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001103/0.01135, allocations: 19.94 kB / 336.8 MB, free: 11.64 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.002142/0.0135, allocations: 2.233 MB / 339 MB, free: 9.289 MB / 286.1 MB Notification: Performance of FunctionAlias: time 9.703e-05/0.0136, allocations: 83.88 kB / 339.1 MB, free: 9.207 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001128/0.01474, allocations: 1.143 MB / 340.3 MB, free: 8.035 MB / 286.1 MB Notification: Performance of simplify1: time 0.000117/0.01487, allocations: 95.88 kB / 340.4 MB, free: 7.941 MB / 286.1 MB Notification: Performance of Alias: time 0.002676/0.01755, allocations: 2.248 MB / 342.6 MB, free: 5.48 MB / 286.1 MB Notification: Performance of simplify2: time 6.182e-05/0.01763, allocations: 59.86 kB / 342.7 MB, free: 5.422 MB / 286.1 MB Notification: Performance of Events: time 0.0003363/0.01797, allocations: 234 kB / 342.9 MB, free: 5.191 MB / 286.1 MB Notification: Performance of Detect States: time 0.000457/0.01844, allocations: 400.7 kB / 343.3 MB, free: 4.777 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0004253/0.01887, allocations: 374.4 kB / 343.7 MB, free: 4.359 MB / 286.1 MB Notification: Performance of Causalize: time 0.001667/0.02055, allocations: 1.333 MB / 345 MB, free: 2.973 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0009326/0.02149, allocations: 0.853 MB / 345.8 MB, free: 2.094 MB / 286.1 MB Notification: Performance of Inline: time 0.001665/0.02317, allocations: 1.528 MB / 347.4 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0001113/0.02329, allocations: 103.5 kB / 347.5 MB, free: 428 kB / 286.1 MB Notification: Performance of Cleanup: time 0.0001803/0.02348, allocations: 187.6 kB / 347.7 MB, free: 236 kB / 286.1 MB Notification: Performance of Causalize: time 0.008942/0.03243, allocations: 7.834 MB / 355.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of Tearing: time 0.0009718/0.03344, allocations: 1.027 MB / 356.5 MB, free: 7.219 MB / 302.1 MB Notification: Performance of Initialization: time 8.72e-07/0.03345, allocations: 4 kB / 356.5 MB, free: 7.215 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004471/0.0339, allocations: 0.5017 MB / 357 MB, free: 6.664 MB / 302.1 MB Notification: Performance of Categorize: time 2.694e-05/0.03394, allocations: 7.938 kB / 357 MB, free: 6.656 MB / 302.1 MB Notification: Performance of Solve: time 0.0004568/0.0344, allocations: 247.4 kB / 357.3 MB, free: 6.414 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0006744/0.03509, allocations: 0.6702 MB / 357.9 MB, free: 5.699 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.0001817/0.03528, allocations: 77.58 kB / 358 MB, free: 5.625 MB / 302.1 MB Notification: Performance of SimCode: time 0.002215/0.0375, allocations: 2.454 MB / 360.5 MB, free: 3.137 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.