Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") 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: 109.9 kB / 16.42 MB, free: 6.031 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.001049/0.001049, allocations: 193.1 kB / 17.35 MB, free: 5.625 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.278/1.278, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.087e-05/2.087e-05, allocations: 2.281 kB / 327.2 MB, free: 3.344 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004147/0.004176, allocations: 3.899 MB / 331.1 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.005712, allocations: 1.022 MB / 332.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/0.005888, allocations: 7.938 kB / 332.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001847/0.006079, allocations: 83.2 kB / 332.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000261/0.006366, allocations: 162.5 kB / 332.4 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003805/0.006754, allocations: 211.6 kB / 332.6 MB, free: 13.93 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006719/0.007435, allocations: 0.8409 MB / 333.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002614/0.007705, allocations: 172.8 kB / 333.6 MB, free: 12.92 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002959/0.008008, allocations: 287 kB / 333.8 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000299/0.008317, allocations: 338.6 kB / 334.2 MB, free: 12.31 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.476e-05/0.008409, allocations: 76 kB / 334.3 MB, free: 12.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.964e-05/0.008506, allocations: 80 kB / 334.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0006153/0.009127, allocations: 0.9316 MB / 335.3 MB, free: 11.21 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002727/0.009406, allocations: 0.5274 MB / 335.8 MB, free: 10.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.3e-05/0.009504, allocations: 99.69 kB / 335.9 MB, free: 10.58 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.773e-05/0.009558, allocations: 20 kB / 335.9 MB, free: 10.56 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: 88 (88) * Number of variables: 88 (88) Notification: Performance of Bindings: time 0.002153/0.01172, allocations: 2.677 MB / 338.6 MB, free: 7.762 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0002114/0.01194, allocations: 186.5 kB / 338.8 MB, free: 7.582 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001285/0.01323, allocations: 1.546 MB / 340.3 MB, free: 6.008 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001356/0.01337, allocations: 135.8 kB / 340.4 MB, free: 5.875 MB / 286.1 MB Notification: Performance of Alias: time 0.002026/0.01541, allocations: 2.006 MB / 342.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of simplify2: time 0.0001028/0.01552, allocations: 103.9 kB / 342.6 MB, free: 3.598 MB / 286.1 MB Notification: Performance of Events: time 0.000374/0.0159, allocations: 318.6 kB / 342.9 MB, free: 3.285 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004334/0.01635, allocations: 444.6 kB / 343.3 MB, free: 2.836 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0004703/0.01682, allocations: 489.9 kB / 343.8 MB, free: 2.34 MB / 286.1 MB Notification: Performance of Causalize: time 0.002596/0.01943, allocations: 2.834 MB / 346.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001164/0.0206, allocations: 1.352 MB / 348 MB, free: 14.16 MB / 302.1 MB Notification: Performance of Inline: time 0.002183/0.0228, allocations: 2.435 MB / 350.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001167/0.02293, allocations: 123.5 kB / 350.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of Cleanup: time 9.363e-05/0.02302, allocations: 103.9 kB / 350.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of Causalize: time 0.004107/0.02714, allocations: 4.697 MB / 355.3 MB, free: 6.898 MB / 302.1 MB Notification: Performance of Tearing: time 0.001072/0.02823, allocations: 1.05 MB / 356.4 MB, free: 5.801 MB / 302.1 MB Notification: Performance of Initialization: time 6.11e-07/0.02824, allocations: 4 kB / 356.4 MB, free: 5.797 MB / 302.1 MB Notification: Performance of Tearing: time 0.0009734/0.02922, allocations: 1.057 MB / 357.4 MB, free: 4.691 MB / 302.1 MB Notification: Performance of Categorize: time 1.233e-05/0.02924, allocations: 0 / 357.4 MB, free: 4.691 MB / 302.1 MB Notification: Performance of Solve: time 0.0003743/0.02962, allocations: 266.8 kB / 357.7 MB, free: 4.434 MB / 302.1 MB Notification: Performance of Jacobian: time 0.001797/0.03143, allocations: 1.724 MB / 359.4 MB, free: 2.672 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: ......... 1 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 3 (3) {L.i, simpleTriac.thyristor.vControl, simpleTriac.thyristor1.vControl} * Number of discrete states: .................... 2 (2) {pulseCurrent.signalSource.T_start, pulseCurrent.signalSource.count} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 25 (25) {simpleTriac.idealDiode.off, simpleTriac.idealDiode1.off, $SEV_21, $SEV_20, $SEV_19, $SEV_18, $SEV_17, $SEV_16, $SEV_15, $SEV_14, $SEV_13, $SEV_12, $SEV_11, $SEV_10, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $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:44, array:0, record:0) * Number of multi strong components: ............ 2 (algorithm:0, when:2, 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: ........... 95 (scalar:95, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, 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 5.485e-05/0.0315, allocations: 61.14 kB / 359.5 MB, free: 2.621 MB / 302.1 MB Notification: Performance of SimCode: time 0.002212/0.03371, allocations: 3.207 MB / 362.7 MB, free: 15.38 MB / 318.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.