Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 110.6 kB / 17.75 MB, free: 5.312 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.001119/0.00112, allocations: 183.1 kB / 18.68 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.214/1.214, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.875e-05/2.876e-05, allocations: 2.281 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL): time 0.005638/0.005675, allocations: 4.879 MB / 356.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001962/0.007653, allocations: 1.394 MB / 358.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002741/0.00794, allocations: 19.94 kB / 358.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002995/0.008246, allocations: 134.5 kB / 358.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004479/0.008702, allocations: 210.1 kB / 358.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005984/0.009327, allocations: 365.2 kB / 359 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009715/0.01031, allocations: 1.204 MB / 360.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005211/0.01084, allocations: 435.2 kB / 360.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003814/0.01123, allocations: 398.5 kB / 361 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003749/0.01161, allocations: 438 kB / 361.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.01174, allocations: 100 kB / 361.5 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001383/0.01188, allocations: 100 kB / 361.6 MB, free: 9.543 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0009387/0.01282, allocations: 1.433 MB / 363 MB, free: 8.094 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004929/0.01332, allocations: 0.8773 MB / 363.9 MB, free: 7.203 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001663/0.0135, allocations: 163.5 kB / 364.1 MB, free: 7.043 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001304/0.01363, allocations: 55.67 kB / 364.1 MB, free: 6.988 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.003294/0.01693, allocations: 4.203 MB / 368.3 MB, free: 2.617 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002862/0.01723, allocations: 291.8 kB / 368.6 MB, free: 2.34 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001919/0.01915, allocations: 2.194 MB / 370.8 MB, free: 108 kB / 302.1 MB Notification: Performance of simplify1: time 0.136/0.1551, allocations: 177.6 kB / 371 MB, free: 16.7 MB / 302.1 MB Notification: Performance of Alias: time 0.004664/0.1598, allocations: 4.142 MB / 375.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001443/0.16, allocations: 123.8 kB / 375.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of Events: time 0.0004128/0.1604, allocations: 431 kB / 375.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of Detect States: time 0.0006081/0.161, allocations: 0.7974 MB / 376.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0006163/0.1617, allocations: 0.7128 MB / 377.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of Causalize: time 0.00291/0.1646, allocations: 2.856 MB / 380 MB, free: 14.27 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.00143/0.166, allocations: 1.707 MB / 381.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of Inline: time 0.002828/0.1689, allocations: 2.963 MB / 384.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002293/0.1691, allocations: 179.9 kB / 384.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0004096/0.1695, allocations: 355.8 kB / 385.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of Causalize: time 0.01537/0.1849, allocations: 15.55 MB / 400.8 MB, free: 2.023 MB / 302.1 MB Notification: Performance of Tearing: time 0.00101/0.1859, allocations: 1.37 MB / 402.1 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of Initialization: time 1.694e-06/0.186, allocations: 0 / 402.1 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of Tearing: time 0.0004728/0.1864, allocations: 0.6927 MB / 402.8 MB, free: 24 kB / 302.1 MB Notification: Performance of Categorize: time 3.624e-05/0.1865, allocations: 10.95 kB / 402.8 MB, free: 16 kB / 302.1 MB Notification: Performance of Solve: time 0.00119/0.1877, allocations: 0.5016 MB / 403.3 MB, free: 15.61 MB / 318.1 MB Notification: Performance of Jacobian: time 0.00141/0.1891, allocations: 1.31 MB / 404.7 MB, free: 14.29 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: ........... 89 (scalar:87, 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: ........... 162 (scalar:160, 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: ........... 162 (scalar:160, 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 0.0001064/0.1892, allocations: 94.25 kB / 404.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of SimCode: time 0.003688/0.1929, allocations: 4.163 MB / 408.9 MB, free: 10.13 MB / 318.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.