Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001354/0.001354, allocations: 107.6 kB / 18.41 MB, free: 4.664 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.001183/0.001183, allocations: 191.1 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.54/1.54, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.681e-05/2.683e-05, allocations: 2.281 kB / 329.2 MB, free: 3.352 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003993/0.004028, allocations: 2.871 MB / 332 MB, free: 472 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.005324, allocations: 0.7644 MB / 332.8 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.005487, allocations: 7.938 kB / 332.8 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001837/0.005676, allocations: 51.5 kB / 332.9 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001938/0.005878, allocations: 99.11 kB / 333 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000341/0.006246, allocations: 103.8 kB / 333.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00052/0.006775, allocations: 466.2 kB / 333.5 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002948/0.007077, allocations: 127.3 kB / 333.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.007266, allocations: 143.5 kB / 333.8 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002059/0.00748, allocations: 167.2 kB / 333.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.057e-05/0.007537, allocations: 36 kB / 334 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.563e-05/0.007599, allocations: 36 kB / 334 MB, free: 14.47 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004001/0.008005, allocations: 0.5294 MB / 334.5 MB, free: 13.93 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001626/0.008176, allocations: 319.3 kB / 334.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.389e-05/0.008256, allocations: 63.81 kB / 334.9 MB, free: 13.55 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.06e-05/0.008312, allocations: 8 kB / 334.9 MB, free: 13.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: 62 (62) * Number of variables: 62 (62) Notification: Performance of Bindings: time 0.001382/0.009699, allocations: 1.561 MB / 336.5 MB, free: 11.88 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001588/0.009865, allocations: 79.81 kB / 336.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006914/0.01057, allocations: 0.7597 MB / 337.3 MB, free: 11.01 MB / 286.1 MB Notification: Performance of simplify1: time 7.26e-05/0.01065, allocations: 71.84 kB / 337.4 MB, free: 10.94 MB / 286.1 MB Notification: Performance of Alias: time 0.002121/0.01278, allocations: 1.516 MB / 338.9 MB, free: 9.281 MB / 286.1 MB Notification: Performance of simplify2: time 7.285e-05/0.01286, allocations: 47.94 kB / 339 MB, free: 9.234 MB / 286.1 MB Notification: Performance of Events: time 0.0001934/0.01306, allocations: 116.2 kB / 339.1 MB, free: 9.121 MB / 286.1 MB Notification: Performance of Detect States: time 0.0006284/0.0137, allocations: 207.7 kB / 339.3 MB, free: 8.902 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003414/0.01405, allocations: 239.5 kB / 339.5 MB, free: 8.645 MB / 286.1 MB Notification: Performance of Causalize: time 0.001117/0.01518, allocations: 0.8758 MB / 340.4 MB, free: 7.75 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005446/0.01573, allocations: 0.5375 MB / 340.9 MB, free: 7.188 MB / 286.1 MB Notification: Performance of Inline: time 0.001085/0.01683, allocations: 1.007 MB / 341.9 MB, free: 6.145 MB / 286.1 MB Notification: Performance of Partitioning: time 6.996e-05/0.01691, allocations: 62.36 kB / 342 MB, free: 6.078 MB / 286.1 MB Notification: Performance of Cleanup: time 4.936e-05/0.01697, allocations: 47.83 kB / 342 MB, free: 6.031 MB / 286.1 MB Notification: Performance of Causalize: time 0.001789/0.01876, allocations: 1.507 MB / 343.5 MB, free: 4.504 MB / 286.1 MB Notification: Performance of Tearing: time 0.0006078/0.01938, allocations: 0.5407 MB / 344.1 MB, free: 3.914 MB / 286.1 MB Notification: Performance of Initialization: time 2.585e-06/0.01939, allocations: 0 / 344.1 MB, free: 3.914 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004987/0.0199, allocations: 0.5562 MB / 344.6 MB, free: 3.309 MB / 286.1 MB Notification: Performance of Categorize: time 1.831e-05/0.01993, allocations: 7.984 kB / 344.6 MB, free: 3.301 MB / 286.1 MB Notification: Performance of Solve: time 0.000193/0.02013, allocations: 122 kB / 344.8 MB, free: 3.18 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0006467/0.02078, allocations: 0.6121 MB / 345.4 MB, free: 2.531 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.0001829/0.02098, allocations: 36.34 kB / 345.4 MB, free: 2.496 MB / 286.1 MB Notification: Performance of SimCode: time 0.001803/0.02279, allocations: 1.975 MB / 347.4 MB, free: 500 kB / 286.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.