Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001037/0.001037, allocations: 110.1 kB / 17.7 MB, free: 5.418 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.0009965/0.0009967, allocations: 192 kB / 18.64 MB, free: 4.488 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.197/1.197, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.036e-05/3.039e-05, allocations: 9.031 kB / 302 MB, free: 5.234 MB / 238.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004017/0.004065, allocations: 2.919 MB / 304.9 MB, free: 2.312 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.00512, allocations: 0.728 MB / 305.7 MB, free: 1.582 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.005243, allocations: 7.938 kB / 305.7 MB, free: 1.574 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.005391, allocations: 51.5 kB / 305.7 MB, free: 1.523 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002059/0.005604, allocations: 103.1 kB / 305.8 MB, free: 1.422 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002447/0.005863, allocations: 95.83 kB / 305.9 MB, free: 1.328 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003953/0.006267, allocations: 466.1 kB / 306.4 MB, free: 0.8711 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.006491, allocations: 131.2 kB / 306.5 MB, free: 0.7383 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001571/0.006655, allocations: 151.4 kB / 306.6 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001654/0.006828, allocations: 155.3 kB / 306.8 MB, free: 448 kB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 5.022e-05/0.006885, allocations: 36 kB / 306.8 MB, free: 412 kB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.558e-05/0.006936, allocations: 36 kB / 306.9 MB, free: 376 kB / 238.1 MB Notification: Performance of combineBinaries: time 0.0003655/0.007309, allocations: 0.5255 MB / 307.4 MB, free: 15.84 MB / 254.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001543/0.007471, allocations: 327.3 kB / 307.7 MB, free: 15.51 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 6.232e-05/0.007539, allocations: 59.81 kB / 307.8 MB, free: 15.45 MB / 254.1 MB Notification: Performance of FrontEnd: time 3.236e-05/0.007576, allocations: 12 kB / 307.8 MB, free: 15.44 MB / 254.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.001239/0.00882, allocations: 1.561 MB / 309.3 MB, free: 13.77 MB / 254.1 MB Notification: Performance of FunctionAlias: time 0.0001049/0.008931, allocations: 70.56 kB / 309.4 MB, free: 13.71 MB / 254.1 MB Notification: Performance of Early Inline: time 0.0006261/0.009564, allocations: 0.7675 MB / 310.2 MB, free: 12.91 MB / 254.1 MB Notification: Performance of simplify1: time 5.791e-05/0.009629, allocations: 59.92 kB / 310.2 MB, free: 12.85 MB / 254.1 MB Notification: Performance of Alias: time 0.0014/0.01104, allocations: 1.365 MB / 311.6 MB, free: 11.34 MB / 254.1 MB Notification: Performance of simplify2: time 3.731e-05/0.01109, allocations: 39.95 kB / 311.6 MB, free: 11.3 MB / 254.1 MB Notification: Performance of Events: time 0.0001556/0.01125, allocations: 116.3 kB / 311.8 MB, free: 11.19 MB / 254.1 MB Notification: Performance of Detect States: time 0.0003029/0.01156, allocations: 201.2 kB / 311.9 MB, free: 10.98 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0002347/0.0118, allocations: 243.5 kB / 312.2 MB, free: 10.71 MB / 254.1 MB Notification: Performance of Causalize: time 0.001158/0.01297, allocations: 1.206 MB / 313.4 MB, free: 9.5 MB / 254.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004528/0.01343, allocations: 0.5416 MB / 313.9 MB, free: 8.93 MB / 254.1 MB Notification: Performance of Inline: time 0.0009129/0.01435, allocations: 0.9857 MB / 314.9 MB, free: 7.914 MB / 254.1 MB Notification: Performance of Partitioning: time 6.632e-05/0.01442, allocations: 58.38 kB / 315 MB, free: 7.848 MB / 254.1 MB Notification: Performance of Cleanup: time 3.81e-05/0.01447, allocations: 47.89 kB / 315 MB, free: 7.801 MB / 254.1 MB Notification: Performance of Causalize: time 0.001705/0.01618, allocations: 1.95 MB / 317 MB, free: 5.879 MB / 254.1 MB Notification: Performance of Tearing: time 0.0005121/0.0167, allocations: 0.5433 MB / 317.5 MB, free: 5.289 MB / 254.1 MB Notification: Performance of Initialization: time 6.02e-07/0.01671, allocations: 0 / 317.5 MB, free: 5.289 MB / 254.1 MB Notification: Performance of Tearing: time 0.000466/0.01718, allocations: 0.5526 MB / 318.1 MB, free: 4.688 MB / 254.1 MB Notification: Performance of Categorize: time 9.498e-06/0.0172, allocations: 4 kB / 318.1 MB, free: 4.684 MB / 254.1 MB Notification: Performance of Solve: time 0.0001766/0.01738, allocations: 122 kB / 318.2 MB, free: 4.566 MB / 254.1 MB Notification: Performance of Jacobian: time 0.000575/0.01797, allocations: 0.6239 MB / 318.8 MB, free: 3.902 MB / 254.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 9.274e-05/0.01807, allocations: 21.95 kB / 318.8 MB, free: 3.895 MB / 254.1 MB Notification: Performance of SimCode: time 0.001378/0.01945, allocations: 1.957 MB / 320.8 MB, free: 1.902 MB / 254.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.