Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor.v|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepUp.vDC1|chopperStepUp.iDC1|chopperStepUp.vDC2|chopperStepUp.iDC2",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor.v|inductor.i|meanCurrent.x|meanVoltage.x|meanCurrent.y|meanVoltage.y|chopperStepUp.vDC1|chopperStepUp.iDC1|chopperStepUp.vDC2|chopperStepUp.iDC2",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001216/0.001221, allocations: 110.8 kB / 18.47 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001371/0.001371, allocations: 211.9 kB / 19.42 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.475e-05/2.476e-05, allocations: 2.281 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R): time 0.005046/0.005079, allocations: 4.162 MB / 363.5 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00204/0.007135, allocations: 1.122 MB / 364.7 MB, free: 7.602 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00026/0.007407, allocations: 11.94 kB / 364.7 MB, free: 7.59 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002548/0.00767, allocations: 103 kB / 364.8 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002375/0.007916, allocations: 142.7 kB / 364.9 MB, free: 7.348 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005389/0.00848, allocations: 239.6 kB / 365.2 MB, free: 7.113 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007197/0.009211, allocations: 0.775 MB / 365.9 MB, free: 6.336 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004464/0.009666, allocations: 276.6 kB / 366.2 MB, free: 6.055 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000298/0.009972, allocations: 255 kB / 366.4 MB, free: 5.805 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002862/0.01027, allocations: 274.7 kB / 366.7 MB, free: 5.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.027e-05/0.01035, allocations: 64 kB / 366.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.667e-05/0.01045, allocations: 60 kB / 366.8 MB, free: 5.414 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0006076/0.01106, allocations: 0.9306 MB / 367.8 MB, free: 4.477 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002921/0.01136, allocations: 0.5773 MB / 368.3 MB, free: 3.891 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001151/0.01148, allocations: 103.7 kB / 368.4 MB, free: 3.789 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001247/0.01161, allocations: 27.88 kB / 368.5 MB, free: 3.762 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 (116) * Number of variables: 116 (116) Notification: Performance of Bindings: time 0.002199/0.01382, allocations: 2.631 MB / 371.1 MB, free: 1.012 MB / 302.1 MB Notification: Performance of FunctionAlias: time 9.473e-05/0.01392, allocations: 99.86 kB / 371.2 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of Early Inline: time 0.1958/0.2098, allocations: 1.34 MB / 372.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002103/0.21, allocations: 116 kB / 372.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of Alias: time 0.003246/0.2133, allocations: 2.69 MB / 375.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001003/0.2134, allocations: 71.89 kB / 375.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of Events: time 0.0003439/0.2137, allocations: 269.5 kB / 375.7 MB, free: 12.72 MB / 302.1 MB Notification: Performance of Detect States: time 0.0004582/0.2142, allocations: 436.3 kB / 376.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0003958/0.2146, allocations: 426.9 kB / 376.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of Causalize: time 0.00167/0.2163, allocations: 1.537 MB / 378.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0009073/0.2172, allocations: 0.9912 MB / 379 MB, free: 11.8 MB / 302.1 MB Notification: Performance of Inline: time 0.001727/0.2189, allocations: 1.818 MB / 380.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000114/0.2191, allocations: 104.6 kB / 381 MB, free: 10.69 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002071/0.2193, allocations: 226.2 kB / 381.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of Causalize: time 0.01048/0.2298, allocations: 8.875 MB / 390.1 MB, free: 7.453 MB / 302.1 MB Notification: Performance of Tearing: time 0.0008146/0.2306, allocations: 0.8881 MB / 391 MB, free: 6.805 MB / 302.1 MB Notification: Performance of Initialization: time 1.613e-06/0.2306, allocations: 0 / 391 MB, free: 6.805 MB / 302.1 MB Notification: Performance of Tearing: time 0.0003441/0.231, allocations: 449.5 kB / 391.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of Categorize: time 2.479e-05/0.231, allocations: 5.438 kB / 391.4 MB, free: 6.492 MB / 302.1 MB Notification: Performance of Solve: time 0.0007776/0.2318, allocations: 322.4 kB / 391.7 MB, free: 6.391 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0006502/0.2325, allocations: 0.7413 MB / 392.5 MB, free: 5.969 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: ............................. 4 (4) {meanCurrent.x, meanVoltage.x, inductor.i, capacitor.v} * 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: ................. 26 (26) {chopperStepUp.enableLogic.booleanReplicator.y, chopperStepUp.enableLogic.internalEnable, chopperStepUp.andCondition_p.u1, chopperStepUp.andCondition_p.u2, chopperStepUp.andCondition_p.y, chopperStepUp.transistor.off, chopperStepUp.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_7, $TEV_6, $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: ........... 51 (scalar:49, 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: ........... 104 (scalar:102, 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: ........... 104 (scalar:102, 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.0001424/0.2326, allocations: 62.47 kB / 392.5 MB, free: 5.949 MB / 302.1 MB Notification: Performance of SimCode: time 0.00228/0.2349, allocations: 2.672 MB / 395.2 MB, free: 4.445 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.