Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001201/0.001201, allocations: 110.6 kB / 16.42 MB, free: 6.477 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.001109/0.001109, allocations: 187.2 kB / 17.35 MB, free: 5.707 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.327/1.327, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.632e-05/1.633e-05, allocations: 2.281 kB / 327.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003202/0.003227, allocations: 2.88 MB / 330.1 MB, free: 440 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.004301, allocations: 0.7721 MB / 330.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001136/0.004425, allocations: 4 kB / 330.8 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001406/0.004572, allocations: 51.5 kB / 330.9 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001492/0.004733, allocations: 87.14 kB / 331 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.004993, allocations: 111.8 kB / 331.1 MB, free: 15.4 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003892/0.005391, allocations: 458.2 kB / 331.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/0.005607, allocations: 131.2 kB / 331.7 MB, free: 14.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.005778, allocations: 155.4 kB / 331.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000163/0.005949, allocations: 159.3 kB / 332 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.533e-05/0.006002, allocations: 40 kB / 332 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.559e-05/0.006053, allocations: 36 kB / 332 MB, free: 14.43 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003527/0.00641, allocations: 0.5255 MB / 332.6 MB, free: 13.9 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001584/0.006574, allocations: 311.3 kB / 332.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.256e-05/0.006642, allocations: 63.81 kB / 332.9 MB, free: 13.53 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.525e-05/0.006685, allocations: 16 kB / 332.9 MB, free: 13.52 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.001417/0.008107, allocations: 1.553 MB / 334.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001092/0.008225, allocations: 83.81 kB / 334.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0007031/0.008937, allocations: 0.7674 MB / 335.4 MB, free: 10.98 MB / 286.1 MB Notification: Performance of simplify1: time 7.052e-05/0.009014, allocations: 67.91 kB / 335.4 MB, free: 10.91 MB / 286.1 MB Notification: Performance of Alias: time 0.001501/0.01052, allocations: 1.35 MB / 336.8 MB, free: 9.418 MB / 286.1 MB Notification: Performance of simplify2: time 5.312e-05/0.01058, allocations: 39.94 kB / 336.8 MB, free: 9.379 MB / 286.1 MB Notification: Performance of Events: time 0.0001641/0.01075, allocations: 120.2 kB / 336.9 MB, free: 9.262 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002667/0.01103, allocations: 205.2 kB / 337.1 MB, free: 9.043 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002966/0.01133, allocations: 243.4 kB / 337.4 MB, free: 8.781 MB / 286.1 MB Notification: Performance of Causalize: time 0.001332/0.01267, allocations: 1.205 MB / 338.6 MB, free: 7.566 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005934/0.01328, allocations: 0.5378 MB / 339.1 MB, free: 7 MB / 286.1 MB Notification: Performance of Inline: time 0.001098/0.01439, allocations: 0.9958 MB / 340.1 MB, free: 5.973 MB / 286.1 MB Notification: Performance of Partitioning: time 7.31e-05/0.01447, allocations: 62.34 kB / 340.2 MB, free: 5.902 MB / 286.1 MB Notification: Performance of Cleanup: time 4.909e-05/0.01453, allocations: 47.98 kB / 340.2 MB, free: 5.855 MB / 286.1 MB Notification: Performance of Causalize: time 0.002045/0.01658, allocations: 1.937 MB / 342.1 MB, free: 3.938 MB / 286.1 MB Notification: Performance of Tearing: time 0.0006064/0.0172, allocations: 0.5486 MB / 342.7 MB, free: 3.34 MB / 286.1 MB Notification: Performance of Initialization: time 5.81e-07/0.01721, allocations: 11.88 kB / 342.7 MB, free: 3.328 MB / 286.1 MB Notification: Performance of Tearing: time 0.0004851/0.0177, allocations: 0.5524 MB / 343.3 MB, free: 2.727 MB / 286.1 MB Notification: Performance of Categorize: time 1.326e-05/0.01772, allocations: 0 / 343.3 MB, free: 2.727 MB / 286.1 MB Notification: Performance of Solve: time 0.0002027/0.01793, allocations: 122 kB / 343.4 MB, free: 2.609 MB / 286.1 MB Notification: Performance of Jacobian: time 0.0006335/0.01858, allocations: 0.624 MB / 344 MB, free: 1.945 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.0001458/0.01873, allocations: 26.89 kB / 344 MB, free: 1.926 MB / 286.1 MB Notification: Performance of SimCode: time 0.00178/0.02051, allocations: 1.976 MB / 346 MB, free: 15.91 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.