Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001946/0.001946, allocations: 107.6 kB / 21.2 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 209.2 kB / 24.49 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.488/1.488, allocations: 230.6 MB / 258.3 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|sample1.y|clockToSquareWave.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 3.266e-05/3.266e-05, allocations: 6.219 kB / 378.9 MB, free: 2.516 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.00312/0.003153, allocations: 1.61 MB / 380.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.004229, allocations: 0.5182 MB / 381.1 MB, free: 384 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.064e-05/0.004319, allocations: 7.938 kB / 381.1 MB, free: 376 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.66e-05/0.004366, allocations: 3.938 kB / 381.1 MB, free: 372 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.004495, allocations: 15.86 kB / 381.1 MB, free: 356 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003272/0.004822, allocations: 59.81 kB / 381.2 MB, free: 296 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001376/0.00496, allocations: 79.75 kB / 381.2 MB, free: 216 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.005073, allocations: 15.98 kB / 381.2 MB, free: 200 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.00521, allocations: 39.89 kB / 381.3 MB, free: 160 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.646e-05/0.005266, allocations: 23.8 kB / 381.3 MB, free: 136 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.679e-05/0.005283, allocations: 4 kB / 381.3 MB, free: 132 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.301e-05/0.005326, allocations: 12 kB / 381.3 MB, free: 120 kB / 302.1 MB Notification: Performance of combineBinaries: time 0.0001062/0.005432, allocations: 114.7 kB / 381.4 MB, free: 4 kB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.1925/0.198, allocations: 77.36 kB / 381.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.779e-05/0.198, allocations: 4.781 kB / 381.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.157e-05/0.198, allocations: 0 / 381.5 MB, free: 13.16 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: 7 (7) * Number of variables: 7 (7) Notification: Performance of [SIM] Bindings: time 0.000513/0.1986, allocations: 388.3 kB / 381.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of [SIM] FunctionAlias: time 8.503e-05/0.1986, allocations: 44.39 kB / 381.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of [SIM] Early Inline: time 0.0001901/0.1988, allocations: 160.5 kB / 382.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of [SIM] Simplify 1: time 6.872e-05/0.1989, allocations: 76.8 kB / 382.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of [SIM] Alias: time 0.0004956/0.1994, allocations: 305.8 kB / 382.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of [SIM] Simplify 2: time 5.178e-05/0.1995, allocations: 72.66 kB / 382.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of [SIM] Remove Stream: time 2.671e-05/0.1995, allocations: 45.8 kB / 382.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of [SIM] Detect States: time 0.000139/0.1996, allocations: 100.7 kB / 382.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of [SIM] Events: time 6.384e-05/0.1997, allocations: 22.23 kB / 382.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of [SIM] Partitioning: time 0.0001557/0.1998, allocations: 98.33 kB / 382.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of [SIM] Causalize: time 0.0001662/0.2, allocations: 114.6 kB / 382.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of [SIM] After Index Reduction Inline: time 6.976e-05/0.2001, allocations: 76.39 kB / 383 MB, free: 12.1 MB / 302.1 MB Notification: Performance of [INI] Simplify: time 0.0001533/0.2002, allocations: 125.9 kB / 383.1 MB, free: 11.96 MB / 302.1 MB Notification: Performance of [INI] Inline: time 0.0001116/0.2003, allocations: 114.5 kB / 383.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of [INI] Partitioning: time 1.194e-05/0.2003, allocations: 15.58 kB / 383.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of [INI] Cleanup: time 2.62e-05/0.2004, allocations: 23.84 kB / 383.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of [INI] Causalize: time 0.0002537/0.2006, allocations: 146.4 kB / 383.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of [INI] Tearing: time 1.229e-05/0.2006, allocations: 1 kB / 383.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of [SIM] Initialization: time 3.2e-07/0.2006, allocations: 0 / 383.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of [SIM] Remove Dummies: time 4.668e-06/0.2006, allocations: 2.094 kB / 383.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of [SIM] Tearing: time 3.176e-06/0.2006, allocations: 8.219 kB / 383.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of [SIM] Categorize: time 9.077e-06/0.2007, allocations: 2.031 kB / 383.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of [SIM] Solve: time 0.0001016/0.2008, allocations: 59.52 kB / 383.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of [SIM] Jacobian: time 7.674e-06/0.2008, allocations: 3.531 kB / 383.5 MB, free: 11.9 MB / 302.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 1 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 2 * 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: .................... 1 (1) {clockToSquareWave.uu} * Number of clocked states: ..................... 1 (1) {clockToSquareWave.y2} * Number of discrete variables: ................. 2 (2) {clockToSquareWave.y, $TEV_0} * Number of clocks: ............................. 1 (1) {periodicClock.c} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 3 (scalar:3, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:0, when:1, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 6 (scalar:6, 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 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 4.219e-05/0.2008, allocations: 32.98 kB / 383.5 MB, free: 11.88 MB / 302.1 MB Error: Internal error NBEquation.WhenEquationBody.getBodyAttributes.getConditions failed for condition: Clock() " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.4361869478598237] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'clockToSquareWave.y'] 0.20875252038240433 0.22092042799999995 0.020226758 Calling exit ...