Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_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.00101/0.00101, allocations: 103.9 kB / 18.41 MB, free: 4.668 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.001139/0.001139, allocations: 191.8 kB / 19.35 MB, free: 3.742 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.405/1.405, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.744e-05/2.744e-05, allocations: 5.234 kB / 329.2 MB, free: 3.332 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005411/0.005447, allocations: 3.89 MB / 333.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001829/0.007291, allocations: 1.022 MB / 334.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001727/0.007475, allocations: 4 kB / 334.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001736/0.007659, allocations: 87.16 kB / 334.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002963/0.007977, allocations: 174.5 kB / 334.3 MB, free: 14.12 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003595/0.008344, allocations: 203.7 kB / 334.5 MB, free: 13.93 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008092/0.009163, allocations: 0.837 MB / 335.4 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002688/0.009442, allocations: 188.8 kB / 335.6 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003265/0.009776, allocations: 291 kB / 335.9 MB, free: 12.62 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003424/0.01013, allocations: 330.7 kB / 336.2 MB, free: 12.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.01024, allocations: 76 kB / 336.2 MB, free: 12.22 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.523e-05/0.01034, allocations: 76 kB / 336.3 MB, free: 12.14 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.000741/0.01109, allocations: 0.9316 MB / 337.3 MB, free: 11.2 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003403/0.01144, allocations: 0.5274 MB / 337.8 MB, free: 10.67 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.01155, allocations: 99.69 kB / 337.9 MB, free: 10.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.484e-05/0.01162, allocations: 20 kB / 337.9 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.00245/0.01408, allocations: 2.681 MB / 340.6 MB, free: 7.746 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0002127/0.0143, allocations: 183.6 kB / 340.8 MB, free: 7.566 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001519/0.01582, allocations: 1.538 MB / 342.3 MB, free: 6 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001522/0.01599, allocations: 139.8 kB / 342.4 MB, free: 5.863 MB / 286.1 MB Notification: Performance of Alias: time 0.002572/0.01857, allocations: 2.211 MB / 344.6 MB, free: 3.48 MB / 286.1 MB Notification: Performance of simplify2: time 0.0001054/0.01869, allocations: 103.8 kB / 344.7 MB, free: 3.379 MB / 286.1 MB Notification: Performance of Events: time 0.000391/0.01909, allocations: 313.8 kB / 345.1 MB, free: 3.07 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004523/0.01955, allocations: 444.7 kB / 345.5 MB, free: 2.621 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0005289/0.02009, allocations: 494 kB / 346 MB, free: 2.121 MB / 286.1 MB Notification: Performance of Causalize: time 0.002334/0.02243, allocations: 1.922 MB / 347.9 MB, free: 176 kB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.001417/0.02386, allocations: 1.363 MB / 349.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of Inline: time 0.002669/0.02654, allocations: 2.43 MB / 351.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001353/0.02668, allocations: 119.6 kB / 351.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of Cleanup: time 9.168e-05/0.02678, allocations: 103.8 kB / 351.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of Causalize: time 0.004029/0.03082, allocations: 3.628 MB / 355.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of Tearing: time 0.001161/0.03199, allocations: 1.05 MB / 356.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of Initialization: time 1.052e-06/0.032, allocations: 0 / 356.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of Tearing: time 0.001049/0.03306, allocations: 1.057 MB / 357.6 MB, free: 6.223 MB / 302.1 MB Notification: Performance of Categorize: time 1.123e-05/0.03308, allocations: 4 kB / 357.6 MB, free: 6.219 MB / 302.1 MB Notification: Performance of Solve: time 0.0003944/0.03348, allocations: 274.7 kB / 357.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of Jacobian: time 0.001837/0.03533, allocations: 1.728 MB / 359.6 MB, free: 4.184 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 0.0001496/0.03549, allocations: 55.55 kB / 359.7 MB, free: 4.133 MB / 302.1 MB Notification: Performance of SimCode: time 0.002721/0.03822, allocations: 3.203 MB / 362.9 MB, free: 0.8828 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.