Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AdvancedNoise_AdvancedNoise.Examples.TimeBasedInterpolation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 101.8 kB / 19.6 MB, free: 2.34 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 189.2 kB / 22.86 MB, free: 5.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.244/1.244, allocations: 225.6 MB / 251.6 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo): time 0.02486/0.02486, allocations: 3.929 MB / 310.7 MB, free: 4.91 MB / 238.1 MB " [Timeout remaining time 180] Using package AdvancedNoise with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AdvancedNoise 1.1.0-master/package.mo) 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(AdvancedNoise.Examples.TimeBasedInterpolation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedInterpolation") translateModel(AdvancedNoise.Examples.TimeBasedInterpolation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AdvancedNoise_AdvancedNoise.Examples.TimeBasedInterpolation") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 1.438e-05/1.438e-05, allocations: 2.281 kB / 432.1 MB, free: 19.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(AdvancedNoise.Examples.TimeBasedInterpolation): time 0.002249/0.002264, allocations: 2.414 MB / 434.5 MB, free: 17.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00617/0.008434, allocations: 5.842 MB / 440.4 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000292/0.008726, allocations: 19.75 kB / 440.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008607/0.009586, allocations: 345.4 kB / 440.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001756/0.009762, allocations: 79.19 kB / 440.8 MB, free: 10.79 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.004417/0.01418, allocations: 2.479 MB / 443.3 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009151/0.01509, allocations: 1.271 MB / 444.5 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.01522, allocations: 61.89 kB / 444.6 MB, free: 6.977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003912/0.01561, allocations: 0.5417 MB / 445.1 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002409/0.01585, allocations: 330.5 kB / 445.5 MB, free: 6.109 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.474e-05/0.01592, allocations: 48 kB / 445.5 MB, free: 6.062 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002192/0.01811, allocations: 1.975 MB / 447.5 MB, free: 4.086 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004188/0.01853, allocations: 1.137 MB / 448.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001635/0.01869, allocations: 0.6744 MB / 449.3 MB, free: 2.254 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.678e-05/0.01878, allocations: 95.69 kB / 449.4 MB, free: 2.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.073e-05/0.01885, allocations: 19.88 kB / 449.4 MB, free: 2.141 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: 230 (40) * Number of variables: 230 (53) Notification: Performance of Bindings: time 0.001621/0.02047, allocations: 2.428 MB / 451.8 MB, free: 15.57 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.000397/0.02087, allocations: 305.9 kB / 452.1 MB, free: 15.26 MB / 318.1 MB Notification: Performance of Early Inline: time 0.001713/0.02258, allocations: 1.677 MB / 453.8 MB, free: 13.55 MB / 318.1 MB Notification: Performance of Simplify 1: time 0.0004746/0.02305, allocations: 376.2 kB / 454.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of Alias: time 0.001644/0.0247, allocations: 1.3 MB / 455.5 MB, free: 11.72 MB / 318.1 MB Notification: Performance of Simplify 2: time 0.0004364/0.02513, allocations: 355 kB / 455.8 MB, free: 11.32 MB / 318.1 MB Notification: Performance of Remove Stream: time 0.0002863/0.02542, allocations: 273.4 kB / 456.1 MB, free: 11.03 MB / 318.1 MB Notification: Performance of Detect States: time 0.0006351/0.02605, allocations: 0.5263 MB / 456.6 MB, free: 10.45 MB / 318.1 MB Notification: Performance of Events: time 0.0006078/0.02666, allocations: 471 kB / 457.1 MB, free: 10.02 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0008115/0.02747, allocations: 0.7029 MB / 457.8 MB, free: 9.191 MB / 318.1 MB Error: Internal error NBResolveSingularities.indexReduction failed because there was not enough state candidates to balance out the constraint equations. Constraint Equations (5/27) ***************************** (1) [SCAL] (1) $FUN_1 = AdvancedNoise.Examples.TimeBasedInterpolation.linearNoise.interpolation.interpolate(linearNoise.buffer, (time - linearNoise.bufferStartTime) / linearNoise.samplePeriod, linearNoise.samplePeriod) ($RES_AUX_68) (2) [ALGO] (22) ($RES_SIM_18) (2) [----] $SEV_8 := linearNoise.generateNoise and sample(9, linearNoise.startTime + linearNoise.actualSamplePeriod, linearNoise.actualSamplePeriod); (2) [----] $TEV_8 := sample(8, linearNoise.startTime + linearNoise.actualSamplePeriod, linearNoise.actualSamplePeriod); (2) [----] $SEV_7 := linearNoise.generateNoise and time >= linearNoise.startTime; (2) [----] $TEV_7 := time >= linearNoise.startTime; (2) [----] when initial() then (2) [----] linearNoise.state := Modelica.Math.Random.Utilities.initialStateWithXorshift64star(linearNoise.localSeed, linearNoise.actualGlobalSeed, 4); (2) [----] linearNoise.bufferStartTime := time; (2) [----] for i in 1:200 loop (2) [----] (linearNoise.r, linearNoise.state) := AdvancedNoise.Examples.TimeBasedInterpolation.linearNoise.generator.random(linearNoise.state); (2) [----] end for; (2) [----] for i in 1:12 loop (2) [----] (linearNoise.r, linearNoise.state) := AdvancedNoise.Examples.TimeBasedInterpolation.linearNoise.generator.random(linearNoise.state); (2) [----] linearNoise.buffer[i] := (-1.0) + 4.0 * linearNoise.r; (2) [----] end for; (2) [----] elsewhen $SEV_7 then (2) [----] linearNoise.bufferStartTime := time; (2) [----] elsewhen $SEV_8 then (2) [----] linearNoise.bufferStartTime := time; (2) [----] linearNoise.buffer[1:2] := linearNoise.buffer[11:12]; (2) [----] for i in 3:12 loop (2) [----] (linearNoise.r, linearNoise.state) := AdvancedNoise.Examples.TimeBasedInterpolation.linearNoise.generator.random(linearNoise.state); (2) [----] linearNoise.buffer[i] := (-1.0) + 4.0 * linearNoise.r; (2) [----] end for; (2) [----] end when; (3) [FOR-] (2) ($RES_SIM_37) (3) [----] for $i1 in 1:2 loop (3) [----] [SCAL] (1) linearFiltered.uu[1 + $i1] = linearFiltered.x[$i1] ($RES_SIM_38) (3) [----] end for; (4) [SCAL] (1) linearFiltered.y = linearFiltered.u_nominal * linearFiltered.gain * linearFiltered.uu[3] ($RES_SIM_36) (5) [SCAL] (1) linearFiltered.u = if $SEV_1 then linearNoise.y_off else smooth(0, $FUN_1) ($RES_SIM_51) State Candidate Variables (5/8) ********************************* (1) [ALGB] (1) Real $FUN_1 (2) [STAT] (1) Real linearFiltered.u (3) [STAT] (1) Real linearFiltered.y (4) [ALGB] (3) protected Real[3] linearFiltered.uu (5) [STAT] (2) Real[2] linearFiltered.x " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.0237474660389125] Failed to read output from testmodel.py, exit status != 0: 0.034348123241215944 0.048467809 0.026772655000000003 Calling exit ...