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_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.2_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.2_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.001041/0.001041, allocations: 111.8 kB / 17.75 MB, free: 5.348 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.001108/0.001108, allocations: 185.9 kB / 18.68 MB, free: 4.426 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.281/1.281, allocations: 205.1 MB / 224.6 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.08e-05/2.081e-05, allocations: 3.266 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.004724/0.004754, allocations: 3.52 MB / 332.1 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.006291, allocations: 0.959 MB / 333 MB, free: 14.81 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000195/0.006499, allocations: 15.94 kB / 333 MB, free: 14.79 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002272/0.006733, allocations: 75.23 kB / 333.1 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002106/0.006952, allocations: 114.9 kB / 333.2 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000467/0.007447, allocations: 195.6 kB / 333.4 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005937/0.00805, allocations: 0.6385 MB / 334.1 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003261/0.008384, allocations: 226.1 kB / 334.3 MB, free: 13.54 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001929/0.008584, allocations: 211.2 kB / 334.5 MB, free: 13.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002325/0.008826, allocations: 230.9 kB / 334.7 MB, free: 13.11 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.679e-05/0.0089, allocations: 52 kB / 334.8 MB, free: 13.06 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.876e-05/0.008985, allocations: 52 kB / 334.8 MB, free: 13.01 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0005039/0.009495, allocations: 0.7686 MB / 335.6 MB, free: 12.23 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002523/0.009754, allocations: 480.7 kB / 336 MB, free: 11.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.481e-05/0.009856, allocations: 91.69 kB / 336.1 MB, free: 11.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.196e-05/0.009923, allocations: 23.88 kB / 336.2 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.001922/0.01185, allocations: 2.221 MB / 338.4 MB, free: 9.305 MB / 286.1 MB Notification: Performance of FunctionAlias: time 8.613e-05/0.01195, allocations: 103.9 kB / 338.5 MB, free: 9.203 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0009936/0.01295, allocations: 1.136 MB / 339.6 MB, free: 8.039 MB / 286.1 MB Notification: Performance of simplify1: time 0.000125/0.01308, allocations: 99.86 kB / 339.7 MB, free: 7.941 MB / 286.1 MB Notification: Performance of Alias: time 0.002116/0.0152, allocations: 2.005 MB / 341.7 MB, free: 5.727 MB / 286.1 MB Notification: Performance of simplify2: time 5.756e-05/0.01527, allocations: 56.2 kB / 341.8 MB, free: 5.672 MB / 286.1 MB Notification: Performance of Events: time 0.0002955/0.01558, allocations: 222 kB / 342 MB, free: 5.453 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004029/0.01599, allocations: 392.8 kB / 342.4 MB, free: 5.051 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003611/0.01636, allocations: 374.4 kB / 342.7 MB, free: 4.633 MB / 286.1 MB Notification: Performance of Causalize: time 0.001801/0.01817, allocations: 1.884 MB / 344.6 MB, free: 2.711 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0007577/0.01894, allocations: 0.8602 MB / 345.5 MB, free: 1.824 MB / 286.1 MB Notification: Performance of Inline: time 0.001478/0.02043, allocations: 1.529 MB / 347 MB, free: 264 kB / 286.1 MB Notification: Performance of Partitioning: time 0.0001016/0.02054, allocations: 103.6 kB / 347.1 MB, free: 152 kB / 286.1 MB Notification: Performance of Cleanup: time 0.0001731/0.02072, allocations: 191.6 kB / 347.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of Causalize: time 0.008139/0.02887, allocations: 9.319 MB / 356.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of Tearing: time 0.0008916/0.02978, allocations: 1.015 MB / 357.6 MB, free: 5.828 MB / 302.1 MB Notification: Performance of Initialization: time 8.42e-07/0.02979, allocations: 0 / 357.6 MB, free: 5.828 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004137/0.03021, allocations: 0.5175 MB / 358.2 MB, free: 5.262 MB / 302.1 MB Notification: Performance of Categorize: time 1.871e-05/0.03023, allocations: 0 / 358.2 MB, free: 5.262 MB / 302.1 MB Notification: Performance of Solve: time 0.0004081/0.03065, allocations: 259.3 kB / 358.4 MB, free: 5.008 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0006149/0.03127, allocations: 0.6544 MB / 359.1 MB, free: 4.312 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.0001541/0.03143, allocations: 77.45 kB / 359.1 MB, free: 4.246 MB / 302.1 MB Notification: Performance of SimCode: time 0.001929/0.03337, allocations: 2.463 MB / 361.6 MB, free: 1.738 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.