Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009325/0.0009326, allocations: 114.5 kB / 18.42 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001022/0.001022, allocations: 216.6 kB / 19.37 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.215/1.215, allocations: 227.3 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.837e-05/2.839e-05, allocations: 2.281 kB / 308.3 MB, free: 15.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004553/0.004597, allocations: 4.091 MB / 312.4 MB, free: 11.83 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001528/0.006139, allocations: 1.067 MB / 313.5 MB, free: 10.76 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.006313, allocations: 12 kB / 313.5 MB, free: 10.75 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001805/0.0065, allocations: 83.14 kB / 313.6 MB, free: 10.66 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002582/0.00678, allocations: 182.4 kB / 313.7 MB, free: 10.48 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004048/0.007191, allocations: 231.6 kB / 314 MB, free: 10.26 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006904/0.007891, allocations: 0.9109 MB / 314.9 MB, free: 9.344 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002464/0.008146, allocations: 172.9 kB / 315 MB, free: 9.168 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003228/0.008476, allocations: 307 kB / 315.3 MB, free: 8.867 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002818/0.008767, allocations: 366.6 kB / 315.7 MB, free: 8.508 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 9.371e-05/0.008867, allocations: 84 kB / 315.8 MB, free: 8.426 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001144/0.008988, allocations: 84 kB / 315.9 MB, free: 8.344 MB / 254.1 MB Notification: Performance of combineBinaries: time 0.0006429/0.009636, allocations: 0.9935 MB / 316.9 MB, free: 7.336 MB / 254.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002712/0.009915, allocations: 0.5659 MB / 317.4 MB, free: 6.762 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001111/0.01003, allocations: 111.6 kB / 317.5 MB, free: 6.652 MB / 254.1 MB Notification: Performance of FrontEnd: time 3.849e-05/0.01008, allocations: 12 kB / 317.6 MB, free: 6.641 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: 89 (89) * Number of variables: 89 (89) Notification: Performance of Bindings: time 0.00213/0.01221, allocations: 2.844 MB / 320.4 MB, free: 3.672 MB / 254.1 MB Notification: Performance of FunctionAlias: time 0.0001866/0.01241, allocations: 194.9 kB / 320.6 MB, free: 3.484 MB / 254.1 MB Notification: Performance of Early Inline: time 0.001563/0.01398, allocations: 1.901 MB / 322.5 MB, free: 1.555 MB / 254.1 MB Notification: Performance of simplify1: time 0.000136/0.01412, allocations: 139.8 kB / 322.6 MB, free: 1.418 MB / 254.1 MB Notification: Performance of Alias: time 0.002157/0.01628, allocations: 2.073 MB / 324.7 MB, free: 15.17 MB / 270.1 MB Notification: Performance of simplify2: time 0.0001081/0.0164, allocations: 123.8 kB / 324.8 MB, free: 15.05 MB / 270.1 MB Notification: Performance of Events: time 0.0003972/0.01681, allocations: 336 kB / 325.1 MB, free: 14.73 MB / 270.1 MB Notification: Performance of Detect States: time 0.0004526/0.01727, allocations: 472.6 kB / 325.6 MB, free: 14.25 MB / 270.1 MB Notification: Performance of Partitioning: time 0.0004657/0.01774, allocations: 0.498 MB / 326.1 MB, free: 13.74 MB / 270.1 MB Notification: Performance of Causalize: time 0.002757/0.02051, allocations: 2.942 MB / 329 MB, free: 10.84 MB / 270.1 MB Notification: Performance of After Index Reduction Inline: time 0.001222/0.02175, allocations: 1.465 MB / 330.5 MB, free: 9.344 MB / 270.1 MB Notification: Performance of Inline: time 0.002472/0.02423, allocations: 2.932 MB / 333.4 MB, free: 6.348 MB / 270.1 MB Notification: Performance of Partitioning: time 0.0001345/0.02437, allocations: 131.7 kB / 333.6 MB, free: 6.203 MB / 270.1 MB Notification: Performance of Cleanup: time 8.97e-05/0.02447, allocations: 115.8 kB / 333.7 MB, free: 6.09 MB / 270.1 MB Notification: Performance of Causalize: time 0.004241/0.02871, allocations: 5.18 MB / 338.9 MB, free: 1.059 MB / 270.1 MB Notification: Performance of Tearing: time 0.001037/0.02976, allocations: 1.055 MB / 339.9 MB, free: 15.95 MB / 286.1 MB Notification: Performance of Initialization: time 6.81e-07/0.02977, allocations: 0 / 339.9 MB, free: 15.95 MB / 286.1 MB Notification: Performance of Tearing: time 0.0009607/0.03074, allocations: 1.057 MB / 341 MB, free: 14.85 MB / 286.1 MB Notification: Performance of Categorize: time 1.057e-05/0.03076, allocations: 4 kB / 341 MB, free: 14.84 MB / 286.1 MB Notification: Performance of Solve: time 0.0003945/0.03116, allocations: 294.8 kB / 341.3 MB, free: 14.55 MB / 286.1 MB Notification: Performance of Jacobian: time 0.001803/0.03297, allocations: 1.752 MB / 343 MB, free: 12.77 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: ......... 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) {trapezoidCurrent.signalSource.T_start, trapezoidCurrent.signalSource.count} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 27 (27) {simpleTriac.idealDiode.off, simpleTriac.idealDiode1.off, $SEV_23, $SEV_22, $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: ........... 45 (scalar:45, 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: ........... 103 (scalar:103, 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 4.508e-05/0.03302, allocations: 44.97 kB / 343.1 MB, free: 12.74 MB / 286.1 MB Notification: Performance of SimCode: time 0.002368/0.03539, allocations: 3.351 MB / 346.4 MB, free: 9.336 MB / 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.