Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, 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.001212/0.001212, 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.344/1.344, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.132e-05/2.132e-05, allocations: 6.219 kB / 327.2 MB, free: 3.336 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003795/0.003824, allocations: 3.438 MB / 330.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.004981, allocations: 0.7915 MB / 331.4 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.005128, allocations: 8 kB / 331.4 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001588/0.005293, allocations: 63.3 kB / 331.5 MB, free: 15 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000192/0.005492, allocations: 134.8 kB / 331.6 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002468/0.005759, allocations: 115.8 kB / 331.7 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004832/0.00625, allocations: 0.5563 MB / 332.3 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/0.006484, allocations: 139.2 kB / 332.4 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001946/0.006685, allocations: 195.2 kB / 332.6 MB, free: 13.87 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/0.006881, allocations: 207.1 kB / 332.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.017e-05/0.006937, allocations: 40 kB / 332.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.35e-05/0.006996, allocations: 40 kB / 332.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004646/0.007467, allocations: 0.6953 MB / 333.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002161/0.007689, allocations: 441.4 kB / 334 MB, free: 12.45 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.518e-05/0.007771, allocations: 79.69 kB / 334.1 MB, free: 12.37 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.647e-05/0.007813, allocations: 16 kB / 334.1 MB, free: 12.35 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: 80 (80) * Number of variables: 80 (80) Notification: Performance of Bindings: time 0.001519/0.009338, allocations: 1.96 MB / 336.1 MB, free: 10.28 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001475/0.009493, allocations: 126.1 kB / 336.2 MB, free: 10.16 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0007499/0.01025, allocations: 0.8936 MB / 337.1 MB, free: 9.238 MB / 286.1 MB Notification: Performance of simplify1: time 9.79e-05/0.01036, allocations: 95.89 kB / 337.2 MB, free: 9.145 MB / 286.1 MB Notification: Performance of Alias: time 0.001635/0.012, allocations: 1.641 MB / 338.8 MB, free: 7.324 MB / 286.1 MB Notification: Performance of simplify2: time 4.982e-05/0.01206, allocations: 59.92 kB / 338.9 MB, free: 7.266 MB / 286.1 MB Notification: Performance of Events: time 0.0001765/0.01224, allocations: 143.6 kB / 339 MB, free: 7.125 MB / 286.1 MB Notification: Performance of Detect States: time 0.0001825/0.01243, allocations: 202.2 kB / 339.2 MB, free: 6.914 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002651/0.0127, allocations: 275.5 kB / 339.5 MB, free: 6.613 MB / 286.1 MB Notification: Performance of Causalize: time 0.00125/0.01396, allocations: 1.392 MB / 340.9 MB, free: 5.199 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005299/0.0145, allocations: 0.6206 MB / 341.5 MB, free: 4.551 MB / 286.1 MB Notification: Performance of Inline: time 0.0009865/0.01549, allocations: 1.142 MB / 342.6 MB, free: 3.375 MB / 286.1 MB Notification: Performance of Partitioning: time 6.473e-05/0.01556, allocations: 68.34 kB / 342.7 MB, free: 3.301 MB / 286.1 MB Notification: Performance of Cleanup: time 4.755e-05/0.01562, allocations: 47.94 kB / 342.8 MB, free: 3.254 MB / 286.1 MB Notification: Performance of Causalize: time 0.001757/0.01738, allocations: 2.093 MB / 344.8 MB, free: 1.195 MB / 286.1 MB Notification: Performance of Tearing: time 0.0007628/0.01815, allocations: 1.003 MB / 345.9 MB, free: 48 kB / 286.1 MB Notification: Performance of Initialization: time 6.32e-07/0.01816, allocations: 0 / 345.9 MB, free: 48 kB / 286.1 MB Notification: Performance of Tearing: time 0.0007122/0.01888, allocations: 1.014 MB / 346.9 MB, free: 14.89 MB / 302.1 MB Notification: Performance of Categorize: time 1.295e-05/0.01891, allocations: 4 kB / 346.9 MB, free: 14.88 MB / 302.1 MB Notification: Performance of Solve: time 0.0001844/0.0191, allocations: 130 kB / 347 MB, free: 14.76 MB / 302.1 MB Notification: Performance of Jacobian: time 3.356e-06/0.01911, allocations: 0 / 347 MB, free: 14.76 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: ............... 0 * Number of algebraic event partitions: ......... 4 * 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: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 12 (12) {Ideal.off, With_Ron_Goff.off, With_Ron_Goff_Vknee.off, $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: ........... 25 (scalar:25, 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: ... 3 (linear: 0, nonlinear:3) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 49 (scalar:49, 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: ... 3 (linear: 0, nonlinear:3) Notification: Performance of backend: time 3.908e-05/0.01915, allocations: 36.55 kB / 347 MB, free: 14.73 MB / 302.1 MB Notification: Performance of SimCode: time 0.001444/0.0206, allocations: 1.985 MB / 349 MB, free: 12.71 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.