Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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 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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001401/0.001401, allocations: 107 kB / 16.42 MB, free: 6.512 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.001353/0.001353, allocations: 187.2 kB / 17.35 MB, free: 5.754 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.352/1.352, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.923e-05/1.928e-05, allocations: 2.281 kB / 327.2 MB, free: 3.336 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004344/0.004371, allocations: 3.888 MB / 331.1 MB, free: 15.42 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.005953, allocations: 1.022 MB / 332.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001671/0.006131, allocations: 4 kB / 332.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002013/0.006339, allocations: 83.16 kB / 332.2 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002545/0.006602, allocations: 170.5 kB / 332.4 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003886/0.007008, allocations: 203.7 kB / 332.6 MB, free: 13.94 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006915/0.007708, allocations: 0.8409 MB / 333.4 MB, free: 13.1 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002664/0.007983, allocations: 184.8 kB / 333.6 MB, free: 12.92 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003327/0.008323, allocations: 287 kB / 333.9 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003107/0.008643, allocations: 338.7 kB / 334.2 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.759e-05/0.008737, allocations: 76 kB / 334.3 MB, free: 12.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.752e-05/0.008841, allocations: 76 kB / 334.3 MB, free: 12.16 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0006426/0.009489, allocations: 0.9238 MB / 335.3 MB, free: 11.22 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.000296/0.009793, allocations: 0.5313 MB / 335.8 MB, free: 10.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.009907, allocations: 99.69 kB / 335.9 MB, free: 10.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.673e-05/0.009959, allocations: 16 kB / 335.9 MB, free: 10.57 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: 88 (88) * Number of variables: 88 (88) Notification: Performance of Bindings: time 0.00222/0.01219, allocations: 2.673 MB / 338.6 MB, free: 7.773 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.000236/0.01243, allocations: 210.3 kB / 338.8 MB, free: 7.57 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001372/0.01381, allocations: 1.534 MB / 340.3 MB, free: 6.008 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001236/0.01394, allocations: 135.8 kB / 340.5 MB, free: 5.875 MB / 286.1 MB Notification: Performance of Alias: time 0.002065/0.01601, allocations: 2.006 MB / 342.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of simplify2: time 0.000107/0.01613, allocations: 103.9 kB / 342.6 MB, free: 3.598 MB / 286.1 MB Notification: Performance of Events: time 0.0003832/0.01652, allocations: 318.8 kB / 342.9 MB, free: 3.285 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004376/0.01697, allocations: 444.6 kB / 343.3 MB, free: 2.836 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0004765/0.01745, allocations: 497.9 kB / 343.8 MB, free: 2.332 MB / 286.1 MB Notification: Performance of Causalize: time 0.002641/0.0201, allocations: 2.822 MB / 346.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001199/0.02131, allocations: 1.363 MB / 348 MB, free: 14.15 MB / 302.1 MB Notification: Performance of Inline: time 0.002374/0.02369, allocations: 2.419 MB / 350.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000134/0.02384, allocations: 131.5 kB / 350.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of Cleanup: time 8.419e-05/0.02393, allocations: 99.89 kB / 350.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of Causalize: time 0.005795/0.02973, allocations: 4.69 MB / 355.3 MB, free: 6.91 MB / 302.1 MB Notification: Performance of Tearing: time 0.001646/0.03139, allocations: 1.058 MB / 356.4 MB, free: 5.805 MB / 302.1 MB Notification: Performance of Initialization: time 1.002e-06/0.03141, allocations: 0 / 356.4 MB, free: 5.805 MB / 302.1 MB Notification: Performance of Tearing: time 0.001605/0.03302, allocations: 1.053 MB / 357.4 MB, free: 4.703 MB / 302.1 MB Notification: Performance of Categorize: time 1.614e-05/0.03305, allocations: 4 kB / 357.4 MB, free: 4.699 MB / 302.1 MB Notification: Performance of Solve: time 0.0005694/0.03363, allocations: 262.8 kB / 357.7 MB, free: 4.445 MB / 302.1 MB Notification: Performance of Jacobian: time 0.003005/0.03665, allocations: 1.728 MB / 359.4 MB, free: 2.68 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) {pulseCurrent.signalSource.T_start, pulseCurrent.signalSource.count} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 25 (25) {simpleTriac.idealDiode.off, simpleTriac.idealDiode1.off, $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: ........... 44 (scalar:44, 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: ........... 95 (scalar:95, 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 7.387e-05/0.03674, allocations: 60.7 kB / 359.5 MB, free: 2.629 MB / 302.1 MB Notification: Performance of SimCode: time 0.003619/0.04036, allocations: 3.2 MB / 362.7 MB, free: 15.39 MB / 318.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.