Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 107.4 kB / 16.42 MB, free: 6.484 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.001394/0.001394, allocations: 187.2 kB / 17.35 MB, free: 5.754 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.255/1.255, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.122e-05/2.122e-05, allocations: 2.281 kB / 327.2 MB, free: 3.344 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003516/0.003545, allocations: 2.883 MB / 330.1 MB, free: 452 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001191/0.004758, allocations: 0.7565 MB / 330.8 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.004895, allocations: 8 kB / 330.8 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.005047, allocations: 51.5 kB / 330.9 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001649/0.005241, allocations: 99.11 kB / 331 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002576/0.005505, allocations: 111.8 kB / 331.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004093/0.005924, allocations: 450.2 kB / 331.5 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002478/0.00618, allocations: 135.2 kB / 331.7 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001781/0.006366, allocations: 155.4 kB / 331.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.006555, allocations: 159.3 kB / 332 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.798e-05/0.006611, allocations: 40 kB / 332 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.762e-05/0.006665, allocations: 36 kB / 332 MB, free: 14.45 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.000369/0.007041, allocations: 0.5294 MB / 332.6 MB, free: 13.91 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001664/0.007214, allocations: 311.3 kB / 332.9 MB, free: 13.61 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.57e-05/0.007285, allocations: 63.81 kB / 332.9 MB, free: 13.54 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.227e-05/0.007343, allocations: 15.94 kB / 333 MB, free: 13.53 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: 62 (62) * Number of variables: 62 (62) Notification: Performance of Bindings: time 0.001366/0.008715, allocations: 1.553 MB / 334.5 MB, free: 11.86 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.000113/0.008835, allocations: 83.75 kB / 334.6 MB, free: 11.78 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006803/0.009523, allocations: 0.7597 MB / 335.3 MB, free: 11 MB / 286.1 MB Notification: Performance of simplify1: time 7.427e-05/0.009604, allocations: 71.91 kB / 335.4 MB, free: 10.93 MB / 286.1 MB Notification: Performance of Alias: time 0.001482/0.01109, allocations: 1.346 MB / 336.8 MB, free: 9.438 MB / 286.1 MB Notification: Performance of simplify2: time 3.92e-05/0.01114, allocations: 43.89 kB / 336.8 MB, free: 9.395 MB / 286.1 MB Notification: Performance of Events: time 0.0001612/0.01131, allocations: 116.3 kB / 336.9 MB, free: 9.281 MB / 286.1 MB Notification: Performance of Detect States: time 0.000257/0.01158, allocations: 205.2 kB / 337.1 MB, free: 9.062 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002449/0.01183, allocations: 239.5 kB / 337.4 MB, free: 8.805 MB / 286.1 MB Notification: Performance of Causalize: time 0.001149/0.01299, allocations: 1.201 MB / 338.6 MB, free: 7.594 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004739/0.01347, allocations: 0.5534 MB / 339.1 MB, free: 7.012 MB / 286.1 MB Notification: Performance of Inline: time 0.0009498/0.01443, allocations: 1.003 MB / 340.1 MB, free: 5.977 MB / 286.1 MB Notification: Performance of Partitioning: time 6.203e-05/0.0145, allocations: 58.38 kB / 340.2 MB, free: 5.91 MB / 286.1 MB Notification: Performance of Cleanup: time 4.547e-05/0.01455, allocations: 51.86 kB / 340.2 MB, free: 5.859 MB / 286.1 MB Notification: Performance of Causalize: time 0.001694/0.01625, allocations: 1.928 MB / 342.1 MB, free: 3.949 MB / 286.1 MB Notification: Performance of Tearing: time 0.0005201/0.01678, allocations: 0.5492 MB / 342.7 MB, free: 3.352 MB / 286.1 MB Notification: Performance of Initialization: time 5.61e-07/0.01679, allocations: 0 / 342.7 MB, free: 3.352 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004414/0.01724, allocations: 0.5544 MB / 343.3 MB, free: 2.75 MB / 286.1 MB Notification: Performance of Categorize: time 1.094e-05/0.01726, allocations: 0 / 343.3 MB, free: 2.75 MB / 286.1 MB Notification: Performance of Solve: time 0.000186/0.01745, allocations: 125.9 kB / 343.4 MB, free: 2.629 MB / 286.1 MB Notification: Performance of Jacobian: time 0.000561/0.01802, allocations: 0.6123 MB / 344 MB, free: 1.977 MB / 286.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: ......... 2 * 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: ............................. 1 (1) {idealTriac.capacitor.v} * Number of discrete states: .................... 1 (1) {booleanPulse.pulseStart} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 10 (10) {booleanPulse.y, idealTriac.idealThyristor.off, idealTriac.idealThyristor1.off, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $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: ........... 19 (scalar:19, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:0, when:1, 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: ........... 44 (scalar:44, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, 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.0001117/0.01814, allocations: 34.98 kB / 344 MB, free: 1.949 MB / 286.1 MB Notification: Performance of SimCode: time 0.001463/0.01961, allocations: 1.988 MB / 346 MB, free: 15.93 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.