Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.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.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001219/0.001219, allocations: 116.3 kB / 18.47 MB, free: 4.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001372/0.001372, allocations: 210.3 kB / 19.42 MB, free: 3.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.012e-05/2.013e-05, allocations: 4.672 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL): time 0.00603/0.006058, allocations: 5.193 MB / 364.6 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002901/0.008971, allocations: 1.624 MB / 366.2 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006896/0.009672, allocations: 23.88 kB / 366.2 MB, free: 6.082 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004775/0.01016, allocations: 138.5 kB / 366.3 MB, free: 5.945 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007463/0.01091, allocations: 214 kB / 366.6 MB, free: 5.734 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009838/0.01191, allocations: 423.3 kB / 367 MB, free: 5.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001405/0.01333, allocations: 1.251 MB / 368.2 MB, free: 4.066 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006467/0.01398, allocations: 435.3 kB / 368.6 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005912/0.01458, allocations: 418.4 kB / 369.1 MB, free: 3.203 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005469/0.01514, allocations: 445.9 kB / 369.5 MB, free: 2.766 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002034/0.01535, allocations: 108 kB / 369.6 MB, free: 2.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002426/0.0156, allocations: 112 kB / 369.7 MB, free: 2.551 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.001076/0.01669, allocations: 1.487 MB / 371.2 MB, free: 1.047 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005886/0.01728, allocations: 0.9196 MB / 372.1 MB, free: 116 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1428/0.1601, allocations: 165.7 kB / 372.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0003292/0.1605, allocations: 49.22 kB / 372.3 MB, free: 12.95 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 (177) * Number of variables: 177 (173) Notification: Performance of Bindings: time 0.003699/0.1642, allocations: 4.21 MB / 376.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002054/0.1644, allocations: 224.6 kB / 376.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001824/0.1662, allocations: 2.549 MB / 379.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simplify1: time 0.0002016/0.1664, allocations: 186.2 kB / 379.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of Alias: time 0.003795/0.1702, allocations: 4.122 MB / 383.6 MB, free: 8.348 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001383/0.1704, allocations: 122.7 kB / 383.7 MB, free: 8.309 MB / 302.1 MB Notification: Performance of Events: time 0.0004627/0.1709, allocations: 0.5219 MB / 384.2 MB, free: 7.988 MB / 302.1 MB Notification: Performance of Detect States: time 0.0005999/0.1715, allocations: 0.6809 MB / 384.9 MB, free: 7.555 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000609/0.1721, allocations: 0.7038 MB / 385.6 MB, free: 7.109 MB / 302.1 MB Notification: Performance of Causalize: time 0.002744/0.1748, allocations: 2.775 MB / 388.4 MB, free: 5.996 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.00137/0.1762, allocations: 1.702 MB / 390.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of Inline: time 0.002801/0.179, allocations: 3.413 MB / 393.5 MB, free: 2.895 MB / 302.1 MB Notification: Performance of Partitioning: time 0.000169/0.1792, allocations: 181.4 kB / 393.7 MB, free: 2.777 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002699/0.1795, allocations: 353.9 kB / 394 MB, free: 2.57 MB / 302.1 MB Notification: Performance of Causalize: time 0.01635/0.1959, allocations: 15.66 MB / 409.7 MB, free: 6.961 MB / 318.1 MB Notification: Performance of Tearing: time 0.00122/0.1971, allocations: 1.378 MB / 411.1 MB, free: 5.5 MB / 318.1 MB Notification: Performance of Initialization: time 7.01e-07/0.1971, allocations: 0 / 411.1 MB, free: 5.5 MB / 318.1 MB Notification: Performance of Tearing: time 0.0005988/0.1977, allocations: 0.6918 MB / 411.8 MB, free: 4.762 MB / 318.1 MB Notification: Performance of Categorize: time 2.477e-05/0.1977, allocations: 7.938 kB / 411.8 MB, free: 4.754 MB / 318.1 MB Notification: Performance of Solve: time 0.0008678/0.1986, allocations: 0.5074 MB / 412.3 MB, free: 4.242 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001295/0.1999, allocations: 1.294 MB / 413.6 MB, free: 2.91 MB / 318.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: ......... 8 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 1 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 5 (5) {fundamentalWaveVoltage.mean1.x, fundamentalWaveVoltage.mean2.x, fundamentalWaveCurrent.mean1.x, fundamentalWaveCurrent.mean2.x, inductor.i} * Number of discrete states: .................... 8 (8) {fundamentalWaveCurrent.mean2.y_last, fundamentalWaveCurrent.mean1.y_last, fundamentalWaveVoltage.mean2.y_last, fundamentalWaveVoltage.mean1.y_last, signalPWM.sawtooth.T_start, signalPWM.sawtooth.count, signalPWM.zeroOrderHold.firstTrigger, signalPWM.zeroOrderHold.ySample} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 40 (40) {inverter.enableLogic.booleanReplicator.y, inverter.enableLogic.internalEnable, inverter.andCondition_p.u1, inverter.andCondition_p.u2, inverter.andCondition_p.y, inverter.andCondition_n.u2, inverter.andCondition_n.y, inverter.transistor_p.off, inverter.diode_p.off, inverter.transistor_n.off, inverter.diode_n.off, signalPWM.zeroOrderHold.sampleTrigger, $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_14, $TEV_13, $TEV_12, $TEV_11, $TEV_10, $TEV_9, $TEV_8, $TEV_7, $TEV_6, $TEV_5, $TEV_4, $TEV_3, $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: ........... 84 (scalar:82, array:2, record:0) * Number of multi strong components: ............ 8 (algorithm:0, when:8, 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: ........... 161 (scalar:159, array:2, record:0) * 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: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 161 (scalar:159, array:2, record:0) * 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: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 9.707e-05/0.2, allocations: 100.6 kB / 413.7 MB, free: 2.82 MB / 318.1 MB Notification: Performance of SimCode: time 0.003488/0.2035, allocations: 4.212 MB / 417.9 MB, free: 14.55 MB / 334.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.