Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 110.3 kB / 18.35 MB, free: 4.859 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.001167/0.001168, allocations: 195.5 kB / 19.3 MB, free: 3.926 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.251/1.251, allocations: 205.1 MB / 225.2 MB, free: 12.28 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.339e-05/2.39e-05, allocations: 2.281 kB / 282.1 MB, free: 2.512 MB / 222.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004751/0.004791, allocations: 3.915 MB / 286 MB, free: 14.57 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.006914, allocations: 1.36 MB / 287.3 MB, free: 13.2 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000263/0.007197, allocations: 4 kB / 287.3 MB, free: 13.19 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007842/0.007992, allocations: 262.7 kB / 287.6 MB, free: 12.93 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005569/0.00856, allocations: 246.3 kB / 287.8 MB, free: 12.69 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007036/0.009279, allocations: 269.5 kB / 288.1 MB, free: 12.43 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007264/0.01002, allocations: 0.7825 MB / 288.9 MB, free: 11.64 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002685/0.01029, allocations: 176.8 kB / 289 MB, free: 11.47 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003236/0.01062, allocations: 283 kB / 289.3 MB, free: 11.19 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002901/0.01092, allocations: 298.8 kB / 289.6 MB, free: 10.9 MB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 6.816e-05/0.011, allocations: 52 kB / 289.7 MB, free: 10.85 MB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.01119, allocations: 95.97 kB / 289.8 MB, free: 10.75 MB / 238.1 MB Notification: Performance of combineBinaries: time 0.0005616/0.01176, allocations: 0.9196 MB / 290.7 MB, free: 9.824 MB / 238.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002755/0.01204, allocations: 0.5543 MB / 291.2 MB, free: 9.262 MB / 238.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.01215, allocations: 103.6 kB / 291.3 MB, free: 9.16 MB / 238.1 MB Notification: Performance of FrontEnd: time 7.89e-05/0.01223, allocations: 20 kB / 291.4 MB, free: 9.141 MB / 238.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 (98) * Number of variables: 98 (98) Notification: Performance of Bindings: time 0.001887/0.01413, allocations: 2.463 MB / 293.8 MB, free: 6.555 MB / 238.1 MB Notification: Performance of FunctionAlias: time 0.0001398/0.01427, allocations: 115.8 kB / 293.9 MB, free: 6.441 MB / 238.1 MB Notification: Performance of Early Inline: time 0.0008855/0.01517, allocations: 1.112 MB / 295 MB, free: 5.301 MB / 238.1 MB Notification: Performance of simplify1: time 0.0001005/0.01528, allocations: 103.9 kB / 295.1 MB, free: 5.199 MB / 238.1 MB Notification: Performance of Alias: time 0.001956/0.01724, allocations: 1.901 MB / 297 MB, free: 3.09 MB / 238.1 MB Notification: Performance of simplify2: time 7.494e-05/0.01733, allocations: 75.89 kB / 297.1 MB, free: 3.016 MB / 238.1 MB Notification: Performance of Events: time 0.0002918/0.01763, allocations: 206.1 kB / 297.3 MB, free: 2.812 MB / 238.1 MB Notification: Performance of Detect States: time 0.0003417/0.01798, allocations: 333.7 kB / 297.6 MB, free: 2.477 MB / 238.1 MB Notification: Performance of Partitioning: time 0.0003853/0.01837, allocations: 398.2 kB / 298 MB, free: 2.043 MB / 238.1 MB Notification: Performance of Causalize: time 0.001836/0.02021, allocations: 2.018 MB / 300.1 MB, free: 8 kB / 238.1 MB Notification: Performance of After Index Reduction Inline: time 0.0007512/0.02098, allocations: 0.8622 MB / 300.9 MB, free: 15.12 MB / 254.1 MB Notification: Performance of Inline: time 0.001578/0.02256, allocations: 1.609 MB / 302.5 MB, free: 13.47 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0001004/0.02268, allocations: 91.55 kB / 302.6 MB, free: 13.38 MB / 254.1 MB Notification: Performance of Cleanup: time 6.161e-05/0.02274, allocations: 67.86 kB / 302.7 MB, free: 13.31 MB / 254.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) $SEV_9 = IdealGTOThyristor1.s < 0.0 or not IdealGTOThyristor1.fire ($RES_EVT_119) slice: {}; [SCAL] (1) $SEV_2 = IdealGTOThyristor2.s < 0.0 or not IdealGTOThyristor2.fire ($RES_EVT_112) slice: {}; Notification: Performance of Causalize: time 0.004292/0.02704, allocations: 4.919 MB / 307.6 MB, free: 8.523 MB / 254.1 MB Notification: Performance of Tearing: time 0.0009536/0.02802, allocations: 1.297 MB / 308.9 MB, free: 7.031 MB / 254.1 MB Notification: Performance of Initialization: time 7.51e-07/0.02803, allocations: 0 / 308.9 MB, free: 7.031 MB / 254.1 MB Notification: Performance of Tearing: time 0.0009435/0.02898, allocations: 1.353 MB / 310.2 MB, free: 5.484 MB / 254.1 MB Notification: Performance of Categorize: time 2.36e-05/0.02901, allocations: 4 kB / 310.3 MB, free: 5.48 MB / 254.1 MB Notification: Performance of Solve: time 0.0003357/0.02936, allocations: 214.5 kB / 310.5 MB, free: 5.27 MB / 254.1 MB Notification: Performance of Jacobian: time 3.086e-06/0.02937, allocations: 0 / 310.5 MB, free: 5.27 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: ............... 0 * Number of algebraic event partitions: ......... 6 * 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: ............................. 0 (0) {} * Number of discrete states: .................... 3 (3) {booleanPulse.pulseStart, booleanStep1.combiTimeTable.nextTimeEvent, booleanStep1.combiTimeTable.nextTimeEventScaled} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 21 (21) {IdealThyristor1.off, IdealGTOThyristor1.off, IdealGTOThyristor1.fire, IdealThyristor2.off, IdealGTOThyristor2.off, IdealGTOThyristor2.fire, $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_2, $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: ........... 33 (scalar:33, array:0, record:0) * Number of multi strong components: ............ 3 (algorithm:0, when:3, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 4 (linear: 0, nonlinear:4) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 70 (scalar:68, array:1, record:1) * Number of multi strong components: ............ 2 (algorithm:2, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 4 (linear: 0, nonlinear:4) Notification: Performance of backend: time 4.927e-05/0.02942, allocations: 41.3 kB / 310.5 MB, free: 5.234 MB / 254.1 MB Notification: Performance of SimCode: time 0.003198/0.03262, allocations: 2.992 MB / 313.5 MB, free: 2.246 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.