Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001533/0.001533, allocations: 109 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.00134/0.00134, allocations: 196.5 kB / 18.68 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.602e-05/2.604e-05, allocations: 2.281 kB / 351.9 MB, free: 3.273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005464/0.005498, allocations: 4.042 MB / 356 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.00772, allocations: 1.009 MB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002076/0.007943, allocations: 8 kB / 357 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002395/0.00819, allocations: 83.14 kB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003189/0.008557, allocations: 186.3 kB / 357.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004634/0.009028, allocations: 207.7 kB / 357.5 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008434/0.009881, allocations: 0.8993 MB / 358.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003163/0.01021, allocations: 184.8 kB / 358.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003478/0.01056, allocations: 314.9 kB / 358.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003737/0.01095, allocations: 354.6 kB / 359.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.737e-05/0.01105, allocations: 80 kB / 359.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.01117, allocations: 80 kB / 359.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0007849/0.01196, allocations: 0.9781 MB / 360.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003095/0.01228, allocations: 0.562 MB / 360.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.0124, allocations: 107.6 kB / 361 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.513e-05/0.01249, allocations: 16 kB / 361 MB, free: 10.14 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: 89 (89) * Number of variables: 89 (89) Notification: Performance of Bindings: time 0.002468/0.01496, allocations: 2.79 MB / 363.8 MB, free: 7.223 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002423/0.01521, allocations: 200.1 kB / 364 MB, free: 7.035 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001558/0.01678, allocations: 1.624 MB / 365.6 MB, free: 5.387 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001719/0.01696, allocations: 135.8 kB / 365.8 MB, free: 5.254 MB / 302.1 MB Notification: Performance of Alias: time 0.00284/0.01981, allocations: 2.274 MB / 368 MB, free: 2.797 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001309/0.01995, allocations: 111.8 kB / 368.1 MB, free: 2.688 MB / 302.1 MB Notification: Performance of Events: time 0.0004386/0.0204, allocations: 334.4 kB / 368.5 MB, free: 2.367 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006944/0.0211, allocations: 467.5 kB / 368.9 MB, free: 1.895 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0005289/0.02164, allocations: 0.4941 MB / 369.4 MB, free: 1.387 MB / 302.1 MB Notification: Performance of Causalize: time 0.1959/0.2175, allocations: 2.007 MB / 371.4 MB, free: 18.23 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001527/0.2191, allocations: 1.432 MB / 372.9 MB, free: 18.12 MB / 302.1 MB Notification: Performance of Inline: time 0.002764/0.2219, allocations: 2.633 MB / 375.5 MB, free: 17.85 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001566/0.2221, allocations: 135.9 kB / 375.6 MB, free: 17.76 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001217/0.2222, allocations: 112.3 kB / 375.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of Causalize: time 0.004955/0.2271, allocations: 4.082 MB / 379.8 MB, free: 16.22 MB / 302.1 MB Notification: Performance of Tearing: time 0.001212/0.2284, allocations: 1.054 MB / 380.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of Initialization: time 1.443e-06/0.2284, allocations: 3.609 kB / 380.9 MB, free: 15.7 MB / 302.1 MB Notification: Performance of Tearing: time 0.001106/0.2295, allocations: 1.044 MB / 381.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Categorize: time 2.258e-05/0.2295, allocations: 9.875 kB / 381.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of Solve: time 0.0005945/0.2301, allocations: 292.2 kB / 382.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of Jacobian: time 0.001999/0.2321, allocations: 1.748 MB / 384 MB, free: 14.36 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) {trapezoidCurrent.signalSource.T_start, trapezoidCurrent.signalSource.count} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 27 (27) {simpleTriac.idealDiode.off, simpleTriac.idealDiode1.off, $SEV_23, $SEV_22, $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: ........... 46 (scalar:46, 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: ........... 104 (scalar:104, 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 6.633e-05/0.2322, allocations: 38.83 kB / 384 MB, free: 14.35 MB / 302.1 MB Notification: Performance of SimCode: time 0.00316/0.2354, allocations: 3.322 MB / 387.3 MB, free: 12.67 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.