Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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 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.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.001142/0.001142, allocations: 107.9 kB / 16.42 MB, free: 6.492 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.001121/0.001121, 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.268/1.268, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.9e-05/1.901e-05, allocations: 6.5 kB / 327.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL): time 0.005243/0.00527, allocations: 4.843 MB / 332.1 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.007239, allocations: 1.415 MB / 333.5 MB, free: 13.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002446/0.007494, allocations: 19.88 kB / 333.5 MB, free: 13 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002644/0.007765, allocations: 130.6 kB / 333.6 MB, free: 12.87 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004002/0.008172, allocations: 214 kB / 333.8 MB, free: 12.66 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005822/0.008767, allocations: 367.5 kB / 334.2 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009573/0.009735, allocations: 1.184 MB / 335.4 MB, free: 11.11 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005443/0.01029, allocations: 435.1 kB / 335.8 MB, free: 10.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003897/0.01069, allocations: 398.5 kB / 336.2 MB, free: 10.27 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003788/0.01107, allocations: 433.9 kB / 336.6 MB, free: 9.844 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.01119, allocations: 100 kB / 336.7 MB, free: 9.746 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.01133, allocations: 100 kB / 336.8 MB, free: 9.648 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.000927/0.01226, allocations: 1.414 MB / 338.2 MB, free: 8.219 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004786/0.01274, allocations: 0.8735 MB / 339.1 MB, free: 7.332 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.0129, allocations: 159.5 kB / 339.3 MB, free: 7.176 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001071/0.01301, allocations: 47.62 kB / 339.3 MB, free: 7.129 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: 173 (173) * Number of variables: 173 (169) Notification: Performance of Bindings: time 0.003352/0.01637, allocations: 4.05 MB / 343.4 MB, free: 2.91 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0004132/0.01679, allocations: 415.4 kB / 343.8 MB, free: 2.508 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001896/0.01869, allocations: 2.151 MB / 345.9 MB, free: 324 kB / 286.1 MB Notification: Performance of simplify1: time 0.0001826/0.01888, allocations: 183.8 kB / 346.1 MB, free: 140 kB / 286.1 MB Notification: Performance of Alias: time 0.003664/0.02255, allocations: 3.619 MB / 349.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001213/0.02269, allocations: 131.8 kB / 349.8 MB, free: 12 MB / 302.1 MB Notification: Performance of Events: time 0.0004645/0.02316, allocations: 428.5 kB / 350.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of Detect States: time 0.0007161/0.02389, allocations: 0.7933 MB / 351 MB, free: 10.75 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007014/0.0246, allocations: 0.7111 MB / 351.8 MB, free: 9.965 MB / 302.1 MB Notification: Performance of Causalize: time 0.003715/0.02832, allocations: 3.967 MB / 355.7 MB, free: 6.035 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001534/0.02987, allocations: 1.709 MB / 357.4 MB, free: 4.297 MB / 302.1 MB Notification: Performance of Inline: time 0.002775/0.03266, allocations: 2.965 MB / 360.4 MB, free: 1.281 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001861/0.03286, allocations: 183.6 kB / 360.6 MB, free: 1.086 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002895/0.03315, allocations: 351.5 kB / 360.9 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of Causalize: time 0.1514/0.1846, allocations: 18.34 MB / 379.3 MB, free: 42.86 MB / 318.1 MB Notification: Performance of Tearing: time 0.001212/0.1858, allocations: 1.374 MB / 380.6 MB, free: 42.37 MB / 318.1 MB Notification: Performance of Initialization: time 1.583e-06/0.1858, allocations: 3.609 kB / 380.6 MB, free: 42.37 MB / 318.1 MB Notification: Performance of Tearing: time 0.000623/0.1865, allocations: 0.6904 MB / 381.3 MB, free: 42.11 MB / 318.1 MB Notification: Performance of Categorize: time 2.772e-05/0.1865, allocations: 4.188 kB / 381.3 MB, free: 42.11 MB / 318.1 MB Notification: Performance of Solve: time 0.001125/0.1876, allocations: 0.508 MB / 381.8 MB, free: 42.05 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001424/0.1891, allocations: 1.305 MB / 383.1 MB, free: 41.67 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, fundamentalWaveCurrent.mean1.y, fundamentalWaveVoltage.mean2.y, fundamentalWaveVoltage.mean1.y, 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.0001094/0.1892, allocations: 98.02 kB / 383.2 MB, free: 41.65 MB / 318.1 MB Notification: Performance of SimCode: time 0.003552/0.1927, allocations: 4.14 MB / 387.4 MB, free: 40.14 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.