Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001005/0.001005, allocations: 109.5 kB / 17.75 MB, free: 5.328 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.0009357/0.0009357, allocations: 192.2 kB / 18.68 MB, free: 4.406 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.253/1.253, allocations: 205.1 MB / 224.6 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.575e-05/1.576e-05, allocations: 7.062 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003989/0.004014, allocations: 3.895 MB / 332.4 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.005391, allocations: 1.018 MB / 333.4 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.005557, allocations: 8 kB / 333.4 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.005744, allocations: 83.16 kB / 333.5 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000246/0.006002, allocations: 166.5 kB / 333.7 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003677/0.006376, allocations: 203.7 kB / 333.9 MB, free: 13.92 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006724/0.007057, allocations: 0.8448 MB / 334.7 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002525/0.007317, allocations: 172.8 kB / 334.9 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002796/0.007604, allocations: 291 kB / 335.2 MB, free: 12.62 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002961/0.007908, allocations: 334.7 kB / 335.5 MB, free: 12.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.122e-05/0.007996, allocations: 76 kB / 335.6 MB, free: 12.21 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.71e-05/0.008088, allocations: 76 kB / 335.7 MB, free: 12.14 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0006122/0.008705, allocations: 0.9277 MB / 336.6 MB, free: 11.2 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002692/0.008983, allocations: 0.5352 MB / 337.1 MB, free: 10.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.053e-05/0.009079, allocations: 99.69 kB / 337.2 MB, free: 10.56 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.515e-05/0.009119, allocations: 12 kB / 337.2 MB, free: 10.55 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.002172/0.0113, allocations: 2.685 MB / 339.9 MB, free: 7.742 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0002131/0.01151, allocations: 190.5 kB / 340.1 MB, free: 7.559 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001331/0.01285, allocations: 1.542 MB / 341.6 MB, free: 5.988 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001312/0.01299, allocations: 131.8 kB / 341.8 MB, free: 5.859 MB / 286.1 MB Notification: Performance of Alias: time 0.00204/0.01504, allocations: 2.014 MB / 343.8 MB, free: 3.676 MB / 286.1 MB Notification: Performance of simplify2: time 0.0001248/0.01517, allocations: 103.9 kB / 343.9 MB, free: 3.574 MB / 286.1 MB Notification: Performance of Events: time 0.0003623/0.01555, allocations: 314.9 kB / 344.2 MB, free: 3.266 MB / 286.1 MB Notification: Performance of Detect States: time 0.000483/0.01604, allocations: 440.6 kB / 344.6 MB, free: 2.82 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0004757/0.01653, allocations: 497.9 kB / 345.1 MB, free: 2.316 MB / 286.1 MB Notification: Performance of Causalize: time 0.002585/0.01912, allocations: 2.838 MB / 347.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001143/0.02027, allocations: 1.344 MB / 349.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of Inline: time 0.002158/0.02244, allocations: 2.438 MB / 351.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001264/0.02257, allocations: 123.5 kB / 351.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of Cleanup: time 8.303e-05/0.02266, allocations: 103.9 kB / 352 MB, free: 11.42 MB / 302.1 MB Notification: Performance of Causalize: time 0.004009/0.02668, allocations: 4.69 MB / 356.6 MB, free: 6.875 MB / 302.1 MB Notification: Performance of Tearing: time 0.001026/0.02771, allocations: 1.05 MB / 357.7 MB, free: 5.777 MB / 302.1 MB Notification: Performance of Initialization: time 7.51e-07/0.02772, allocations: 0 / 357.7 MB, free: 5.777 MB / 302.1 MB Notification: Performance of Tearing: time 0.0009551/0.02869, allocations: 1.061 MB / 358.8 MB, free: 4.668 MB / 302.1 MB Notification: Performance of Categorize: time 1.141e-05/0.02871, allocations: 4 kB / 358.8 MB, free: 4.664 MB / 302.1 MB Notification: Performance of Solve: time 0.0003432/0.02905, allocations: 266.8 kB / 359 MB, free: 4.406 MB / 302.1 MB Notification: Performance of Jacobian: time 0.00175/0.03081, allocations: 1.724 MB / 360.7 MB, free: 2.645 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 4.546e-05/0.03087, allocations: 57.06 kB / 360.8 MB, free: 2.598 MB / 302.1 MB Notification: Performance of SimCode: time 0.002262/0.03313, allocations: 3.207 MB / 364 MB, free: 15.35 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.