Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.001267/0.001267, allocations: 104.6 kB / 16.42 MB, free: 5.957 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.001204/0.001204, allocations: 185.5 kB / 17.36 MB, free: 5.574 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.512/1.512, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.171e-05/2.171e-05, allocations: 2.281 kB / 327.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL): time 0.004388/0.004418, allocations: 3.619 MB / 330.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.005975, allocations: 0.9785 MB / 331.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001863/0.006172, allocations: 11.94 kB / 331.8 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002255/0.006404, allocations: 79.17 kB / 331.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002079/0.006619, allocations: 122.8 kB / 332 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004788/0.007121, allocations: 211.6 kB / 332.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000595/0.007725, allocations: 0.6579 MB / 332.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003397/0.008074, allocations: 242.7 kB / 333.1 MB, free: 13.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002083/0.00829, allocations: 223.2 kB / 333.4 MB, free: 13.12 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002372/0.008534, allocations: 238.9 kB / 333.6 MB, free: 12.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.657e-05/0.008609, allocations: 55.94 kB / 333.6 MB, free: 12.83 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.561e-05/0.008691, allocations: 56 kB / 333.7 MB, free: 12.78 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.000543/0.009239, allocations: 0.8111 MB / 334.5 MB, free: 11.96 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.000282/0.009528, allocations: 0.4886 MB / 335 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.00964, allocations: 95.69 kB / 335.1 MB, free: 11.37 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.874e-05/0.009704, allocations: 19.88 kB / 335.1 MB, free: 11.35 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.002072/0.01178, allocations: 2.33 MB / 337.4 MB, free: 8.902 MB / 286.1 MB Notification: Performance of FunctionAlias: time 9.37e-05/0.01188, allocations: 107.8 kB / 337.5 MB, free: 8.797 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001089/0.01298, allocations: 1.194 MB / 338.7 MB, free: 7.574 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001083/0.01309, allocations: 95.88 kB / 338.8 MB, free: 7.48 MB / 286.1 MB Notification: Performance of Alias: time 0.002478/0.01558, allocations: 2.119 MB / 340.9 MB, free: 5.145 MB / 286.1 MB Notification: Performance of simplify2: time 7.99e-05/0.01567, allocations: 63.91 kB / 341 MB, free: 5.082 MB / 286.1 MB Notification: Performance of Events: time 0.0003256/0.016, allocations: 230.9 kB / 341.2 MB, free: 4.852 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004269/0.01644, allocations: 396.8 kB / 341.6 MB, free: 4.453 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0004316/0.01688, allocations: 382.4 kB / 342 MB, free: 4.027 MB / 286.1 MB Notification: Performance of Causalize: time 0.002043/0.01893, allocations: 1.93 MB / 343.9 MB, free: 2.062 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0008087/0.01975, allocations: 0.8687 MB / 344.8 MB, free: 1.164 MB / 286.1 MB Notification: Performance of Inline: time 0.001543/0.0213, allocations: 1.598 MB / 346.4 MB, free: 15.53 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001007/0.02141, allocations: 99.61 kB / 346.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001645/0.02158, allocations: 195.6 kB / 346.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of Causalize: time 0.008384/0.02998, allocations: 9.638 MB / 356.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of Tearing: time 0.0008148/0.03081, allocations: 0.8866 MB / 357.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of Initialization: time 7.11e-07/0.03082, allocations: 0 / 357.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003469/0.03117, allocations: 446 kB / 357.6 MB, free: 4.453 MB / 302.1 MB Notification: Performance of Categorize: time 2.067e-05/0.0312, allocations: 8.047 kB / 357.7 MB, free: 4.445 MB / 302.1 MB Notification: Performance of Solve: time 0.0004357/0.03164, allocations: 279.4 kB / 357.9 MB, free: 4.172 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0005996/0.03225, allocations: 0.6466 MB / 358.6 MB, free: 3.484 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.0001396/0.0324, allocations: 85.05 kB / 358.7 MB, free: 3.406 MB / 302.1 MB Notification: Performance of SimCode: time 0.0022/0.0346, allocations: 2.487 MB / 361.1 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.