Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001193/0.001194, allocations: 114 kB / 18.47 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001334/0.001334, allocations: 210.2 kB / 19.42 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.526e-05/2.527e-05, allocations: 4.672 kB / 359.3 MB, free: 13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003944/0.00398, allocations: 2.938 MB / 362.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00145/0.005446, allocations: 0.7985 MB / 363.1 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.005606, allocations: 15.88 kB / 363.1 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000168/0.005781, allocations: 51.5 kB / 363.1 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.006012, allocations: 99.12 kB / 363.2 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003572/0.006376, allocations: 115.7 kB / 363.4 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004775/0.006863, allocations: 458.3 kB / 363.8 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002392/0.00711, allocations: 135.2 kB / 363.9 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002516/0.007371, allocations: 163.4 kB / 364.1 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001884/0.007569, allocations: 163.2 kB / 364.3 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.829e-05/0.007636, allocations: 40 kB / 364.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.856e-05/0.007721, allocations: 40 kB / 364.3 MB, free: 7.98 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003764/0.008104, allocations: 0.5177 MB / 364.8 MB, free: 7.457 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001888/0.0083, allocations: 323.1 kB / 365.2 MB, free: 7.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.341e-05/0.008379, allocations: 63.81 kB / 365.2 MB, free: 7.074 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.791e-05/0.008442, allocations: 16 kB / 365.2 MB, free: 7.059 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: 62 (62) * Number of variables: 62 (62) Notification: Performance of Bindings: time 0.001537/0.009985, allocations: 1.565 MB / 366.8 MB, free: 5.379 MB / 302.1 MB Notification: Performance of FunctionAlias: time 6.071e-05/0.01005, allocations: 63.94 kB / 366.9 MB, free: 5.316 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0007963/0.01085, allocations: 0.8845 MB / 367.8 MB, free: 4.406 MB / 302.1 MB Notification: Performance of simplify1: time 7.386e-05/0.01094, allocations: 63.92 kB / 367.8 MB, free: 4.344 MB / 302.1 MB Notification: Performance of Alias: time 0.001823/0.01277, allocations: 1.516 MB / 369.3 MB, free: 2.684 MB / 302.1 MB Notification: Performance of simplify2: time 4.564e-05/0.01283, allocations: 47.94 kB / 369.4 MB, free: 2.637 MB / 302.1 MB Notification: Performance of Events: time 0.0002102/0.01304, allocations: 108.3 kB / 369.5 MB, free: 2.531 MB / 302.1 MB Notification: Performance of Detect States: time 0.000285/0.01334, allocations: 212.9 kB / 369.7 MB, free: 2.309 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002679/0.01362, allocations: 230.3 kB / 369.9 MB, free: 2.059 MB / 302.1 MB Notification: Performance of Causalize: time 0.001039/0.01467, allocations: 0.8443 MB / 370.8 MB, free: 1.191 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004558/0.01513, allocations: 0.5453 MB / 371.3 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of Inline: time 0.1809/0.196, allocations: 1.111 MB / 372.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001356/0.1962, allocations: 63.22 kB / 372.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001173/0.1963, allocations: 43.27 kB / 372.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of Causalize: time 0.002679/0.199, allocations: 1.506 MB / 374 MB, free: 15.18 MB / 302.1 MB Notification: Performance of Tearing: time 0.0007295/0.1997, allocations: 0.5449 MB / 374.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of Initialization: time 1.132e-06/0.1998, allocations: 0.7188 kB / 374.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of Tearing: time 0.0005675/0.2003, allocations: 0.5501 MB / 375.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of Categorize: time 1.92e-05/0.2004, allocations: 7.406 kB / 375.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of Solve: time 0.0002835/0.2007, allocations: 119.9 kB / 375.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of Jacobian: time 0.0006213/0.2013, allocations: 0.6129 MB / 375.9 MB, free: 14.39 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: ......... 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: ........... 18 (scalar:18, 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: ........... 43 (scalar:43, 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.0001235/0.2014, allocations: 30.66 kB / 375.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of SimCode: time 0.001917/0.2033, allocations: 1.965 MB / 377.9 MB, free: 13.41 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.