Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_3.2.3_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.0009745/0.0009746, allocations: 111.4 kB / 18.41 MB, free: 4.625 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.000908/0.000908, allocations: 193.4 kB / 19.35 MB, free: 3.699 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.401/1.401, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.688e-05/2.689e-05, allocations: 6.219 kB / 329.2 MB, free: 3.348 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004176/0.004212, allocations: 3.437 MB / 332.6 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001511/0.005737, allocations: 0.7877 MB / 333.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003784/0.006126, allocations: 7.938 kB / 333.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002786/0.006411, allocations: 67.36 kB / 333.5 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004118/0.006831, allocations: 134.8 kB / 333.6 MB, free: 14.89 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003802/0.007217, allocations: 107.8 kB / 333.7 MB, free: 14.78 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007233/0.007963, allocations: 0.5641 MB / 334.3 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002693/0.00824, allocations: 147.1 kB / 334.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003208/0.008569, allocations: 183.3 kB / 334.6 MB, free: 13.89 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002801/0.008857, allocations: 207.1 kB / 334.8 MB, free: 13.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.793e-05/0.008953, allocations: 36 kB / 334.8 MB, free: 13.65 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.798e-05/0.009048, allocations: 44 kB / 334.9 MB, free: 13.61 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0005253/0.009579, allocations: 0.6992 MB / 335.6 MB, free: 12.9 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002836/0.00987, allocations: 437.4 kB / 336 MB, free: 12.46 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001403/0.01002, allocations: 83.75 kB / 336.1 MB, free: 12.38 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.734e-05/0.0101, allocations: 12 kB / 336.1 MB, free: 12.37 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.001793/0.0119, allocations: 1.971 MB / 338.1 MB, free: 10.29 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001941/0.0121, allocations: 114.2 kB / 338.2 MB, free: 10.18 MB / 286.1 MB Notification: Performance of Early Inline: time 0.00086/0.01297, allocations: 0.8975 MB / 339.1 MB, free: 9.254 MB / 286.1 MB Notification: Performance of simplify1: time 0.000124/0.0131, allocations: 95.88 kB / 339.2 MB, free: 9.16 MB / 286.1 MB Notification: Performance of Alias: time 0.002148/0.01525, allocations: 1.853 MB / 341 MB, free: 7.125 MB / 286.1 MB Notification: Performance of simplify2: time 8.743e-05/0.01535, allocations: 55.94 kB / 341.1 MB, free: 7.07 MB / 286.1 MB Notification: Performance of Events: time 0.0002033/0.01556, allocations: 139.7 kB / 341.2 MB, free: 6.934 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002132/0.01578, allocations: 198.3 kB / 341.4 MB, free: 6.727 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003127/0.0161, allocations: 271.5 kB / 341.7 MB, free: 6.43 MB / 286.1 MB Notification: Performance of Causalize: time 0.00126/0.01737, allocations: 1.006 MB / 342.7 MB, free: 5.387 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005583/0.01794, allocations: 0.6209 MB / 343.3 MB, free: 4.742 MB / 286.1 MB Notification: Performance of Inline: time 0.001189/0.01914, allocations: 1.149 MB / 344.4 MB, free: 3.559 MB / 286.1 MB Notification: Performance of Partitioning: time 8.247e-05/0.01923, allocations: 63.61 kB / 344.5 MB, free: 3.484 MB / 286.1 MB Notification: Performance of Cleanup: time 8.436e-05/0.01932, allocations: 55.94 kB / 344.6 MB, free: 3.43 MB / 286.1 MB Notification: Performance of Causalize: time 0.002088/0.02142, allocations: 1.726 MB / 346.3 MB, free: 1.691 MB / 286.1 MB Notification: Performance of Tearing: time 0.0007754/0.0222, allocations: 1.006 MB / 347.3 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of Initialization: time 1.102e-06/0.02222, allocations: 0 / 347.3 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of Tearing: time 0.0006837/0.0229, allocations: 1.01 MB / 348.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of Categorize: time 1.505e-05/0.02293, allocations: 0 / 348.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of Solve: time 0.0002564/0.02319, allocations: 138.1 kB / 348.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of Jacobian: time 4.158e-06/0.0232, allocations: 0 / 348.4 MB, free: 15.25 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 4.721e-05/0.02326, allocations: 25.45 kB / 348.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of SimCode: time 0.001586/0.02485, allocations: 1.981 MB / 350.4 MB, free: 13.21 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.